{"openapi":"3.1.0","info":{"title":"CNXTDeV /api/v1","version":"1.0.0","description":"The CNXT machine gateway. Authenticate with the `X-API-Key` header; every valid key can read, write endpoints need a key with a write grant, and `security: []` operations are public network surfaces. Lists paginate with `limit`/`offset` and return `{ object: \"list\", data, page }` with an honest `hasMore`. Errors always use the `{ type, code, message, param?, doc_url }` envelope. Payment approvals: when a key's \"Payments need my OK\" setting is on (set only in the signed-in developer console; GET /api/v1 shows it as key.paymentsNeedApproval), every money-moving call answers 403 approval_required (\"Approval required: this key's payments need the account owner's OK. Nothing moved.\") with a payment_approval: its id, what the call would do, the amount, the destination and when it lapses. After the account owner approves it in the signed-in console, repeat the identical call with the CNXT-Approval-Id header; it runs exactly once. Denied (\"Denied: the account owner denied this payment. Nothing moved.\") and lapsed (\"Lapsed: this approval request expired after 7 days. Nothing moved.\") requests move nothing. Each held call names an exact amount: the call states it, or the server works out the amount and the terms behind it (currency, destination, and the held transfer, offer, payment intent or card holds it charges or captures) and checks them all again on the approved retry; a call whose amount can only be known once it runs is refused instead (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\"). x-cnxt-payment-approvals lists every code, message and amount policy, and each gated operation carries x-cnxt-payment-approval. Org accounts are read-only and readable only while the org's owner or an admin has turned on API read access; otherwise members get 403 org_api_access_off (\"Org API access off: an owner or admin of this org hasn't turned on API read access in the org console. Nothing was read.\")."},"x-cnxt-payment-approvals":{"setting":"Payments need my OK","header":"CNXT-Approval-Id","replayedHeader":"CNXT-Approval-Replayed","autoApprovedHeader":"CNXT-Approval-Auto","windowDays":7,"statuses":{"pending":"Waiting for your OK","approved":"Approved, waiting for the key to repeat the call","executing":"Running now","consumed":"Done, the payment went through once","denied":"Denied, nothing moved","lapsed":"Lapsed after 7 days, nothing moved","unknown":"Outcome unknown, check your transactions before approving again","refused":"The call was refused, nothing moved"},"errors":{"approval_required":{"status":403,"type":"permission_error","message":"Approval required: this key's payments need the account owner's OK. Nothing moved."},"approval_pending":{"status":409,"type":"invalid_request_error","message":"Still waiting for the account owner's OK. Nothing moved."},"approval_id_required":{"status":409,"type":"invalid_request_error","message":"Approved: repeat this identical call with the CNXT-Approval-Id header to run it once. Nothing moved yet."},"approval_denied":{"status":403,"type":"permission_error","message":"Denied: the account owner denied this payment. Nothing moved."},"approval_lapsed":{"status":409,"type":"invalid_request_error","message":"Lapsed: this approval request expired after 7 days. Nothing moved."},"approval_mismatch":{"status":409,"type":"invalid_request_error","message":"This call differs from the approved one (amount, destination or body). Nothing moved; a new approval is needed."},"approval_price_changed":{"status":409,"type":"invalid_request_error","message":"The price or terms changed since this was approved (amount, currency, destination or what it charges). Nothing moved; a new approval is needed."},"approval_amount_required":{"status":400,"type":"invalid_request_error","message":"This call must state its amount (amountCents) while this key's payments need the account owner's OK. Nothing moved."},"approval_amount_unavailable":{"status":409,"type":"invalid_request_error","message":"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved."},"approval_in_progress":{"status":409,"type":"invalid_request_error","message":"This approval is in use by a call that is still running. Nothing moved from this call."},"approval_used":{"status":409,"type":"invalid_request_error","message":"This approval was already used: the payment went through once. Nothing moved from this call."},"approval_outcome_unknown":{"status":409,"type":"invalid_request_error","message":"The approved call's outcome is unknown. Nothing moved from this call; check your transactions before asking again."},"approval_refused":{"status":409,"type":"invalid_request_error","message":"This approval's call was refused, so nothing moved. Send the call again for a new decision."},"approval_not_found":{"status":404,"type":"invalid_request_error","message":"No payment approval with this id for this key. Nothing moved."},"approval_decision_blocked":{"status":403,"type":"permission_error","message":"This key's payments need the account owner's OK, so it can't decide approvals. Decide them in the signed-in console. Nothing moved."},"approval_self_decision":{"status":403,"type":"permission_error","message":"Payment approvals are decided only by the account owner in the signed-in console, never by an API key. Nothing moved."},"approval_unavailable":{"status":503,"type":"api_error","message":"Payment approvals can't be checked right now. Nothing moved; try again shortly."},"invalid_approval_id":{"status":400,"type":"invalid_request_error","message":"CNXT-Approval-Id must look like pa_123. Nothing moved."}},"operations":["POST /api/v1/transactions","POST /api/v1/topup","POST /api/v1/topup/confirm","POST /api/v1/convert","POST /api/v1/transfers","POST /api/v1/transfers/:id/confirm","POST /api/v1/refunds","POST /api/v1/payouts","POST /api/v1/checkout","POST /api/v1/editions/:slug/mint","POST /api/v1/editions/:slug/offers","POST /api/v1/offers/:id/accept","POST /api/v1/cnxtions/packs/:key","POST /api/v1/agents/:id/seats","POST /api/v1/agents/:id/invocations","POST /api/v1/mandates/:id/fund","POST /api/v1/mandates/:id/reinvest","POST /api/v1/mandates/:id/settle","POST /api/v1/payments/intents","POST /api/v1/payments/confirm","POST /api/v1/pos/sales/:id/tenders","POST /api/v1/pos/sales/:id/card-holds","POST /api/v1/store-cards/:id/reload","POST /api/v1/store-cards/:id/spend","POST /api/v1/cloud","POST /api/v1/cloud/instances/:id/execution","POST /api/v1/search","GET /api/v1/datasets/:id/export","POST /api/v1/draftroom/campaigns","POST /api/v1/draftroom/campaigns/:id/images/:slot/retry","DELETE /api/v1/cloud/instances/:id/dns/zones/:zoneId","POST /api/v1/cloud/instances/:id/dns/zones/:zoneId/publish","POST /api/v1/cloud/instances/:id/dns/zones/:zoneId/reconcile","POST /api/v1/cloud/instances/:id/vectors/build","POST /api/v1/cloud/instances/:id/vectors/query","POST /api/v1/cloud/instances/:id/vectors/grounded-answer","POST /api/v1/cloud/instances/:id/infer","POST /api/v1/cloud/instances/:id/workload/infer","POST /api/v1/cloud/instances/:id/models/train","POST /api/v1/cloud/instances/:id/models/:modelId/predict","POST /api/v1/cloud/instances/:id/endpoints/:endpointId/invoke","POST /api/v1/cloud/instances/:id/endpoints/:endpointId/rag","POST /api/v1/cloud/instances/:id/google/translation","POST /api/v1/cloud/instances/:id/google/natural-language","POST /api/v1/cloud/instances/:id/google/vision","POST /api/v1/cloud/instances/:id/google/text-to-speech","POST /api/v1/cloud/instances/:id/google/speech-to-text","POST /api/v1/cloud/instances/:id/google/web-risk","POST /api/v1/cloud/instances/:id/google/gemini","POST /api/v1/cloud/instances/:id/objects","POST /api/v1/cloud/instances/:id/objects/lifecycle","POST /api/v1/cloud/instances/:id/objects/copy","POST /api/v1/cloud/instances/:id/uploads/:uploadId/complete","POST /api/v1/cloud/instances/:id/transfers","POST /api/v1/cloud/instances/:id/backups","POST /api/v1/cloud/instances/:id/backups/restore","POST /api/v1/cloud/instances/:id/functions/:functionId/invoke","POST /api/v1/cloud/instances/:id/batches","PUT /api/v1/cloud/instances/:id/kv","POST /api/v1/cloud/instances/:id/queues/:queueName/publish","POST /api/v1/cloud/instances/:id/webhooks/:webhookId/dispatch","PUT /api/v1/cloud/instances/:id/documents","POST /api/v1/cloud/instances/:id/query-lake/query","POST /api/v1/cloud/instances/:id/capability/resources","POST /api/v1/cloud/instances/:id/capability/ops/:op","POST /api/v1/cloud/instances/:id/workflows/:workflowId/runs","POST /api/v1/cloud/instances/:id/bindings","PATCH /api/v1/cloud/instances/:id/bindings/:bindingId","POST /api/v1/cloud/instances/:id/compute/usage/blocks","POST /api/v1/apps/:appId/xtension/fund","POST /api/v1/apps/:appId/xtension/topup","POST /api/v1/apps/:appId/x/answer","POST /api/v1/apps/:appId/x/data","POST /api/v1/apps/:appId/x/action","POST /api/v1/apps/:appId/x/readx","POST /api/v1/apps/:appId/x/getx","POST /api/v1/apps/:appId/x/writex","POST /api/v1/apps/:appId/x/buyx","POST /api/v1/apps/:appId/x/sellx","POST /api/v1/apps/:appId/x/debitx","POST /api/v1/apps/:appId/x/creditx","POST /api/v1/apps/:appId/x/givex","POST /api/v1/contrax/workflowx/:id/run"],"amountPolicies":{"stated":"The call states its amount (amountCents), and the approval is for exactly that amount.","priced":"The server works out the amount (a price, fee, held amount, offer or card holds), and the approval is for exactly those terms: the amount, its currency, the destination and the records it charges or captures. If any of them changes before the approved retry, nothing moves.","units":"The call spends CNXTioNs, not $://USD, and the approval says how many.","unpriced":"The amount is only known once the call runs, so the call is refused while payments need approval. Nothing moves."},"amounts":{"POST /api/v1/transactions":"stated","POST /api/v1/topup":"stated","POST /api/v1/topup/confirm":"priced","POST /api/v1/convert":"stated","POST /api/v1/transfers":"stated","POST /api/v1/transfers/:id/confirm":"priced","POST /api/v1/refunds":"priced","POST /api/v1/payouts":"stated","POST /api/v1/checkout":"priced","POST /api/v1/editions/:slug/mint":"priced","POST /api/v1/editions/:slug/offers":"stated","POST /api/v1/offers/:id/accept":"priced","POST /api/v1/cnxtions/packs/:key":"priced","POST /api/v1/agents/:id/seats":"priced","POST /api/v1/agents/:id/invocations":"units","POST /api/v1/mandates/:id/fund":"stated","POST /api/v1/mandates/:id/reinvest":"stated","POST /api/v1/mandates/:id/settle":"stated","POST /api/v1/payments/intents":"stated","POST /api/v1/payments/confirm":"priced","POST /api/v1/pos/sales/:id/tenders":"stated","POST /api/v1/pos/sales/:id/card-holds":"priced","POST /api/v1/store-cards/:id/reload":"stated","POST /api/v1/store-cards/:id/spend":"stated","POST /api/v1/cloud":"priced","POST /api/v1/cloud/instances/:id/execution":"unpriced","POST /api/v1/search":"priced","GET /api/v1/datasets/:id/export":"priced","POST /api/v1/draftroom/campaigns":"unpriced","POST /api/v1/draftroom/campaigns/:id/images/:slot/retry":"unpriced","DELETE /api/v1/cloud/instances/:id/dns/zones/:zoneId":"unpriced","POST /api/v1/cloud/instances/:id/dns/zones/:zoneId/publish":"unpriced","POST /api/v1/cloud/instances/:id/dns/zones/:zoneId/reconcile":"unpriced","POST /api/v1/cloud/instances/:id/vectors/build":"unpriced","POST /api/v1/cloud/instances/:id/vectors/query":"unpriced","POST /api/v1/cloud/instances/:id/vectors/grounded-answer":"unpriced","POST /api/v1/cloud/instances/:id/infer":"unpriced","POST /api/v1/cloud/instances/:id/workload/infer":"unpriced","POST /api/v1/cloud/instances/:id/models/train":"unpriced","POST /api/v1/cloud/instances/:id/models/:modelId/predict":"unpriced","POST /api/v1/cloud/instances/:id/endpoints/:endpointId/invoke":"unpriced","POST /api/v1/cloud/instances/:id/endpoints/:endpointId/rag":"unpriced","POST /api/v1/cloud/instances/:id/google/translation":"unpriced","POST /api/v1/cloud/instances/:id/google/natural-language":"unpriced","POST /api/v1/cloud/instances/:id/google/vision":"unpriced","POST /api/v1/cloud/instances/:id/google/text-to-speech":"unpriced","POST /api/v1/cloud/instances/:id/google/speech-to-text":"unpriced","POST /api/v1/cloud/instances/:id/google/web-risk":"unpriced","POST /api/v1/cloud/instances/:id/google/gemini":"unpriced","POST /api/v1/cloud/instances/:id/objects":"unpriced","POST /api/v1/cloud/instances/:id/objects/lifecycle":"unpriced","POST /api/v1/cloud/instances/:id/objects/copy":"unpriced","POST /api/v1/cloud/instances/:id/uploads/:uploadId/complete":"unpriced","POST /api/v1/cloud/instances/:id/transfers":"unpriced","POST /api/v1/cloud/instances/:id/backups":"unpriced","POST /api/v1/cloud/instances/:id/backups/restore":"unpriced","POST /api/v1/cloud/instances/:id/functions/:functionId/invoke":"unpriced","POST /api/v1/cloud/instances/:id/batches":"unpriced","PUT /api/v1/cloud/instances/:id/kv":"unpriced","POST /api/v1/cloud/instances/:id/queues/:queueName/publish":"unpriced","POST /api/v1/cloud/instances/:id/webhooks/:webhookId/dispatch":"unpriced","PUT /api/v1/cloud/instances/:id/documents":"unpriced","POST /api/v1/cloud/instances/:id/query-lake/query":"unpriced","POST /api/v1/cloud/instances/:id/capability/resources":"unpriced","POST /api/v1/cloud/instances/:id/capability/ops/:op":"unpriced","POST /api/v1/cloud/instances/:id/workflows/:workflowId/runs":"unpriced","POST /api/v1/cloud/instances/:id/bindings":"unpriced","PATCH /api/v1/cloud/instances/:id/bindings/:bindingId":"unpriced","POST /api/v1/cloud/instances/:id/compute/usage/blocks":"unpriced","POST /api/v1/apps/:appId/xtension/fund":"priced","POST /api/v1/apps/:appId/xtension/topup":"priced","POST /api/v1/apps/:appId/x/answer":"unpriced","POST /api/v1/apps/:appId/x/data":"unpriced","POST /api/v1/apps/:appId/x/action":"unpriced","POST /api/v1/apps/:appId/x/readx":"unpriced","POST /api/v1/apps/:appId/x/getx":"unpriced","POST /api/v1/apps/:appId/x/writex":"unpriced","POST /api/v1/apps/:appId/x/buyx":"unpriced","POST /api/v1/apps/:appId/x/sellx":"unpriced","POST /api/v1/apps/:appId/x/debitx":"unpriced","POST /api/v1/apps/:appId/x/creditx":"unpriced","POST /api/v1/apps/:appId/x/givex":"unpriced","POST /api/v1/contrax/workflowx/:id/run":"unpriced"}},"x-cnxt-org-api-access":{"code":"org_api_access_off","status":403,"message":"Org API access off: an owner or admin of this org hasn't turned on API read access in the org console. Nothing was read."},"servers":[{"url":"/","description":"Same origin — paths are absolute under /api/v1."}],"tags":[{"name":"Money core & catalog"},{"name":"Commerce"},{"name":"Agentic commerce"},{"name":"Assets & identity"},{"name":"Cloud & app management"},{"name":"CNXTCLOUD 10 execution planes"},{"name":"Workflow products & automations"},{"name":"Editions, 6 LiNx, THeXTeNSioN & MPP"},{"name":"CNXTCaRD, USDBaNx, CoNTRax & ISO 20022"},{"name":"Key room, StratML, registries & comms reads"},{"name":"Data & network reference"},{"name":"CNXTPayMeNTx payments"},{"name":"CNXTSaLex point-of-sale"},{"name":"CNXTStoreCardx store card"},{"name":"Org accounts (read-only)"},{"name":"Catalog sync & webhooks"},{"name":"CNXTLiNx comms"},{"name":"Draftroom campaign studio"},{"name":"Network surface"}],"components":{"securitySchemes":{"apiKey":{"type":"apiKey","in":"header","name":"X-API-Key","description":"A CNXTDeV API key. Read scope is implicit; write endpoints require a write grant."}}},"paths":{"/api/v1":{"get":{"operationId":"get_root","summary":"Discovery root — lists every endpoint, echoes your key","tags":["Money core & catalog"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"service":{"type":"string"},"version":{"type":"string"},"key":{"type":"object","properties":{"name":{"type":"string"},"prefix":{"type":"string"},"last4":{"type":"string"},"scopes":{"type":"string"},"canWrite":{"type":"boolean"},"paymentsNeedApproval":{"type":"boolean"},"paymentAutoApproveCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["name","prefix","last4","scopes","canWrite","paymentsNeedApproval","paymentAutoApproveCents"],"additionalProperties":{}},"endpoints":{"type":"array","items":{"type":"object","properties":{"method":{"type":"string","enum":["GET","POST","PATCH","DELETE"]},"path":{"type":"string"},"desc":{"type":"string"},"scope":{"type":"string","enum":["read","write","public"]}},"required":["method","path","desc","scope"],"additionalProperties":false}}},"required":["service","version","key","endpoints"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/products":{"get":{"operationId":"get_products","summary":"Marketplace catalog","tags":["Money core & catalog"],"parameters":[{"name":"limit","in":"query","required":false,"description":"Page size (1–100, default 20).","schema":{"type":"integer"}},{"name":"offset","in":"query","required":false,"description":"Zero-based offset into the collection.","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"product"},"address":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"brand":{"anyOf":[{"type":"string"},{"type":"null"}]},"price":{"type":"number"}},"required":["object","address","slug","name","brand","price"],"additionalProperties":{}}},"page":{"type":"object","properties":{"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hasMore":{"type":"boolean"},"nextOffset":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["limit","offset","hasMore","nextOffset"],"additionalProperties":false}},"required":["object","data","page"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/products/{slug}":{"get":{"operationId":"get_products_BySlug","summary":"A single product","tags":["Money core & catalog"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"product"},"address":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"brand":{"anyOf":[{"type":"string"},{"type":"null"}]},"price":{"type":"number"}},"required":["object","address","slug","name","brand","price"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/datasets":{"get":{"operationId":"get_datasets","summary":"CNXTDATA record counts","tags":["Money core & catalog"],"parameters":[{"name":"limit","in":"query","required":false,"description":"Page size (1–100, default 20).","schema":{"type":"integer"}},{"name":"offset","in":"query","required":false,"description":"Zero-based offset into the collection.","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"dataset"},"address":{"type":"string"},"id":{"type":"string"},"records":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["object","address","id","records"],"additionalProperties":{}}},"page":{"type":"object","properties":{"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hasMore":{"type":"boolean"},"nextOffset":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["limit","offset","hasMore","nextOffset"],"additionalProperties":false}},"required":["object","data","page"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/gtin/{gtin}":{"get":{"operationId":"get_gtin_ByGtin","summary":"Resolve any GTIN to GTIN-14","tags":["Money core & catalog"],"parameters":[{"name":"gtin","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"gtin"},"address":{"type":"string"},"input":{"type":"string"},"gtin14":{"type":"string"},"format":{"type":"string"},"valid":{"type":"boolean","const":true},"digitalLink":{"anyOf":[{"type":"string"},{"type":"null"}]},"registryMatches":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"provenance":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"sourceUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["source","sourceUrl"],"additionalProperties":false}}},"required":["object","address","input","gtin14","format","valid","digitalLink","registryMatches","provenance"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/cloud":{"get":{"operationId":"get_cloud","summary":"Your CNXTCLOUD instances","tags":["Money core & catalog"],"parameters":[{"name":"limit","in":"query","required":false,"description":"Page size (1–100, default 20).","schema":{"type":"integer"}},{"name":"offset","in":"query","required":false,"description":"Zero-based offset into the collection.","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"cloud_instance"},"address":{"type":"string"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"regionCode":{"type":"string"},"instanceType":{"type":"string"},"status":{"type":"string"}},"required":["object","id","name","regionCode","instanceType","status"],"additionalProperties":{}}},"page":{"type":"object","properties":{"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hasMore":{"type":"boolean"},"nextOffset":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["limit","offset","hasMore","nextOffset"],"additionalProperties":false}},"required":["object","data","page"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]},"post":{"operationId":"post_cloud","summary":"Provision a CNXTCLOUD instance (real fee)","tags":["Cloud & app management"],"parameters":[{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":160},"regionCode":{"type":"string","minLength":1,"maxLength":40},"instanceType":{"type":"string","minLength":1,"maxLength":120}},"required":["name","regionCode","instanceType"]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"cloud_instance"},"address":{"type":"string"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"regionCode":{"type":"string"},"instanceType":{"type":"string"},"status":{"type":"string"},"fee":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"identity":{"type":"object","properties":{"pair":{}},"required":["pair"],"additionalProperties":false}},"required":["object","id","name","regionCode","instanceType","status","fee","identity"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"403":{"description":"Approval required: this key's payments need the account owner's OK. Nothing moved. Answered when the key's \"Payments need my OK\" setting is on: code approval_required, nothing_moved: true, and a payment_approval (id, summary, amount, destination, expiresAt). Also the other permission refusals.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"cloud_provision","amount":"priced"},"description":"Provision a CNXTCLOUD instance (real fee). Requires an API key with a write grant. Moves money: while the key's \"Payments need my OK\" setting is on, it answers 403 approval_required and nothing moves until the account owner approves it in the signed-in console."}},"/api/v1/apps":{"get":{"operationId":"get_apps","summary":"Your CNXTAPPS editions","tags":["Money core & catalog"],"parameters":[{"name":"limit","in":"query","required":false,"description":"Page size (1–100, default 20).","schema":{"type":"integer"}},{"name":"offset","in":"query","required":false,"description":"Zero-based offset into the collection.","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"app_edition"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"address":{"type":"string"},"appId":{"type":"string"},"name":{"type":"string"},"handle":{"type":"string"},"status":{"type":"string"},"launchCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["object","address","appId","name","handle","status","launchCount"],"additionalProperties":{}}},"page":{"type":"object","properties":{"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hasMore":{"type":"boolean"},"nextOffset":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["limit","offset","hasMore","nextOffset"],"additionalProperties":false}},"required":["object","data","page"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/balance":{"get":{"operationId":"get_balance","summary":"Every currency balance you hold","tags":["Money core & catalog"],"parameters":[{"name":"limit","in":"query","required":false,"description":"Page size (1–100, default 20).","schema":{"type":"integer"}},{"name":"offset","in":"query","required":false,"description":"Zero-based offset into the collection.","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"balance"},"address":{"type":"string"},"currency":{"type":"string"},"balance":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["object","address","currency","balance"],"additionalProperties":{}}},"page":{"type":"object","properties":{"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hasMore":{"type":"boolean"},"nextOffset":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["limit","offset","hasMore","nextOffset"],"additionalProperties":false}},"required":["object","data","page"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/transactions":{"get":{"operationId":"get_transactions","summary":"Your wallet transactions","tags":["Money core & catalog"],"parameters":[{"name":"limit","in":"query","required":false,"description":"Page size (1–100, default 20).","schema":{"type":"integer"}},{"name":"offset","in":"query","required":false,"description":"Zero-based offset into the collection.","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"transaction"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"type":{"type":"string"},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"counterparty":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string"},"settlement":{},"created":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","type","amount","currency","description","counterparty","status","settlement"],"additionalProperties":{}}},"page":{"type":"object","properties":{"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hasMore":{"type":"boolean"},"nextOffset":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["limit","offset","hasMore","nextOffset"],"additionalProperties":false}},"required":["object","data","page"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]},"post":{"operationId":"post_transactions","summary":"Debit (spend) from your wallet","tags":["Money core & catalog"],"parameters":[{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"type":{"type":"string","const":"debit"},"amountCents":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"description":{"type":"string","maxLength":280},"counterparty":{"type":"string","maxLength":300}},"required":["type","amountCents"]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"transaction"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"type":{"type":"string"},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"counterparty":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string"},"settlement":{},"created":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","type","amount","currency","description","counterparty","status","settlement"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"403":{"description":"Approval required: this key's payments need the account owner's OK. Nothing moved. Answered when the key's \"Payments need my OK\" setting is on: code approval_required, nothing_moved: true, and a payment_approval (id, summary, amount, destination, expiresAt). Also the other permission refusals.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"wallet_debit","amount":"stated"},"description":"Debit (spend) from your wallet. Requires an API key with a write grant. Moves money: while the key's \"Payments need my OK\" setting is on, it answers 403 approval_required and nothing moves until the account owner approves it in the signed-in console."}},"/api/v1/transactions/{id}":{"get":{"operationId":"get_transactions_ById","summary":"A single transaction","tags":["Money core & catalog"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"transaction"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"type":{"type":"string"},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"counterparty":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string"},"settlement":{},"created":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","type","amount","currency","description","counterparty","status","settlement"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/topup":{"post":{"operationId":"post_topup","summary":"Add real balance via a Stripe Checkout Session","tags":["Money core & catalog"],"parameters":[{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"amountCents":{"type":"integer","minimum":100,"maximum":9000000000000000},"idempotencyKey":{"type":"string"}},"required":["amountCents"]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"topup"},"id":{"type":"string"},"url":{"anyOf":[{"type":"string"},{"type":"null"}]},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"status":{"type":"string","enum":["requires_payment","credited","pending","unpaid"]},"credited":{"type":"boolean"}},"required":["object","id","amount","currency","status"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"403":{"description":"Approval required: this key's payments need the account owner's OK. Nothing moved. Answered when the key's \"Payments need my OK\" setting is on: code approval_required, nothing_moved: true, and a payment_approval (id, summary, amount, destination, expiresAt). Also the other permission refusals.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"topup","amount":"stated"},"description":"Add real balance via a Stripe Checkout Session. Requires an API key with a write grant. Moves money: while the key's \"Payments need my OK\" setting is on, it answers 403 approval_required and nothing moves until the account owner approves it in the signed-in console."}},"/api/v1/topup/confirm":{"post":{"operationId":"post_topup_confirm","summary":"Credit a paid top-up session exactly once","tags":["Money core & catalog"],"parameters":[{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"sessionId":{"type":"string","minLength":1}},"required":["sessionId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"topup"},"id":{"type":"string"},"url":{"anyOf":[{"type":"string"},{"type":"null"}]},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"status":{"type":"string","enum":["requires_payment","credited","pending","unpaid"]},"credited":{"type":"boolean"}},"required":["object","id","amount","currency","status"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"403":{"description":"Approval required: this key's payments need the account owner's OK. Nothing moved. Answered when the key's \"Payments need my OK\" setting is on: code approval_required, nothing_moved: true, and a payment_approval (id, summary, amount, destination, expiresAt). Also the other permission refusals.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"topup_confirm","amount":"priced"},"description":"Credit a paid top-up session exactly once. Requires an API key with a write grant. Moves money: while the key's \"Payments need my OK\" setting is on, it answers 403 approval_required and nothing moves until the account owner approves it in the signed-in console."}},"/api/v1/transfers":{"get":{"operationId":"get_transfers","summary":"Your web+usd:// transfers","tags":["Money core & catalog"],"parameters":[{"name":"limit","in":"query","required":false,"description":"Page size (1–100, default 20).","schema":{"type":"integer"}},{"name":"offset","in":"query","required":false,"description":"Zero-based offset into the collection.","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"transfer"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"from":{"type":"string"},"to":{"type":"string"},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"rail":{"type":"string"},"memo":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string"},"settlement":{},"messaging":{"type":"object","properties":{"standard":{"type":"string"},"msgId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["standard","msgId"],"additionalProperties":false},"created":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","from","to","amount","currency","rail","memo","status","settlement","messaging"],"additionalProperties":{}}},"page":{"type":"object","properties":{"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hasMore":{"type":"boolean"},"nextOffset":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["limit","offset","hasMore","nextOffset"],"additionalProperties":false}},"required":["object","data","page"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]},"post":{"operationId":"post_transfers","summary":"Send value over web+usd://","tags":["Money core & catalog"],"parameters":[{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"fromAddress":{"type":"string","minLength":1,"maxLength":300},"toAddress":{"type":"string","minLength":1,"maxLength":300},"amountCents":{"type":"integer","exclusiveMinimum":0,"maximum":9000000000000000},"memo":{"type":"string","maxLength":280},"mode":{"default":"instant","type":"string","enum":["instant","confirm"]},"mandateId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["toAddress","amountCents"]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"transfer"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"from":{"type":"string"},"to":{"type":"string"},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"rail":{"type":"string"},"memo":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string"},"settlement":{},"messaging":{"type":"object","properties":{"standard":{"type":"string"},"msgId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["standard","msgId"],"additionalProperties":false},"created":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","from","to","amount","currency","rail","memo","status","settlement","messaging"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"403":{"description":"Approval required: this key's payments need the account owner's OK. Nothing moved. Answered when the key's \"Payments need my OK\" setting is on: code approval_required, nothing_moved: true, and a payment_approval (id, summary, amount, destination, expiresAt). Also the other permission refusals.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"transfer_create","amount":"stated"},"description":"Send value over web+usd://. Requires an API key with a write grant. Moves money: while the key's \"Payments need my OK\" setting is on, it answers 403 approval_required and nothing moves until the account owner approves it in the signed-in console."}},"/api/v1/transfers/{id}":{"get":{"operationId":"get_transfers_ById","summary":"A single transfer","tags":["Money core & catalog"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"transfer"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"from":{"type":"string"},"to":{"type":"string"},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"rail":{"type":"string"},"memo":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string"},"settlement":{},"messaging":{"type":"object","properties":{"standard":{"type":"string"},"msgId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["standard","msgId"],"additionalProperties":false},"created":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","from","to","amount","currency","rail","memo","status","settlement","messaging"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/transfers/{id}/receipt":{"get":{"operationId":"get_transfers_ById_receipt","summary":"ISO 20022 settlement receipt (family selected contextually)","tags":["Money core & catalog"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"transfer_receipt"},"transfer":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"standard":{"type":"string"},"msgId":{"anyOf":[{"type":"string"},{"type":"null"}]},"messageType":{"anyOf":[{"type":"string"},{"type":"null"}]},"messageName":{"anyOf":[{"type":"string"},{"type":"null"}]},"reason":{"type":"string"},"status":{"type":"string"},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"},"rail":{"type":"string"},"created":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","transfer","standard","msgId","messageType","messageName","reason","status","amount","currency","from","to","rail"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/transfers/{id}/confirm":{"post":{"operationId":"post_transfers_ById_confirm","summary":"Settle a held transfer","tags":["Money core & catalog"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"captureCents":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"idempotencyKey":{"type":"string"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"transfer"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"from":{"type":"string"},"to":{"type":"string"},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"rail":{"type":"string"},"memo":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string"},"settlement":{},"messaging":{"type":"object","properties":{"standard":{"type":"string"},"msgId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["standard","msgId"],"additionalProperties":false},"created":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","from","to","amount","currency","rail","memo","status","settlement","messaging"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"403":{"description":"Approval required: this key's payments need the account owner's OK. Nothing moved. Answered when the key's \"Payments need my OK\" setting is on: code approval_required, nothing_moved: true, and a payment_approval (id, summary, amount, destination, expiresAt). Also the other permission refusals.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"transfer_confirm","amount":"priced"},"description":"Settle a held transfer. Requires an API key with a write grant. Moves money: while the key's \"Payments need my OK\" setting is on, it answers 403 approval_required and nothing moves until the account owner approves it in the signed-in console."}},"/api/v1/transfers/{id}/cancel":{"post":{"operationId":"post_transfers_ById_cancel","summary":"Cancel a held transfer","tags":["Money core & catalog"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"transfer"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"from":{"type":"string"},"to":{"type":"string"},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"rail":{"type":"string"},"memo":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string"},"settlement":{},"messaging":{"type":"object","properties":{"standard":{"type":"string"},"msgId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["standard","msgId"],"additionalProperties":false},"created":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","from","to","amount","currency","rail","memo","status","settlement","messaging"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Cancel a held transfer. Requires an API key with a write grant."}},"/api/v1/refunds":{"post":{"operationId":"post_refunds","summary":"Reverse an eligible (held) transfer","tags":["Money core & catalog"],"parameters":[{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"transferId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["transferId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"refund"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"transfer":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"status":{"type":"string","const":"refunded"},"settlement":{},"created":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","transfer","amount","currency","status","settlement"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"refund"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"transfer":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"status":{"type":"string","const":"refunded"},"settlement":{},"created":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","transfer","amount","currency","status","settlement"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"403":{"description":"Approval required: this key's payments need the account owner's OK. Nothing moved. Answered when the key's \"Payments need my OK\" setting is on: code approval_required, nothing_moved: true, and a payment_approval (id, summary, amount, destination, expiresAt). Also the other permission refusals.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"refund","amount":"priced"},"description":"Reverse an eligible (held) transfer. Requires an API key with a write grant. Moves money: while the key's \"Payments need my OK\" setting is on, it answers 403 approval_required and nothing moves until the account owner approves it in the signed-in console."}},"/api/v1/fx":{"get":{"operationId":"get_fx","summary":"Quote a $:// currency conversion (real rate + fee)","tags":["Money core & catalog"],"parameters":[{"name":"from","in":"query","required":true,"description":"Source ISO 4217 currency code.","schema":{"type":"string"}},{"name":"to","in":"query","required":true,"description":"Target ISO 4217 currency code.","schema":{"type":"string"}},{"name":"amount","in":"query","required":false,"description":"Optional amount (major units) to quote.","schema":{"type":"number"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"fx_quote"},"from":{"type":"string"},"to":{"type":"string"},"amountFromCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"feeCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"netCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rate":{"type":"number"},"toCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rateAsOf":{"anyOf":[{"type":"string"},{"type":"null"}]},"rateSource":{"type":"string"}},"required":["object","from","to","amountFromCents","feeCents","netCents","rate","toCents","rateSource"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/convert":{"post":{"operationId":"post_convert","summary":"Convert between held $:// fiat currencies (atomic)","tags":["Money core & catalog"],"parameters":[{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"fromCurrency":{"type":"string","minLength":1},"toCurrency":{"type":"string","minLength":1},"amountCents":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["fromCurrency","toCurrency","amountCents"]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"conversion"},"rate":{"type":"number"},"fee":{"type":"object","properties":{"feeCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"netCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["feeCents","netCents"],"additionalProperties":{}}},"required":["object","rate","fee"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"403":{"description":"Approval required: this key's payments need the account owner's OK. Nothing moved. Answered when the key's \"Payments need my OK\" setting is on: code approval_required, nothing_moved: true, and a payment_approval (id, summary, amount, destination, expiresAt). Also the other permission refusals.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"convert","amount":"stated"},"description":"Convert between held $:// fiat currencies (atomic). Requires an API key with a write grant. Moves money: while the key's \"Payments need my OK\" setting is on, it answers 403 approval_required and nothing moves until the account owner approves it in the signed-in console."}},"/api/v1/payouts":{"get":{"operationId":"get_payouts","summary":"Bank-payout capability status","tags":["Money core & catalog"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"payout_capability"},"status":{"type":"string"},"enabled":{"type":"boolean"},"message":{"type":"string"},"hold":{"type":"object","properties":{"holdDays":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"balanceCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"availableCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"onHoldCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"nextReleaseAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"nextReleaseCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["holdDays","balanceCents","availableCents","onHoldCents","nextReleaseAt","nextReleaseCents"],"additionalProperties":false}},"required":["object","status","enabled","message","hold"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]},"post":{"operationId":"post_payouts","summary":"Cash out to a real bank account (Stripe)","tags":["Money core & catalog"],"parameters":[{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"amountCents":{"type":"integer","minimum":100,"maximum":9007199254740991},"idempotencyKey":{"type":"string"}},"required":["amountCents"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"payout"},"id":{"type":"string"},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"status":{"type":"string","const":"paid"}},"required":["object","id","amount","currency","status"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"payout"},"id":{"type":"string"},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"status":{"type":"string","const":"paid"}},"required":["object","id","amount","currency","status"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"202":{"description":"Accepted (still pending)","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"payout"},"id":{"type":"string"},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"status":{"type":"string","const":"processing"},"message":{"type":"string"}},"required":["object","id","amount","currency","status","message"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"403":{"description":"Approval required: this key's payments need the account owner's OK. Nothing moved. Answered when the key's \"Payments need my OK\" setting is on: code approval_required, nothing_moved: true, and a payment_approval (id, summary, amount, destination, expiresAt). Also the other permission refusals.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"payout","amount":"stated"},"description":"Cash out to a real bank account (Stripe). Requires an API key with a write grant. Moves money: while the key's \"Payments need my OK\" setting is on, it answers 403 approval_required and nothing moves until the account owner approves it in the signed-in console."}},"/api/v1/prices":{"get":{"operationId":"get_prices","summary":"Stripe-synced catalog prices","tags":["Commerce"],"parameters":[{"name":"limit","in":"query","required":false,"description":"Page size (1–100, default 20).","schema":{"type":"integer"}},{"name":"offset","in":"query","required":false,"description":"Zero-based offset into the collection.","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"price"},"id":{"type":"string"},"productId":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"unitAmount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"amount":{"anyOf":[{"type":"number"},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"recurring":{}},"required":["object","id","productId","name","unitAmount","amount","currency","recurring"],"additionalProperties":{}}},"page":{"type":"object","properties":{"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hasMore":{"type":"boolean"},"nextOffset":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["limit","offset","hasMore","nextOffset"],"additionalProperties":false}},"required":["object","data","page"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/prices/{id}":{"get":{"operationId":"get_prices_ById","summary":"A single price","tags":["Commerce"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"price"},"id":{"type":"string"},"productId":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"unitAmount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"amount":{"anyOf":[{"type":"number"},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"recurring":{}},"required":["object","id","productId","name","unitAmount","amount","currency","recurring"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/checkout":{"post":{"operationId":"post_checkout","summary":"Create a real Stripe Checkout Session ($://)","tags":["Commerce"],"parameters":[{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"minItems":1,"type":"array","items":{"type":"object","properties":{"priceId":{"type":"string","minLength":1},"quantity":{"type":"integer","minimum":1,"maximum":99}},"required":["priceId","quantity"]}},"shipTo":{"anyOf":[{"type":"object","properties":{"country":{"type":"string","minLength":2,"maxLength":2},"postalCode":{"anyOf":[{"type":"string","minLength":1,"maxLength":20},{"type":"null"}]}},"required":["country"]},{"type":"null"}]},"membershipContraxId":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":2147483647},{"type":"null"}]}},"required":["items"]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"checkout_session"},"url":{"anyOf":[{"type":"string"},{"type":"null"}]},"sessionId":{"type":"string"}},"required":["object","url","sessionId"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"403":{"description":"Approval required: this key's payments need the account owner's OK. Nothing moved. Answered when the key's \"Payments need my OK\" setting is on: code approval_required, nothing_moved: true, and a payment_approval (id, summary, amount, destination, expiresAt). Also the other permission refusals.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"checkout","amount":"priced"},"description":"Create a real Stripe Checkout Session ($://). Requires an API key with a write grant. Moves money: while the key's \"Payments need my OK\" setting is on, it answers 403 approval_required and nothing moves until the account owner approves it in the signed-in console."}},"/api/v1/orders":{"get":{"operationId":"get_orders","summary":"Your marketplace orders","tags":["Commerce"],"parameters":[{"name":"limit","in":"query","required":false,"description":"Page size (1–100, default 20).","schema":{"type":"integer"}},{"name":"offset","in":"query","required":false,"description":"Zero-based offset into the collection.","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"order"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sessionId":{"type":"string"},"status":{"type":"string"},"amountTotal":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"amount":{"type":"number"},"currency":{"type":"string"},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"items":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"unitAmount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"amount":{"type":"number"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"stripeProductId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name","image","unitAmount","amount","quantity","stripeProductId"],"additionalProperties":{}}}},"required":["object","id","sessionId","status","amountTotal","amount","currency","items"],"additionalProperties":{}}},"page":{"type":"object","properties":{"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hasMore":{"type":"boolean"},"nextOffset":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["limit","offset","hasMore","nextOffset"],"additionalProperties":false}},"required":["object","data","page"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/orders/{sessionId}":{"get":{"operationId":"get_orders_BySessionId","summary":"Confirm & fetch a paid order","tags":["Commerce"],"parameters":[{"name":"sessionId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"order"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sessionId":{"type":"string"},"status":{"type":"string"},"amountTotal":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"amount":{"type":"number"},"currency":{"type":"string"},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"items":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"unitAmount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"amount":{"type":"number"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"stripeProductId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name","image","unitAmount","amount","quantity","stripeProductId"],"additionalProperties":{}}}},"required":["object","id","sessionId","status","amountTotal","amount","currency","items"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"202":{"description":"Accepted (still pending)","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"order"},"sessionId":{"type":"string"},"status":{"type":"string","const":"pending"}},"required":["object","sessionId","status"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/editions":{"get":{"operationId":"get_editions","summary":"The 1-of-1 edition catalog","tags":["Commerce"],"parameters":[{"name":"limit","in":"query","required":false,"description":"Page size (1–100, default 20).","schema":{"type":"integer"}},{"name":"offset","in":"query","required":false,"description":"Zero-based offset into the collection.","schema":{"type":"integer"}},{"name":"q","in":"query","required":false,"description":"Optional case-insensitive search filter.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"edition"},"address":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"handle":{"type":"string"},"category":{"type":"string"},"tagline":{"anyOf":[{"type":"string"},{"type":"null"}]},"tokenId":{"type":"string"},"tokenStandard":{"type":"string"},"anchorGtin":{"type":"string"},"issuer":{"type":"string"},"source":{"type":"string"},"basisCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"price":{"type":"number"},"owned":{"type":"boolean"},"registered":{"type":"boolean"},"asset":{},"orgRecord":{"anyOf":[{"type":"object","properties":{"source":{"type":"string"},"sourceKey":{"type":"string"},"name":{"type":"string"},"registryLabel":{"type":"string"},"identifierLabel":{"type":"string"},"displayKey":{"type":"string"},"address":{"type":"string"},"page":{"type":"string"},"api":{"type":"string"}},"required":["source","sourceKey","name","registryLabel","identifierLabel","displayKey","address","page","api"],"additionalProperties":false},{"type":"null"}]}},"required":["object","address","slug","name","handle","category","tagline","tokenId","tokenStandard","anchorGtin","issuer","source","basisCents","price","owned","registered","asset"],"additionalProperties":{}}},"page":{"type":"object","properties":{"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hasMore":{"type":"boolean"},"nextOffset":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["limit","offset","hasMore","nextOffset"],"additionalProperties":false}},"required":["object","data","page"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]},"post":{"operationId":"post_editions","summary":"Execute editions","tags":["Editions, 6 LiNx, THeXTeNSioN & MPP"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Execute editions. Requires an API key with a write grant."}},"/api/v1/editions/{slug}":{"get":{"operationId":"get_editions_BySlug","summary":"A single edition (owned flag only)","tags":["Commerce"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"edition"},"address":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"handle":{"type":"string"},"category":{"type":"string"},"tagline":{"anyOf":[{"type":"string"},{"type":"null"}]},"tokenId":{"type":"string"},"tokenStandard":{"type":"string"},"anchorGtin":{"type":"string"},"issuer":{"type":"string"},"source":{"type":"string"},"basisCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"price":{"type":"number"},"owned":{"type":"boolean"},"registered":{"type":"boolean"},"asset":{},"orgRecord":{"anyOf":[{"type":"object","properties":{"source":{"type":"string"},"sourceKey":{"type":"string"},"name":{"type":"string"},"registryLabel":{"type":"string"},"identifierLabel":{"type":"string"},"displayKey":{"type":"string"},"address":{"type":"string"},"page":{"type":"string"},"api":{"type":"string"}},"required":["source","sourceKey","name","registryLabel","identifierLabel","displayKey","address","page","api"],"additionalProperties":false},{"type":"null"}]}},"required":["object","address","slug","name","handle","category","tagline","tokenId","tokenStandard","anchorGtin","issuer","source","basisCents","price","owned","registered","asset"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/editions/{slug}/league":{"get":{"operationId":"get_editions_BySlug_league","summary":"A league edition's teams (states, counts, tags) or a team edition's league","tags":["Commerce"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"sport","in":"query","required":false,"description":"NCAA only: football (FBS, the default) or basketball (Division I men's).","schema":{"type":"string"}},{"name":"offset","in":"query","required":false,"description":"Zero-based offset into the team list (0–10000).","schema":{"type":"integer"}},{"name":"limit","in":"query","required":false,"description":"Teams per page (1–50; NCAA defaults to 30).","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"anyOf":[{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","const":"league"},"league":{"type":"object","properties":{"key":{"type":"string","enum":["nfl","nba","mlb","nhl","ncaa"]},"spelling":{"type":"string"},"name":{"type":"string"},"domain":{"type":"string"},"slug":{"type":"string"},"edition":{"anyOf":[{"type":"object","properties":{"slug":{"type":"string"},"address":{"type":"string"},"name":{"type":"string"},"linkedBy":{"type":"string","enum":["league","known","domain","spelled"]}},"required":["slug","address","name","linkedBy"],"additionalProperties":{}},{"type":"null"}]},"conflict":{"anyOf":[{"type":"object","properties":{"slug":{"type":"string"},"address":{"type":"string"},"name":{"type":"string"}},"required":["slug","address","name"],"additionalProperties":{}},{"type":"null"}]},"tags":{"type":"array","items":{"type":"object","properties":{"sigil":{"type":"string","enum":["hash","at","cash"]},"token":{"type":"string"},"display":{"type":"string"},"address":{"type":"string"},"page":{"type":"string"}},"required":["sigil","token","display","address","page"],"additionalProperties":{}}},"teams":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["key","spelling","name","domain","slug","edition","conflict","tags","teams"],"additionalProperties":{}},"roster":{"type":"object","properties":{"season":{"type":"string"},"asOf":{"type":"string"},"source":{"type":"string"}},"required":["season","asOf","source"],"additionalProperties":{}},"counts":{"type":"object","properties":{"teams":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"registered":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cnxtd":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"minted":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"cnxting":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"conflicts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["teams","registered","cnxtd","minted","cnxting","conflicts"],"additionalProperties":{}},"sports":{"type":"array","items":{"type":"object","properties":{"sport":{"type":"string","enum":["football","basketball"]},"label":{"type":"string"},"counts":{"type":"object","properties":{"teams":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"registered":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cnxtd":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"minted":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"cnxting":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"conflicts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["teams","registered","cnxtd","minted","cnxting","conflicts"],"additionalProperties":{}}},"required":["sport","label","counts"],"additionalProperties":{}}},"page":{"type":"object","properties":{"sport":{"anyOf":[{"type":"string","enum":["football","basketball"]},{"type":"null"}]},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"teams":{"type":"array","items":{"type":"object","properties":{"spelling":{"type":"string"},"name":{"type":"string"},"sport":{"anyOf":[{"type":"string","enum":["football","basketball"]},{"type":"null"}]},"edition":{"anyOf":[{"type":"object","properties":{"slug":{"type":"string"},"address":{"type":"string"},"name":{"type":"string"},"linkedBy":{"type":"string","enum":["league","known","domain","spelled"]}},"required":["slug","address","name","linkedBy"],"additionalProperties":{}},{"type":"null"}]},"conflict":{"anyOf":[{"type":"object","properties":{"slug":{"type":"string"},"address":{"type":"string"},"name":{"type":"string"}},"required":["slug","address","name"],"additionalProperties":{}},{"type":"null"}]},"states":{"type":"object","properties":{"registered":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"cnxtd":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"minted":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"cnxting":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"required":["registered","cnxtd","minted","cnxting"],"additionalProperties":{}},"tags":{"type":"array","items":{"type":"object","properties":{"sigil":{"type":"string","enum":["hash","at","cash"]},"token":{"type":"string"},"display":{"type":"string"},"address":{"type":"string"},"page":{"type":"string"}},"required":["sigil","token","display","address","page"],"additionalProperties":{}}}},"required":["spelling","name","sport","edition","conflict","states","tags"],"additionalProperties":{}}}},"required":["sport","offset","limit","total","teams"],"additionalProperties":{}}},"required":["kind","league","roster","counts","sports","page"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"team"},"team":{"type":"object","properties":{"spelling":{"type":"string"},"name":{"type":"string"},"sport":{"anyOf":[{"type":"string","enum":["football","basketball"]},{"type":"null"}]},"edition":{"anyOf":[{"type":"object","properties":{"slug":{"type":"string"},"address":{"type":"string"},"name":{"type":"string"},"linkedBy":{"type":"string","enum":["league","known","domain","spelled"]}},"required":["slug","address","name","linkedBy"],"additionalProperties":{}},{"type":"null"}]},"conflict":{"anyOf":[{"type":"object","properties":{"slug":{"type":"string"},"address":{"type":"string"},"name":{"type":"string"}},"required":["slug","address","name"],"additionalProperties":{}},{"type":"null"}]},"states":{"type":"object","properties":{"registered":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"cnxtd":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"minted":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"cnxting":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"required":["registered","cnxtd","minted","cnxting"],"additionalProperties":{}},"tags":{"type":"array","items":{"type":"object","properties":{"sigil":{"type":"string","enum":["hash","at","cash"]},"token":{"type":"string"},"display":{"type":"string"},"address":{"type":"string"},"page":{"type":"string"}},"required":["sigil","token","display","address","page"],"additionalProperties":{}}}},"required":["spelling","name","sport","edition","conflict","states","tags"],"additionalProperties":{}},"league":{"type":"object","properties":{"key":{"type":"string","enum":["nfl","nba","mlb","nhl","ncaa"]},"spelling":{"type":"string"},"name":{"type":"string"},"domain":{"type":"string"},"slug":{"type":"string"},"edition":{"anyOf":[{"type":"object","properties":{"slug":{"type":"string"},"address":{"type":"string"},"name":{"type":"string"},"linkedBy":{"type":"string","enum":["league","known","domain","spelled"]}},"required":["slug","address","name","linkedBy"],"additionalProperties":{}},{"type":"null"}]},"conflict":{"anyOf":[{"type":"object","properties":{"slug":{"type":"string"},"address":{"type":"string"},"name":{"type":"string"}},"required":["slug","address","name"],"additionalProperties":{}},{"type":"null"}]},"tags":{"type":"array","items":{"type":"object","properties":{"sigil":{"type":"string","enum":["hash","at","cash"]},"token":{"type":"string"},"display":{"type":"string"},"address":{"type":"string"},"page":{"type":"string"}},"required":["sigil","token","display","address","page"],"additionalProperties":{}}},"teams":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["key","spelling","name","domain","slug","edition","conflict","tags","teams"],"additionalProperties":{}},"roster":{"type":"object","properties":{"season":{"type":"string"},"asOf":{"type":"string"},"source":{"type":"string"}},"required":["season","asOf","source"],"additionalProperties":{}}},"required":["kind","team","league","roster"],"additionalProperties":{}}]},{"type":"null"}]}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/editions/{slug}/mint":{"post":{"operationId":"post_editions_BySlug_mint","summary":"Mint (acquire) a 1-of-1 from your wallet","tags":["Commerce"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"acquisition"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"appId":{"type":"string"},"name":{"type":"string"},"handle":{"type":"string"},"address":{"type":"string"},"tokenId":{"anyOf":[{"type":"string"},{"type":"null"}]},"valuationCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"price":{"type":"number"},"financing":{"type":"object","properties":{"cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"bps":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["cents","bps"],"additionalProperties":false},"walletBalanceCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"runtime":{"anyOf":[{"type":"object","properties":{"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id"],"additionalProperties":false},{"type":"null"}]}},"required":["object","id","appId","name","handle","address","tokenId","valuationCents","price","financing","walletBalanceCents","runtime"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"403":{"description":"Approval required: this key's payments need the account owner's OK. Nothing moved. Answered when the key's \"Payments need my OK\" setting is on: code approval_required, nothing_moved: true, and a payment_approval (id, summary, amount, destination, expiresAt). Also the other permission refusals.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"mint","amount":"priced"},"description":"Mint (acquire) a 1-of-1 from your wallet. Requires an API key with a write grant. Moves money: while the key's \"Payments need my OK\" setting is on, it answers 403 approval_required and nothing moves until the account owner approves it in the signed-in console."}},"/api/v1/editions/{slug}/offers":{"get":{"operationId":"get_editions_BySlug_offers","summary":"Offers on an edition (role-aware)","tags":["Commerce"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"offers"},"role":{"type":"string","enum":["owner","buyer","none"]},"data":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"offer"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"amount":{"type":"number"},"valuationCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"minOfferCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"memo":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string"},"bidder":{"type":"string"},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"resolvedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id"],"additionalProperties":{}}}},"required":["object","role","data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]},"post":{"operationId":"post_editions_BySlug_offers","summary":"Make/update an offer on an owned edition","tags":["Commerce"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"amountCents":{"type":"integer","exclusiveMinimum":0,"maximum":9000000000000000},"memo":{"type":"string","maxLength":280}},"required":["amountCents"]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"offer"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"amount":{"type":"number"},"valuationCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"minOfferCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"memo":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string"},"bidder":{"type":"string"},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"resolvedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"403":{"description":"Approval required: this key's payments need the account owner's OK. Nothing moved. Answered when the key's \"Payments need my OK\" setting is on: code approval_required, nothing_moved: true, and a payment_approval (id, summary, amount, destination, expiresAt). Also the other permission refusals.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"offer_create","amount":"stated"},"description":"Make/update an offer on an owned edition. Requires an API key with a write grant. Moves money: while the key's \"Payments need my OK\" setting is on, it answers 403 approval_required and nothing moves until the account owner approves it in the signed-in console."}},"/api/v1/offers/{id}/accept":{"post":{"operationId":"post_offers_ById_accept","summary":"Owner accepts an offer (atomic transfer)","tags":["Commerce"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"offer_acceptance"}},"required":["object"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"403":{"description":"Approval required: this key's payments need the account owner's OK. Nothing moved. Answered when the key's \"Payments need my OK\" setting is on: code approval_required, nothing_moved: true, and a payment_approval (id, summary, amount, destination, expiresAt). Also the other permission refusals.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"offer_accept","amount":"priced"},"description":"Owner accepts an offer (atomic transfer). Requires an API key with a write grant. Moves money: while the key's \"Payments need my OK\" setting is on, it answers 403 approval_required and nothing moves until the account owner approves it in the signed-in console."}},"/api/v1/offers/{id}/decline":{"post":{"operationId":"post_offers_ById_decline","summary":"Owner declines a pending offer","tags":["Commerce"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"offer"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"amount":{"type":"number"},"valuationCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"minOfferCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"memo":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string"},"bidder":{"type":"string"},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"resolvedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Owner declines a pending offer. Requires an API key with a write grant."}},"/api/v1/offers/{id}/withdraw":{"post":{"operationId":"post_offers_ById_withdraw","summary":"Buyer withdraws their pending offer","tags":["Commerce"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"offer"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"amount":{"type":"number"},"valuationCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"minOfferCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"memo":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string"},"bidder":{"type":"string"},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"resolvedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Buyer withdraws their pending offer. Requires an API key with a write grant."}},"/api/v1/cnxtions/packs":{"get":{"operationId":"get_cnxtions_packs","summary":"Proposed or published CNXTioN volume-pack ladder and metering disclosure","tags":["Agentic commerce"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"tiers":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"cnxtions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"priceCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unitPrice":{"type":"string"}},"required":["key","cnxtions","priceCents","unitPrice"],"additionalProperties":false}},"pricing":{"type":"object","properties":{"status":{"type":"string","enum":["proposed","published"]},"purchasingEnabled":{"type":"boolean"},"disclosure":{"type":"string"}},"required":["status","purchasingEnabled","disclosure"],"additionalProperties":false},"enforce":{"type":"boolean"},"networkTotal":{"type":"object","properties":{"cnxtions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"basis":{"type":"string"},"asOf":{"type":"string"}},"required":["cnxtions","basis","asOf"],"additionalProperties":{}},"metering":{"type":"object","properties":{"basis":{"type":"string"},"coverage":{"type":"string","const":"partial"},"unmeteredDisclosure":{"type":"string"}},"required":["basis","coverage","unmeteredDisclosure"],"additionalProperties":{}},"measurement":{"type":"object","properties":{"status":{"type":"string","const":"not_implemented"},"disclosure":{"type":"string"}},"required":["status","disclosure"],"additionalProperties":{}}},"required":["tiers","pricing","enforce","networkTotal","metering","measurement"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/cnxtions/balance":{"get":{"operationId":"get_cnxtions_balance","summary":"Your CNXTioN volume balance","tags":["Agentic commerce"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"remaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"purchasedTotal":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"consumedTotal":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"enforce":{"type":"boolean"},"exhausted":{"type":"boolean"}},"required":["remaining","purchasedTotal","consumedTotal","enforce","exhausted"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/cnxtions/packs/{key}":{"post":{"operationId":"post_cnxtions_packs_ByKey","summary":"Purchase a published CNXTioN volume pack (disabled while pricing is proposed)","tags":["Agentic commerce"],"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"pack":{"type":"object","properties":{"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"key":{"type":"string"},"cnxtions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"priceCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"purchasedAt":{"type":"string"}},"required":["id","key","cnxtions","priceCents","purchasedAt"],"additionalProperties":{}},"balance":{"type":"object","properties":{"remaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"purchasedTotal":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"consumedTotal":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"enforce":{"type":"boolean"},"exhausted":{"type":"boolean"}},"required":["remaining","purchasedTotal","consumedTotal","enforce","exhausted"],"additionalProperties":{}}},"required":["pack","balance"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"403":{"description":"Approval required: this key's payments need the account owner's OK. Nothing moved. Answered when the key's \"Payments need my OK\" setting is on: code approval_required, nothing_moved: true, and a payment_approval (id, summary, amount, destination, expiresAt). Also the other permission refusals.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"cnxtion_pack","amount":"priced"},"description":"Purchase a published CNXTioN volume pack (disabled while pricing is proposed). Requires an API key with a write grant. Moves money: while the key's \"Payments need my OK\" setting is on, it answers 403 approval_required and nothing moves until the account owner approves it in the signed-in console."}},"/api/v1/agents":{"get":{"operationId":"get_agents","summary":"The CNXTAI agent catalog, each agent with its paid-run terms","tags":["Agentic commerce"],"parameters":[{"name":"limit","in":"query","required":false,"description":"Page size (1–100, default 20).","schema":{"type":"integer"}},{"name":"offset","in":"query","required":false,"description":"Zero-based offset into the collection.","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"agent"},"id":{"type":"string"},"name":{"type":"string"},"handle":{"type":"string"},"domain":{"anyOf":[{"type":"string"},{"type":"null"}]},"tagline":{"anyOf":[{"type":"string"},{"type":"null"}]},"autonomy":{"anyOf":[{"type":"string"},{"type":"null"}]},"seatFeeCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"seatFee":{"type":"number"},"runTerms":{"description":"Paid-run terms: 1 CNXTioN per completed run an AI engine answered, from the API-key owner's prepaid balance, capped at 1 per job, analysis-only.","type":"object","properties":{"object":{"type":"string","const":"agent_run_terms"},"version":{"description":"The terms version. A paid run must send it as paidRun.termsVersion.","type":"string"},"price":{"type":"object","properties":{"cnxtions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"usd":{"type":"string"},"per":{"type":"string","const":"completed_run"},"rate":{"type":"object","properties":{"cnxtions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"text":{"type":"string"}},"required":["cnxtions","cents","text"],"additionalProperties":{}}},"required":["cnxtions","cents","usd","per","rate"],"additionalProperties":{}},"cap":{"type":"object","properties":{"perJobCnxtions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"perJobCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"text":{"type":"string"}},"required":["perJobCnxtions","perJobCents","text"],"additionalProperties":{}},"payment":{"type":"object","properties":{"source":{"type":"string","const":"prepaid_cnxtion_balance"},"account":{"type":"string","const":"api_key_owner"},"autoPurchase":{"type":"boolean","const":false},"text":{"type":"string"}},"required":["source","account","autoPurchase","text"],"additionalProperties":{}},"mode":{"type":"object","properties":{"kind":{"type":"string","const":"analysis_only"},"text":{"type":"string"}},"required":["kind","text"],"additionalProperties":{}},"charged":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"text":{"type":"string"}},"required":["code","text"],"additionalProperties":{}}},"notCharged":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"text":{"type":"string"}},"required":["code","text"],"additionalProperties":{}}},"lostResult":{"type":"object","properties":{"replay":{"type":"string"},"lookup":{"type":"string"},"held":{"type":"string"},"release":{"type":"string"}},"required":["replay","lookup","held","release"],"additionalProperties":{}},"request":{"type":"object","properties":{"fields":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"idempotencyKey":{"type":"string"}},"required":["fields","idempotencyKey"],"additionalProperties":{}},"availability":{"description":"Whether paid runs can be bought right now.","type":"object","properties":{"purchasable":{"type":"boolean"},"pricingStatus":{"type":"string"},"text":{"type":"string"}},"required":["purchasable","pricingStatus","text"],"additionalProperties":{}}},"required":["object","version","price","cap","payment","mode","charged","notCharged","lostResult","request","availability"],"additionalProperties":{}}},"required":["object","id","name","handle","domain","tagline","autonomy","seatFeeCents","seatFee","runTerms"],"additionalProperties":{}}},"page":{"type":"object","properties":{"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hasMore":{"type":"boolean"},"nextOffset":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["limit","offset","hasMore","nextOffset"],"additionalProperties":false}},"required":["object","data","page"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/agents/{id}":{"get":{"operationId":"get_agents_ById","summary":"A single agent with its paid-run terms","tags":["Agentic commerce"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"agent"},"id":{"type":"string"},"name":{"type":"string"},"handle":{"type":"string"},"domain":{"anyOf":[{"type":"string"},{"type":"null"}]},"tagline":{"anyOf":[{"type":"string"},{"type":"null"}]},"autonomy":{"anyOf":[{"type":"string"},{"type":"null"}]},"seatFeeCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"seatFee":{"type":"number"},"runTerms":{"description":"Paid-run terms: 1 CNXTioN per completed run an AI engine answered, from the API-key owner's prepaid balance, capped at 1 per job, analysis-only.","type":"object","properties":{"object":{"type":"string","const":"agent_run_terms"},"version":{"description":"The terms version. A paid run must send it as paidRun.termsVersion.","type":"string"},"price":{"type":"object","properties":{"cnxtions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"usd":{"type":"string"},"per":{"type":"string","const":"completed_run"},"rate":{"type":"object","properties":{"cnxtions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"text":{"type":"string"}},"required":["cnxtions","cents","text"],"additionalProperties":{}}},"required":["cnxtions","cents","usd","per","rate"],"additionalProperties":{}},"cap":{"type":"object","properties":{"perJobCnxtions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"perJobCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"text":{"type":"string"}},"required":["perJobCnxtions","perJobCents","text"],"additionalProperties":{}},"payment":{"type":"object","properties":{"source":{"type":"string","const":"prepaid_cnxtion_balance"},"account":{"type":"string","const":"api_key_owner"},"autoPurchase":{"type":"boolean","const":false},"text":{"type":"string"}},"required":["source","account","autoPurchase","text"],"additionalProperties":{}},"mode":{"type":"object","properties":{"kind":{"type":"string","const":"analysis_only"},"text":{"type":"string"}},"required":["kind","text"],"additionalProperties":{}},"charged":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"text":{"type":"string"}},"required":["code","text"],"additionalProperties":{}}},"notCharged":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"text":{"type":"string"}},"required":["code","text"],"additionalProperties":{}}},"lostResult":{"type":"object","properties":{"replay":{"type":"string"},"lookup":{"type":"string"},"held":{"type":"string"},"release":{"type":"string"}},"required":["replay","lookup","held","release"],"additionalProperties":{}},"request":{"type":"object","properties":{"fields":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"idempotencyKey":{"type":"string"}},"required":["fields","idempotencyKey"],"additionalProperties":{}},"availability":{"description":"Whether paid runs can be bought right now.","type":"object","properties":{"purchasable":{"type":"boolean"},"pricingStatus":{"type":"string"},"text":{"type":"string"}},"required":["purchasable","pricingStatus","text"],"additionalProperties":{}}},"required":["object","version","price","cap","payment","mode","charged","notCharged","lostResult","request","availability"],"additionalProperties":{}}},"required":["object","id","name","handle","domain","tagline","autonomy","seatFeeCents","seatFee","runTerms"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/agents/{id}/seats":{"post":{"operationId":"post_agents_ById_seats","summary":"Acquire an agent seat","tags":["Agentic commerce"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"seat"},"mandate":{"type":"object","properties":{"object":{"type":"string","const":"mandate"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"agentId":{"type":"string"},"appId":{"type":"string"},"agentHandle":{"type":"string"},"appHandle":{"type":"string"},"budgetCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"spentCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"remainingCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"reinvestedCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limitPerTxnCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"fundSource":{"type":"string"},"reserveRatioPct":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"dailyCapCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"approvalThresholdCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"status":{"type":"string"},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","agentId","appId","agentHandle","appHandle","budgetCents","spentCents","remainingCents","reinvestedCents","limitPerTxnCents","fundSource","reserveRatioPct","dailyCapCents","approvalThresholdCents","status"],"additionalProperties":{}},"feeCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"feeWaived":{"type":"boolean"}},"required":["object","mandate","feeCents","feeWaived"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"403":{"description":"Approval required: this key's payments need the account owner's OK. Nothing moved. Answered when the key's \"Payments need my OK\" setting is on: code approval_required, nothing_moved: true, and a payment_approval (id, summary, amount, destination, expiresAt). Also the other permission refusals.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"agent_seat","amount":"priced"},"description":"Acquire an agent seat. Requires an API key with a write grant. Moves money: while the key's \"Payments need my OK\" setting is on, it answers 403 approval_required and nothing moves until the account owner approves it in the signed-in console."}},"/api/v1/agents/{id}/invocations":{"post":{"operationId":"post_agents_ById_invocations","summary":"Invoke an agent you hold; add paidRun (termsVersion, maxChargeCnxtions, approvalRef) for a paid analysis-only run with a receipt","tags":["Agentic commerce"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"string","minLength":1,"maxLength":4000},"context":{"type":"object","properties":{"name":{"type":"string","maxLength":120},"domain":{"type":"string","maxLength":60},"tagline":{"type":"string","maxLength":300},"description":{"type":"string","maxLength":1000},"capabilities":{"maxItems":20,"type":"array","items":{"type":"string","maxLength":120}},"autonomy":{"type":"string","maxLength":40}}},"sourceIds":{"maxItems":50,"type":"array","items":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"paidRun":{"description":"Paid run under the published terms: sets aside 1 CNXTioN before the run, charges it only when an AI engine answers, runs analysis-only and returns a receipt. Without it the request behaves as before.","type":"object","properties":{"termsVersion":{"description":"The run terms version the person approved (GET /api/v1/agent-runs/terms).","type":"string","minLength":1,"maxLength":64},"maxChargeCnxtions":{"description":"The most this run may cost, in CNXTioNs. Below the price is refused.","type":"integer","minimum":0,"maximum":1000000},"approvalRef":{"description":"An opaque reference to the person's OK. Never a name or email address.","type":"string","minLength":8,"maxLength":128,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]*$"}},"required":["termsVersion","maxChargeCnxtions","approvalRef"],"additionalProperties":false}},"required":["input"]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"invocation"},"input":{"type":"string"},"output":{"type":"string"},"status":{"type":"string"},"engine":{"type":"string"},"receipt":{"description":"Present only on a paid run (a request that carried paidRun).","type":"object","properties":{"object":{"type":"string","const":"agent_run_receipt"},"id":{"type":"string"},"runId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"agentId":{"type":"string"},"termsVersion":{"type":"string"},"maxChargeCnxtions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"approvalRef":{"type":"string"},"status":{"type":"string","enum":["completed","failed","held","released"]},"chargedCnxtions":{"description":"1 or 0.","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"chargedCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"chargedUsd":{"type":"string"},"setAsideCnxtions":{"description":"1 while the run is held (neither charged nor returned), otherwise 0.","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"reason":{"type":"string","enum":["ai_engine_answered","fallback_answer","run_failed","not_settled","released_by_admin"]},"reasonText":{"type":"string"},"startedAt":{"type":"string"},"settledAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"release":{"anyOf":[{"type":"object","properties":{"releasedAt":{"type":"string"},"reason":{"type":"string"}},"required":["releasedAt","reason"],"additionalProperties":{}},{"type":"null"}]},"replayed":{"description":"True when this response re-serves a stored receipt (replay or lookup).","type":"boolean"}},"required":["object","id","runId","agentId","termsVersion","maxChargeCnxtions","approvalRef","status","chargedCnxtions","chargedCents","chargedUsd","setAsideCnxtions","reason","reasonText","startedAt","settledAt","release","replayed"],"additionalProperties":{}}},"required":["object","input","output","status","engine"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"202":{"description":"Accepted (still pending)","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"invocation"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"agentId":{"type":"string"},"input":{"type":"string"},"output":{"type":"string"},"status":{"type":"string"},"engine":{"anyOf":[{"type":"string"},{"type":"null"}]},"groundedSources":{"type":"array","items":{"type":"string"}},"receipt":{"anyOf":[{"description":"The receipt of a paid run, rebuilt from the stored run on every response.","type":"object","properties":{"object":{"type":"string","const":"agent_run_receipt"},"id":{"type":"string"},"runId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"agentId":{"type":"string"},"termsVersion":{"type":"string"},"maxChargeCnxtions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"approvalRef":{"type":"string"},"status":{"type":"string","enum":["completed","failed","held","released"]},"chargedCnxtions":{"description":"1 or 0.","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"chargedCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"chargedUsd":{"type":"string"},"setAsideCnxtions":{"description":"1 while the run is held (neither charged nor returned), otherwise 0.","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"reason":{"type":"string","enum":["ai_engine_answered","fallback_answer","run_failed","not_settled","released_by_admin"]},"reasonText":{"type":"string"},"startedAt":{"type":"string"},"settledAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"release":{"anyOf":[{"type":"object","properties":{"releasedAt":{"type":"string"},"reason":{"type":"string"}},"required":["releasedAt","reason"],"additionalProperties":{}},{"type":"null"}]},"replayed":{"description":"True when this response re-serves a stored receipt (replay or lookup).","type":"boolean"}},"required":["object","id","runId","agentId","termsVersion","maxChargeCnxtions","approvalRef","status","chargedCnxtions","chargedCents","chargedUsd","setAsideCnxtions","reason","reasonText","startedAt","settledAt","release","replayed"],"additionalProperties":{}},{"type":"null"}]}},"required":["object","id","agentId","input","output","status","engine","groundedSources","receipt"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"403":{"description":"Approval required: this key's payments need the account owner's OK. Nothing moved. Answered when the key's \"Payments need my OK\" setting is on: code approval_required, nothing_moved: true, and a payment_approval (id, summary, amount, destination, expiresAt). Also the other permission refusals.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"agent_invoke","amount":"units"},"description":"Invoke an agent you hold; add paidRun (termsVersion, maxChargeCnxtions, approvalRef) for a paid analysis-only run with a receipt. Requires an API key with a write grant. Moves money: while the key's \"Payments need my OK\" setting is on, it answers 403 approval_required and nothing moves until the account owner approves it in the signed-in console."}},"/api/v1/agent-runs/terms":{"get":{"operationId":"get_agentRuns_terms","summary":"Paid-run terms: price, per-job cap, what is and isn't charged, lost-result rules, version, availability and display text","tags":["Agentic commerce"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"agent_run_terms"},"version":{"description":"The terms version. A paid run must send it as paidRun.termsVersion.","type":"string"},"price":{"type":"object","properties":{"cnxtions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"usd":{"type":"string"},"per":{"type":"string","const":"completed_run"},"rate":{"type":"object","properties":{"cnxtions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"text":{"type":"string"}},"required":["cnxtions","cents","text"],"additionalProperties":{}}},"required":["cnxtions","cents","usd","per","rate"],"additionalProperties":{}},"cap":{"type":"object","properties":{"perJobCnxtions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"perJobCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"text":{"type":"string"}},"required":["perJobCnxtions","perJobCents","text"],"additionalProperties":{}},"payment":{"type":"object","properties":{"source":{"type":"string","const":"prepaid_cnxtion_balance"},"account":{"type":"string","const":"api_key_owner"},"autoPurchase":{"type":"boolean","const":false},"text":{"type":"string"}},"required":["source","account","autoPurchase","text"],"additionalProperties":{}},"mode":{"type":"object","properties":{"kind":{"type":"string","const":"analysis_only"},"text":{"type":"string"}},"required":["kind","text"],"additionalProperties":{}},"charged":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"text":{"type":"string"}},"required":["code","text"],"additionalProperties":{}}},"notCharged":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"text":{"type":"string"}},"required":["code","text"],"additionalProperties":{}}},"lostResult":{"type":"object","properties":{"replay":{"type":"string"},"lookup":{"type":"string"},"held":{"type":"string"},"release":{"type":"string"}},"required":["replay","lookup","held","release"],"additionalProperties":{}},"request":{"type":"object","properties":{"fields":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"idempotencyKey":{"type":"string"}},"required":["fields","idempotencyKey"],"additionalProperties":{}},"availability":{"description":"Whether paid runs can be bought right now.","type":"object","properties":{"purchasable":{"type":"boolean"},"pricingStatus":{"type":"string"},"text":{"type":"string"}},"required":["purchasable","pricingStatus","text"],"additionalProperties":{}},"display":{"description":"Short text to show next to a Run button.","type":"object","properties":{"buttonLabel":{"type":"string"},"summary":{"type":"string"},"details":{"type":"array","items":{"type":"string"}},"approval":{"type":"string"}},"required":["buttonLabel","summary","details","approval"],"additionalProperties":{}}},"required":["object","version","price","cap","payment","mode","charged","notCharged","lostResult","request","availability","display"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/agent-runs/lookup":{"get":{"operationId":"get_agentRuns_lookup","summary":"One of your runs by runId or idempotencyKey: status, receipt and stored result","tags":["Agentic commerce"],"parameters":[{"name":"runId","in":"query","required":false,"description":"The run (invocation) id. Send runId or idempotencyKey, not both.","schema":{"type":"integer"}},{"name":"idempotencyKey","in":"query","required":false,"description":"The Idempotency-Key the run was started with.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"invocation"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"agentId":{"type":"string"},"input":{"type":"string"},"output":{"type":"string"},"status":{"type":"string"},"engine":{"anyOf":[{"type":"string"},{"type":"null"}]},"groundedSources":{"type":"array","items":{"type":"string"}},"receipt":{"anyOf":[{"description":"The receipt of a paid run, rebuilt from the stored run on every response.","type":"object","properties":{"object":{"type":"string","const":"agent_run_receipt"},"id":{"type":"string"},"runId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"agentId":{"type":"string"},"termsVersion":{"type":"string"},"maxChargeCnxtions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"approvalRef":{"type":"string"},"status":{"type":"string","enum":["completed","failed","held","released"]},"chargedCnxtions":{"description":"1 or 0.","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"chargedCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"chargedUsd":{"type":"string"},"setAsideCnxtions":{"description":"1 while the run is held (neither charged nor returned), otherwise 0.","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"reason":{"type":"string","enum":["ai_engine_answered","fallback_answer","run_failed","not_settled","released_by_admin"]},"reasonText":{"type":"string"},"startedAt":{"type":"string"},"settledAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"release":{"anyOf":[{"type":"object","properties":{"releasedAt":{"type":"string"},"reason":{"type":"string"}},"required":["releasedAt","reason"],"additionalProperties":{}},{"type":"null"}]},"replayed":{"description":"True when this response re-serves a stored receipt (replay or lookup).","type":"boolean"}},"required":["object","id","runId","agentId","termsVersion","maxChargeCnxtions","approvalRef","status","chargedCnxtions","chargedCents","chargedUsd","setAsideCnxtions","reason","reasonText","startedAt","settledAt","release","replayed"],"additionalProperties":{}},{"type":"null"}]}},"required":["object","id","agentId","input","output","status","engine","groundedSources","receipt"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/mandates":{"get":{"operationId":"get_mandates","summary":"Your agent spend mandates (agreements)","tags":["Agentic commerce"],"parameters":[{"name":"limit","in":"query","required":false,"description":"Page size (1–100, default 20).","schema":{"type":"integer"}},{"name":"offset","in":"query","required":false,"description":"Zero-based offset into the collection.","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"mandate"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"agentId":{"type":"string"},"appId":{"type":"string"},"agentHandle":{"type":"string"},"appHandle":{"type":"string"},"budgetCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"spentCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"remainingCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"reinvestedCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limitPerTxnCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"fundSource":{"type":"string"},"reserveRatioPct":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"dailyCapCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"approvalThresholdCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"status":{"type":"string"},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","agentId","appId","agentHandle","appHandle","budgetCents","spentCents","remainingCents","reinvestedCents","limitPerTxnCents","fundSource","reserveRatioPct","dailyCapCents","approvalThresholdCents","status"],"additionalProperties":{}}},"page":{"type":"object","properties":{"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hasMore":{"type":"boolean"},"nextOffset":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["limit","offset","hasMore","nextOffset"],"additionalProperties":false}},"required":["object","data","page"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/mandates/{id}":{"get":{"operationId":"get_mandates_ById","summary":"A single mandate","tags":["Agentic commerce"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"mandate"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"agentId":{"type":"string"},"appId":{"type":"string"},"agentHandle":{"type":"string"},"appHandle":{"type":"string"},"budgetCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"spentCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"remainingCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"reinvestedCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limitPerTxnCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"fundSource":{"type":"string"},"reserveRatioPct":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"dailyCapCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"approvalThresholdCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"status":{"type":"string"},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","agentId","appId","agentHandle","appHandle","budgetCents","spentCents","remainingCents","reinvestedCents","limitPerTxnCents","fundSource","reserveRatioPct","dailyCapCents","approvalThresholdCents","status"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/mandates/{id}/fund":{"post":{"operationId":"post_mandates_ById_fund","summary":"Fund a mandate's spend pool","tags":["Agentic commerce"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"amountCents":{"type":"integer","exclusiveMinimum":0,"maximum":9000000000000000},"limitPerTxnCents":{"type":"integer","exclusiveMinimum":0,"maximum":9000000000000000}},"required":["amountCents","limitPerTxnCents"]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"mandate"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"agentId":{"type":"string"},"appId":{"type":"string"},"agentHandle":{"type":"string"},"appHandle":{"type":"string"},"budgetCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"spentCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"remainingCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"reinvestedCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limitPerTxnCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"fundSource":{"type":"string"},"reserveRatioPct":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"dailyCapCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"approvalThresholdCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"status":{"type":"string"},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","agentId","appId","agentHandle","appHandle","budgetCents","spentCents","remainingCents","reinvestedCents","limitPerTxnCents","fundSource","reserveRatioPct","dailyCapCents","approvalThresholdCents","status"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"403":{"description":"Approval required: this key's payments need the account owner's OK. Nothing moved. Answered when the key's \"Payments need my OK\" setting is on: code approval_required, nothing_moved: true, and a payment_approval (id, summary, amount, destination, expiresAt). Also the other permission refusals.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"mandate_fund","amount":"stated"},"description":"Fund a mandate's spend pool. Requires an API key with a write grant. Moves money: while the key's \"Payments need my OK\" setting is on, it answers 403 approval_required and nothing moves until the account owner approves it in the signed-in console."}},"/api/v1/mandates/{id}/reinvest":{"post":{"operationId":"post_mandates_ById_reinvest","summary":"Reinvest the agent's own earnings into its mandate budget","tags":["Agentic commerce"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"amountCents":{"type":"integer","exclusiveMinimum":0,"maximum":9000000000000000}}}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"reinvestment"},"mandate":{"type":"object","properties":{"object":{"type":"string","const":"mandate"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"agentId":{"type":"string"},"appId":{"type":"string"},"agentHandle":{"type":"string"},"appHandle":{"type":"string"},"budgetCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"spentCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"remainingCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"reinvestedCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limitPerTxnCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"fundSource":{"type":"string"},"reserveRatioPct":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"dailyCapCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"approvalThresholdCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"status":{"type":"string"},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","agentId","appId","agentHandle","appHandle","budgetCents","spentCents","remainingCents","reinvestedCents","limitPerTxnCents","fundSource","reserveRatioPct","dailyCapCents","approvalThresholdCents","status"],"additionalProperties":{}},"reinvestedCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"realizedEarningsCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"availableEarningsCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["object","mandate","reinvestedCents","realizedEarningsCents","availableEarningsCents"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"403":{"description":"Approval required: this key's payments need the account owner's OK. Nothing moved. Answered when the key's \"Payments need my OK\" setting is on: code approval_required, nothing_moved: true, and a payment_approval (id, summary, amount, destination, expiresAt). Also the other permission refusals.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"mandate_reinvest","amount":"stated"},"description":"Reinvest the agent's own earnings into its mandate budget. Requires an API key with a write grant. Moves money: while the key's \"Payments need my OK\" setting is on, it answers 403 approval_required and nothing moves until the account owner approves it in the signed-in console."}},"/api/v1/mandates/{id}/settle":{"post":{"operationId":"post_mandates_ById_settle","summary":"Settle an agent spend against a mandate","tags":["Agentic commerce"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"amountCents":{"type":"integer","exclusiveMinimum":0,"maximum":9000000000000000},"counterparty":{"type":"string","maxLength":200},"memo":{"type":"string","maxLength":280}},"required":["amountCents"]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"settlement"},"mandate":{"type":"object","properties":{"object":{"type":"string","const":"mandate"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"agentId":{"type":"string"},"appId":{"type":"string"},"agentHandle":{"type":"string"},"appHandle":{"type":"string"},"budgetCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"spentCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"remainingCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"reinvestedCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limitPerTxnCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"fundSource":{"type":"string"},"reserveRatioPct":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"dailyCapCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"approvalThresholdCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"status":{"type":"string"},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","agentId","appId","agentHandle","appHandle","budgetCents","spentCents","remainingCents","reinvestedCents","limitPerTxnCents","fundSource","reserveRatioPct","dailyCapCents","approvalThresholdCents","status"],"additionalProperties":{}},"transaction":{},"idempotent":{"type":"boolean"}},"required":["object","mandate","transaction","idempotent"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"403":{"description":"Approval required: this key's payments need the account owner's OK. Nothing moved. Answered when the key's \"Payments need my OK\" setting is on: code approval_required, nothing_moved: true, and a payment_approval (id, summary, amount, destination, expiresAt). Also the other permission refusals.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"mandate_settle","amount":"stated"},"description":"Settle an agent spend against a mandate. Requires an API key with a write grant. Moves money: while the key's \"Payments need my OK\" setting is on, it answers 403 approval_required and nothing moves until the account owner approves it in the signed-in console."}},"/api/v1/mandates/{id}/guardrails":{"post":{"operationId":"post_mandates_ById_guardrails","summary":"Set/clear a mandate's owner guardrails (reserve ratio, daily cap, approval threshold)","tags":["Agentic commerce"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"reserveRatioPct":{"anyOf":[{"type":"integer","minimum":1,"maximum":99},{"type":"null"}]},"dailyCapCents":{"anyOf":[{"type":"integer","minimum":1,"maximum":9000000000000000},{"type":"null"}]},"approvalThresholdCents":{"anyOf":[{"type":"integer","minimum":1,"maximum":9000000000000000},{"type":"null"}]}},"additionalProperties":false}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"mandate"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"agentId":{"type":"string"},"appId":{"type":"string"},"agentHandle":{"type":"string"},"appHandle":{"type":"string"},"budgetCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"spentCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"remainingCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"reinvestedCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limitPerTxnCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"fundSource":{"type":"string"},"reserveRatioPct":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"dailyCapCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"approvalThresholdCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"status":{"type":"string"},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","agentId","appId","agentHandle","appHandle","budgetCents","spentCents","remainingCents","reinvestedCents","limitPerTxnCents","fundSource","reserveRatioPct","dailyCapCents","approvalThresholdCents","status"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Set/clear a mandate's owner guardrails (reserve ratio, daily cap, approval threshold). Requires an API key with a write grant."}},"/api/v1/mandates/{id}/revoke":{"post":{"operationId":"post_mandates_ById_revoke","summary":"Revoke a mandate","tags":["Agentic commerce"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"mandate"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"agentId":{"type":"string"},"appId":{"type":"string"},"agentHandle":{"type":"string"},"appHandle":{"type":"string"},"budgetCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"spentCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"remainingCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"reinvestedCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limitPerTxnCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"fundSource":{"type":"string"},"reserveRatioPct":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"dailyCapCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"approvalThresholdCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"status":{"type":"string"},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","agentId","appId","agentHandle","appHandle","budgetCents","spentCents","remainingCents","reinvestedCents","limitPerTxnCents","fundSource","reserveRatioPct","dailyCapCents","approvalThresholdCents","status"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Revoke a mandate. Requires an API key with a write grant."}},"/api/v1/approvals":{"get":{"operationId":"get_approvals","summary":"Held agent spends awaiting your approval (owner inbox)","tags":["Agentic commerce"],"parameters":[{"name":"limit","in":"query","required":false,"description":"Page size (1–100, default 20).","schema":{"type":"integer"}},{"name":"offset","in":"query","required":false,"description":"Zero-based offset into the collection.","schema":{"type":"integer"}},{"name":"status","in":"query","required":false,"description":"Filter by status. Agent approvals: pending, approved, denied. Payment approvals also: executing, consumed, lapsed, unknown, refused (those statuses list payment approvals only).","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"object":{"type":"string","const":"approval_request"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"mandateId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"agentId":{"type":"string"},"appId":{"type":"string"},"agentHandle":{"type":"string"},"appHandle":{"type":"string"},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"counterparty":{"anyOf":[{"type":"string"},{"type":"null"}]},"memo":{"anyOf":[{"type":"string"},{"type":"null"}]},"kind":{"type":"string"},"requestedVia":{"type":"string"},"thresholdCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string"},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"executedTransactionId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"executedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"consumedVia":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","mandateId","agentId","appId","agentHandle","appHandle","amountCents","counterparty","memo","kind","requestedVia","thresholdCents","status","executedTransactionId","consumedVia"],"additionalProperties":{}},{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}]}},"page":{"type":"object","properties":{"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hasMore":{"type":"boolean"},"nextOffset":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["limit","offset","hasMore","nextOffset"],"additionalProperties":false}},"required":["object","data","page"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/approvals/{id}":{"get":{"operationId":"get_approvals_ById","summary":"A single held approval request","tags":["Agentic commerce"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"anyOf":[{"type":"object","properties":{"object":{"type":"string","const":"approval_request"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"mandateId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"agentId":{"type":"string"},"appId":{"type":"string"},"agentHandle":{"type":"string"},"appHandle":{"type":"string"},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"counterparty":{"anyOf":[{"type":"string"},{"type":"null"}]},"memo":{"anyOf":[{"type":"string"},{"type":"null"}]},"kind":{"type":"string"},"requestedVia":{"type":"string"},"thresholdCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string"},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"executedTransactionId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"executedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"consumedVia":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","mandateId","agentId","appId","agentHandle","appHandle","amountCents","counterparty","memo","kind","requestedVia","thresholdCents","status","executedTransactionId","consumedVia"],"additionalProperties":{}},{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}]}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/approvals/{id}/approve":{"post":{"operationId":"post_approvals_ById_approve","summary":"Approve a held spend — executes the original terms exactly once","tags":["Agentic commerce"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"approval_decision"},"approval":{"type":"object","properties":{"object":{"type":"string","const":"approval_request"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"mandateId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"agentId":{"type":"string"},"appId":{"type":"string"},"agentHandle":{"type":"string"},"appHandle":{"type":"string"},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"counterparty":{"anyOf":[{"type":"string"},{"type":"null"}]},"memo":{"anyOf":[{"type":"string"},{"type":"null"}]},"kind":{"type":"string"},"requestedVia":{"type":"string"},"thresholdCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string"},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"executedTransactionId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"executedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"consumedVia":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","mandateId","agentId","appId","agentHandle","appHandle","amountCents","counterparty","memo","kind","requestedVia","thresholdCents","status","executedTransactionId","consumedVia"],"additionalProperties":{}},"execution":{"anyOf":[{"type":"object","properties":{"object":{"type":"string","const":"settlement"},"mandate":{"type":"object","properties":{"object":{"type":"string","const":"mandate"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"agentId":{"type":"string"},"appId":{"type":"string"},"agentHandle":{"type":"string"},"appHandle":{"type":"string"},"budgetCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"spentCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"remainingCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"reinvestedCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limitPerTxnCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"fundSource":{"type":"string"},"reserveRatioPct":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"dailyCapCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"approvalThresholdCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"status":{"type":"string"},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","agentId","appId","agentHandle","appHandle","budgetCents","spentCents","remainingCents","reinvestedCents","limitPerTxnCents","fundSource","reserveRatioPct","dailyCapCents","approvalThresholdCents","status"],"additionalProperties":{}},"transaction":{},"idempotent":{"type":"boolean"}},"required":["object","mandate","transaction","idempotent"],"additionalProperties":{}},{"type":"null"}]},"mode":{"anyOf":[{"type":"string","enum":["executed","consume_on_retry"]},{"type":"null"}]}},"required":["object","approval","execution","mode"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Approve a held spend — executes the original terms exactly once. Requires an API key with a write grant."}},"/api/v1/approvals/{id}/deny":{"post":{"operationId":"post_approvals_ById_deny","summary":"Deny a held spend — closes it, nothing executes","tags":["Agentic commerce"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"approval_decision"},"approval":{"type":"object","properties":{"object":{"type":"string","const":"approval_request"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"mandateId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"agentId":{"type":"string"},"appId":{"type":"string"},"agentHandle":{"type":"string"},"appHandle":{"type":"string"},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"counterparty":{"anyOf":[{"type":"string"},{"type":"null"}]},"memo":{"anyOf":[{"type":"string"},{"type":"null"}]},"kind":{"type":"string"},"requestedVia":{"type":"string"},"thresholdCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string"},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"executedTransactionId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"executedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"consumedVia":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","mandateId","agentId","appId","agentHandle","appHandle","amountCents","counterparty","memo","kind","requestedVia","thresholdCents","status","executedTransactionId","consumedVia"],"additionalProperties":{}},"execution":{"anyOf":[{"type":"object","properties":{"object":{"type":"string","const":"settlement"},"mandate":{"type":"object","properties":{"object":{"type":"string","const":"mandate"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"agentId":{"type":"string"},"appId":{"type":"string"},"agentHandle":{"type":"string"},"appHandle":{"type":"string"},"budgetCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"spentCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"remainingCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"reinvestedCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limitPerTxnCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"fundSource":{"type":"string"},"reserveRatioPct":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"dailyCapCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"approvalThresholdCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"status":{"type":"string"},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","agentId","appId","agentHandle","appHandle","budgetCents","spentCents","remainingCents","reinvestedCents","limitPerTxnCents","fundSource","reserveRatioPct","dailyCapCents","approvalThresholdCents","status"],"additionalProperties":{}},"transaction":{},"idempotent":{"type":"boolean"}},"required":["object","mandate","transaction","idempotent"],"additionalProperties":{}},{"type":"null"}]},"mode":{"anyOf":[{"type":"string","enum":["executed","consume_on_retry"]},{"type":"null"}]}},"required":["object","approval","execution","mode"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Deny a held spend — closes it, nothing executes. Requires an API key with a write grant."}},"/api/v1/tokens":{"get":{"operationId":"get_tokens","summary":"Tokenized 1-of-1 entities (issued tokens)","tags":["Agentic commerce"],"parameters":[{"name":"limit","in":"query","required":false,"description":"Page size (1–100, default 20).","schema":{"type":"integer"}},{"name":"offset","in":"query","required":false,"description":"Zero-based offset into the collection.","schema":{"type":"integer"}},{"name":"q","in":"query","required":false,"description":"Optional case-insensitive search filter.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"token"},"tokenId":{"type":"string"},"tokenStandard":{"type":"string"},"address":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"handle":{"type":"string"},"anchorGtin":{"type":"string"},"issuer":{"type":"string"},"owned":{"type":"boolean"}},"required":["object","tokenId","tokenStandard","address","slug","name","handle","anchorGtin","issuer","owned"],"additionalProperties":{}}},"page":{"type":"object","properties":{"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hasMore":{"type":"boolean"},"nextOffset":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["limit","offset","hasMore","nextOffset"],"additionalProperties":false}},"required":["object","data","page"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/policy/decisions":{"post":{"operationId":"post_policy_decisions","summary":"Evaluate the Policy Decision Point (dry-run)","tags":["Agentic commerce"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"rail":{"type":"string","minLength":1,"maxLength":60},"verb":{"type":"string","enum":["read","stage","execute"]},"mandateId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"actorKind":{"type":"string","enum":["user","agent"]},"agentId":{"type":"string","maxLength":200},"appId":{"type":"string","maxLength":200},"amountCents":{"type":"integer","minimum":0,"maximum":9000000000000000},"autonomy":{"type":"string","enum":["Co-pilot","Autonomous"]},"counterparty":{"type":"string","maxLength":200}},"required":["rail","verb"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"policy_decision"},"outcome":{"type":"string"},"reasonCode":{"type":"string"},"reason":{"type":"string"},"effectiveMode":{"type":"string"},"rules":{}},"required":["object","outcome","reasonCode","reason","effectiveMode","rules"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/diesel/edition":{"get":{"operationId":"get_diesel_edition","summary":"Diesel Desk root, proposed funding, existing Functions reference and zero-markup swap policy; preparation only, no mint or execution","tags":["Assets & identity"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"root":{"type":"object","properties":{"slug":{"type":"string","const":"thedieseldesk"},"appId":{"type":"string","const":"thedieseldesk"},"anchorAppId":{"type":"string","const":"desk:thedieseldesk"},"treasuryPairingAppId":{"type":"string","const":"desk:thedieseldesk"},"address":{"type":"string","const":"web+usd://thedieseldesk"},"name":{"type":"string"},"handle":{"type":"string","const":"#://THeDieSeLDesK"},"operatingUrl":{"type":"string","const":"https://dieselsales.centralbanks.app"},"corporateUrl":{"type":"string","const":"https://dieselsales.com"},"intendedRecipient":{"type":"string","const":"Diesel Sales / Heavy Quip Inc."},"intendedRecipientStatus":{"type":"string","const":"creator_designated_future_recipient"},"fundingTargetCents":{"type":"number","const":100000000},"nativeService":{"type":"object","properties":{"id":{"type":"number","const":442},"name":{"type":"string","const":"Diesel Desk native Functions"},"address":{"type":"string","const":"web+usd://cloud/cnxt-east-1/cnxt-functions-0442"},"regionCode":{"type":"string","const":"cnxt-east-1"},"instanceType":{"type":"string","const":"functions"},"environment":{"type":"string","const":"production"},"serviceBase":{"type":"string","const":"https://centralbanks.app/svc/cnxt-east-1/cnxt-functions-0442"},"consoleUrl":{"type":"string","const":"https://centralbanks.app/cloud/instances/442"}},"required":["id","name","address","regionCode","instanceType","environment","serviceBase","consoleUrl"],"additionalProperties":false}},"required":["slug","appId","anchorAppId","treasuryPairingAppId","address","name","handle","operatingUrl","corporateUrl","intendedRecipient","intendedRecipientStatus","fundingTargetCents","nativeService"],"additionalProperties":{}},"lifecycle":{"type":"object","properties":{"status":{"type":"string","enum":["registered_unminted","owned","unregistered","identity_conflict"]},"registered":{"type":"boolean"},"owned":{"type":"boolean"},"identity":{"type":"string","enum":["verified","unverified","conflict"]}},"required":["status","registered","owned","identity"],"additionalProperties":{}},"mint":{"type":"object","properties":{"feeCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"type":"string","const":"usd"},"supply":{"type":"number","const":1},"policy":{"type":"string","const":"authenticated_operator_only"},"financingCents":{"type":"number","const":0},"confirmationRequired":{"type":"boolean","const":true}},"required":["feeCents","currency","supply","policy","financingCents","confirmationRequired"],"additionalProperties":false},"funding":{"type":"object","properties":{"proposedTargetCents":{"type":"number","const":100000000},"currency":{"type":"string","const":"usd"},"status":{"type":"string","const":"proposed_only"},"destination":{"type":"string","const":"web+usd://app/thedieseldesk"},"note":{"type":"string"}},"required":["proposedTargetCents","currency","status","destination","note"],"additionalProperties":false},"swap":{"type":"object","properties":{"policy":{"type":"string","const":"diesel-partner-par-v1"},"additionalResaleMarkupBps":{"type":"number","const":0},"pricing":{"type":"string","const":"server_derived_cnxt_model_plus_conveyed_treasury_at_par"},"quoteRequired":{"type":"boolean","const":true},"approvalsRequired":{"type":"array","items":{"type":"string","enum":["seller","recipient"]}},"disclosure":{"type":"string"}},"required":["policy","additionalResaleMarkupBps","pricing","quoteRequired","approvalsRequired","disclosure"],"additionalProperties":false},"providers":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"role":{"type":"string"},"scope":{"type":"string"},"verification":{"type":"string","const":"source_reported"},"source":{"type":"string"},"reportedAt":{"type":"string"},"note":{"type":"string"}},"required":["name","role","scope","verification","source","reportedAt","note"],"additionalProperties":false}},"exclusions":{"type":"array","items":{"type":"string"}},"checkedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["root","lifecycle","mint","funding","swap","providers","exclusions","checkedAt"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/resolve":{"get":{"operationId":"get_resolve","summary":"Universal CNXTID resolver (?q=<address>)","tags":["Assets & identity"],"parameters":[{"name":"q","in":"query","required":true,"description":"The CNXT address to resolve (web+usd://, #://, $://, @://, gtin:).","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"resolution"},"query":{"type":"string"},"kind":{"type":"string"},"canonicalAddress":{"type":"string"}},"required":["object","query","kind","canonicalAddress"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/interop":{"get":{"operationId":"get_interop","summary":"CNXTINTEROP standards profile (?q=<address>)","tags":["Assets & identity"],"parameters":[{"name":"q","in":"query","required":true,"description":"The CNXT address to build a standards profile for.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"interop_profile"}},"required":["object"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/cnxtdb":{"get":{"operationId":"get_cnxtdb","summary":"Your CNXTDB objects (#:// / @:// / $://)","tags":["Assets & identity"],"parameters":[{"name":"limit","in":"query","required":false,"description":"Page size (1–100, default 20).","schema":{"type":"integer"}},{"name":"offset","in":"query","required":false,"description":"Zero-based offset into the collection.","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"cnxtdb_object"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rail":{"type":"string"},"kind":{"type":"string"},"name":{"type":"string"},"address":{"anyOf":[{"type":"string"},{"type":"null"}]},"sha256":{"type":"string"},"cid":{"anyOf":[{"type":"string"},{"type":"null"}]},"contentType":{"anyOf":[{"type":"string"},{"type":"null"}]},"sizeBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string"},"pinSource":{"anyOf":[{"type":"string"},{"type":"null"}]},"storageClass":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"isCurrent":{"type":"boolean"},"durable":{"type":"boolean"},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","rail","kind","name","address","sha256","cid","contentType","sizeBytes","status","pinSource","storageClass","version","isCurrent","durable"],"additionalProperties":{}}},"page":{"type":"object","properties":{"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hasMore":{"type":"boolean"},"nextOffset":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["limit","offset","hasMore","nextOffset"],"additionalProperties":false}},"required":["object","data","page"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]},"post":{"operationId":"post_cnxtdb","summary":"Publish a CNXTDB object version","tags":["Assets & identity"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"kind":{"default":"file","type":"string","minLength":1,"maxLength":64},"address":{"type":"string","maxLength":512},"contentBase64":{"type":"string","minLength":1},"pin":{"default":true,"type":"boolean"},"contentType":{"type":"string","maxLength":200},"storageClass":{"type":"string","enum":["standard","ia","cold"]}},"required":["name","contentBase64"]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"cnxtdb_object"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rail":{"type":"string"},"kind":{"type":"string"},"name":{"type":"string"},"address":{"anyOf":[{"type":"string"},{"type":"null"}]},"sha256":{"type":"string"},"cid":{"anyOf":[{"type":"string"},{"type":"null"}]},"contentType":{"anyOf":[{"type":"string"},{"type":"null"}]},"sizeBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string"},"pinSource":{"anyOf":[{"type":"string"},{"type":"null"}]},"storageClass":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"isCurrent":{"type":"boolean"},"durable":{"type":"boolean"},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"versioned":{"type":"boolean"},"restored":{"type":"boolean"},"pinError":{"anyOf":[{"type":"string"},{"type":"null"}]},"storageError":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","rail","kind","name","address","sha256","cid","contentType","sizeBytes","status","pinSource","storageClass","version","isCurrent","durable","versioned","restored","pinError","storageError"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Publish a CNXTDB object version. Requires an API key with a write grant."}},"/api/v1/cnxtdb/{address}":{"get":{"operationId":"get_cnxtdb_ByAddress","summary":"A single CNXTDB object (current version)","tags":["Assets & identity"],"parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"cnxtdb_object"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rail":{"type":"string"},"kind":{"type":"string"},"name":{"type":"string"},"address":{"anyOf":[{"type":"string"},{"type":"null"}]},"sha256":{"type":"string"},"cid":{"anyOf":[{"type":"string"},{"type":"null"}]},"contentType":{"anyOf":[{"type":"string"},{"type":"null"}]},"sizeBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string"},"pinSource":{"anyOf":[{"type":"string"},{"type":"null"}]},"storageClass":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"isCurrent":{"type":"boolean"},"durable":{"type":"boolean"},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","rail","kind","name","address","sha256","cid","contentType","sizeBytes","status","pinSource","storageClass","version","isCurrent","durable"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/treasury":{"get":{"operationId":"get_treasury","summary":"THeCeNTRaLDesK reserve state (public)","tags":["Assets & identity"],"parameters":[{"name":"limit","in":"query","required":false,"description":"Max recent reserve receipts to include.","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"treasury_reserve"}},"required":["object"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/equity/{slug}":{"get":{"operationId":"get_equity_BySlug","summary":"An edition's equity offer + cap table","tags":["Assets & identity"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"equity_offer"}},"required":["object"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/securities/{ticker}":{"get":{"operationId":"get_securities_ByTicker","summary":"Reference security identifiers (FIGI)","tags":["Assets & identity"],"parameters":[{"name":"ticker","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"security_reference"},"mapped":{"type":"boolean"}},"required":["object","mapped"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/sec/reports/{ticker}":{"get":{"operationId":"get_sec_reports_ByTicker","summary":"An SEC registrant's recent annual, quarterly and current reports and its figures as reported to the SEC, each with its period, form and filing link (read from SEC weekly and served from storage; the same object a CIK identity read carries)","tags":["Assets & identity"],"parameters":[{"name":"ticker","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"cik":{"type":"string","pattern":"^\\d{10}$"},"filings":{"type":"object","properties":{"title":{"type":"string","const":"Recent SEC filings"},"note":{"type":"string","const":"Annual, quarterly and current reports only."},"status":{"type":"string","enum":["not_read","ok"]},"retrievedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]},"source":{"type":"string","pattern":"^https:\\/\\/data\\.sec\\.gov\\/submissions\\/.*"},"items":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"form":{"type":"string","minLength":1,"maxLength":20},"filed":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"period":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"accession":{"type":"string","pattern":"^\\d{10}-\\d{2}-\\d{6}$"},"url":{"type":"string","pattern":"^https:\\/\\/www\\.sec\\.gov\\/Archives\\/edgar\\/data\\/.*"}},"required":["form","filed","period","accession","url"],"additionalProperties":false}}},"required":["title","note","status","retrievedAt","source","items"],"additionalProperties":false},"figures":{"type":"object","properties":{"title":{"type":"string","const":"Figures as reported to the SEC"},"note":{"type":"string","const":"Copied from the company's XBRL data, in the currency or unit it reported. Each period shows its most recently filed value. Figures the company did not report are left out, never estimated."},"status":{"type":"string","enum":["not_read","ok","none"]},"retrievedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]},"source":{"type":"string","pattern":"^https:\\/\\/data\\.sec\\.gov\\/api\\/xbrl\\/companyfacts\\/.*"},"items":{"maxItems":8,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["revenue","netIncome","operatingCashFlow","totalAssets","totalLiabilities","shareholdersEquity","cashAndCashEquivalents","sharesOutstanding"]},"label":{"type":"string","minLength":1},"kind":{"type":"string","enum":["duration","instant"]},"concept":{"type":"string","minLength":1},"unit":{"type":"string","minLength":1},"latest":{"type":"object","properties":{"value":{"type":"number"},"start":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"end":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"form":{"type":"string","minLength":1,"maxLength":20},"filed":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"accession":{"type":"string","pattern":"^\\d{10}-\\d{2}-\\d{6}$"},"url":{"type":"string","pattern":"^https:\\/\\/www\\.sec\\.gov\\/Archives\\/edgar\\/data\\/.*"}},"required":["value","start","end","form","filed","accession","url"],"additionalProperties":false},"earlier":{"maxItems":3,"type":"array","items":{"type":"object","properties":{"value":{"type":"number"},"start":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"end":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"form":{"type":"string","minLength":1,"maxLength":20},"filed":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"accession":{"type":"string","pattern":"^\\d{10}-\\d{2}-\\d{6}$"},"url":{"type":"string","pattern":"^https:\\/\\/www\\.sec\\.gov\\/Archives\\/edgar\\/data\\/.*"}},"required":["value","start","end","form","filed","accession","url"],"additionalProperties":false}}},"required":["key","label","kind","concept","unit","latest","earlier"],"additionalProperties":false}}},"required":["title","note","status","retrievedAt","source","items"],"additionalProperties":false}},"required":["cik","filings","figures"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/thecentralbanx":{"get":{"operationId":"get_thecentralbanx","summary":"THeCeNTRaLBaNx central-bank desk roster","tags":["Assets & identity"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"central_bank_desks"},"issuer":{"type":"string"},"tier":{"type":"string"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"disclosure":{"type":"string"},"desks":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":{}}}},"required":["object","issuer","tier","count","disclosure","desks"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/thecentralbanx/{code}":{"get":{"operationId":"get_thecentralbanx_ByCode","summary":"One central-bank desk by ISO 4217 currency (real FX + ISO 4217/13616)","tags":["Assets & identity"],"parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"central_bank_desk"},"desk":{"type":"object","properties":{},"additionalProperties":{}},"iso4217":{},"iso13616":{},"fx":{},"disclosure":{"type":"string"}},"required":["object","desk","iso4217","iso13616","fx","disclosure"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/xtension/tags/{sigil}/{token}/related":{"get":{"operationId":"get_xtension_tags_BySigil_ByToken_related","summary":"A tag's #://XPLR map: the tags verified on the same pages, with pages shared (sigil hash, at or cash; the tag page's own answer; never urls, hosts or miners)","tags":["Assets & identity"],"parameters":[{"name":"sigil","in":"path","required":true,"schema":{"type":"string"}},{"name":"token","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"sigil":{"type":"string","enum":["hash","at","cash"]},"token":{"type":"string"},"address":{"type":"string"},"display":{"type":"string"},"verifiedPages":{"type":"integer","minimum":0,"maximum":9007199254740991},"pagesCounted":{"type":"integer","minimum":0,"maximum":9007199254740991},"relatedTotal":{"type":"integer","minimum":0,"maximum":9007199254740991},"related":{"type":"array","items":{"type":"object","properties":{"sigil":{"type":"string","enum":["hash","at","cash"]},"token":{"type":"string"},"address":{"type":"string"},"display":{"type":"string"},"sharedPages":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["sigil","token","address","display","sharedPages"],"additionalProperties":false}},"links":{"type":"array","items":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"},"sharedPages":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["from","to","sharedPages"],"additionalProperties":false}},"limits":{"type":"object","properties":{"tags":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"pages":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["tags","pages"],"additionalProperties":false}},"required":["sigil","token","address","display","verifiedPages","pagesCounted","relatedTotal","related","links","limits"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/identity/{scheme}/{value}":{"get":{"operationId":"get_identity_ByScheme_ByValue","summary":"Connected identity of one LEI, ISIN or CIK (scheme lei, isin or cik): every identifier linked to it through a shared identifier, each with its source row and as-of date (bounded lists say when more exist; never by name; the same answer as /api/identity)","tags":["Assets & identity"],"parameters":[{"name":"scheme","in":"path","required":true,"schema":{"type":"string"}},{"name":"value","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"scheme":{"type":"string","enum":["lei","isin","cik"]},"value":{"type":"string","minLength":1},"page":{"anyOf":[{"type":"string","pattern":"^\\/.*"},{"type":"null"}]},"structure":{"anyOf":[{"type":"object","properties":{"prefix":{"type":"string","minLength":2,"maxLength":2},"country":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","minLength":2,"maxLength":2},"name":{"type":"string","minLength":1}},"required":["code","name"],"additionalProperties":false},{"type":"null"}]},"nationalCode":{"type":"string","minLength":9,"maxLength":9},"checkDigit":{"type":"string","minLength":1,"maxLength":1},"checkDigitValid":{"type":"boolean"},"cusip":{"anyOf":[{"type":"string","minLength":9,"maxLength":9},{"type":"null"}]}},"required":["prefix","country","nationalCode","checkDigit","checkDigitValid","cusip"],"additionalProperties":false},{"type":"null"}]},"identifiers":{"type":"array","items":{"type":"object","properties":{"scheme":{"type":"string","enum":["lei","isin","cik","bic","ticker","cusip","linx"]},"value":{"type":"string","minLength":1},"relation":{"type":"string","enum":["self","issuer","issued_security","sibling_security","certified_bic","registrant_ticker","embedded_cusip","identity_link","linked_identifier","direct_parent","ultimate_parent","head_office","fund_manager","umbrella_fund","master_fund","direct_child","international_branch","managed_fund","sub_fund","feeder_fund"]},"page":{"anyOf":[{"type":"string","pattern":"^\\/.*"},{"type":"null"}]},"read":{"anyOf":[{"type":"string","pattern":"^\\/api\\/identity\\/.*"},{"type":"null"}]},"source":{"type":"object","properties":{"dataset":{"type":"string","minLength":1},"sourceId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"asOf":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["dataset","sourceId","asOf"],"additionalProperties":false}},"required":["scheme","value","relation","page","read","source"],"additionalProperties":false}},"securities":{"anyOf":[{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"shown":{"type":"integer","minimum":0,"maximum":9007199254740991},"listPage":{"anyOf":[{"type":"string","pattern":"^\\/.*"},{"type":"null"}]},"completeness":{"type":"object","properties":{"status":{"type":"string","enum":["complete","waiting"]},"asOf":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["status","asOf"],"additionalProperties":false}},"required":["total","shown","listPage","completeness"],"additionalProperties":false},{"type":"null"}]},"bics":{"anyOf":[{"type":"object","properties":{"shown":{"type":"integer","minimum":0,"maximum":9007199254740991},"hasMore":{"type":"boolean"},"completeness":{"type":"object","properties":{"status":{"type":"string","enum":["complete","waiting"]},"asOf":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["status","asOf"],"additionalProperties":false}},"required":["shown","hasMore","completeness"],"additionalProperties":false},{"type":"null"}]},"links":{"anyOf":[{"type":"object","properties":{"shown":{"type":"integer","minimum":0,"maximum":9007199254740991},"hasMore":{"type":"boolean"}},"required":["shown","hasMore"],"additionalProperties":false},{"type":"null"}]},"tickers":{"anyOf":[{"type":"object","properties":{"shown":{"type":"integer","minimum":0,"maximum":9007199254740991},"hasMore":{"type":"boolean"}},"required":["shown","hasMore"],"additionalProperties":false},{"type":"null"}]},"legal":{"anyOf":[{"type":"object","properties":{"completeness":{"type":"object","properties":{"status":{"type":"string","enum":["complete","waiting"]},"asOf":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["status","asOf"],"additionalProperties":false},"legalForm":{"anyOf":[{"type":"object","properties":{"code":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"name":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"transliteratedName":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"abbreviation":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"other":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]}},"required":["code","name","transliteratedName","abbreviation","other"],"additionalProperties":false},{"type":"null"}]},"registrationAuthority":{"anyOf":[{"type":"object","properties":{"code":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"name":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"localName":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"organization":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"localOrganization":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"website":{"anyOf":[{"type":"string","pattern":"^https?:\\/\\/"},{"type":"null"}]},"jurisdictions":{"type":"array","items":{"type":"object","properties":{"country":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"countryCode":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"jurisdiction":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]}},"required":["country","countryCode","jurisdiction"],"additionalProperties":false}},"entityId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"other":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]}},"required":["code","name","localName","organization","localOrganization","website","jurisdictions","entityId","other"],"additionalProperties":false},{"type":"null"}]}},"required":["completeness","legalForm","registrationAuthority"],"additionalProperties":false},{"type":"null"}]},"family":{"anyOf":[{"type":"object","properties":{"completeness":{"type":"object","properties":{"status":{"type":"string","enum":["complete","waiting"]},"asOf":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["status","asOf"],"additionalProperties":false},"groups":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["direct-parent","ultimate-parent","head-office","fund-manager","umbrella-fund","master-fund","direct-children","branches","managed-funds","sub-funds","feeder-funds"]},"relation":{"type":"string","enum":["self","issuer","issued_security","sibling_security","certified_bic","registrant_ticker","embedded_cusip","identity_link","linked_identifier","direct_parent","ultimate_parent","head_office","fund_manager","umbrella_fund","master_fund","direct_child","international_branch","managed_fund","sub_fund","feeder_fund"]},"relationshipType":{"type":"string","minLength":1},"total":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"leis":{"type":"array","items":{"type":"string","pattern":"^[A-Z0-9]{20}$"}},"hasMore":{"type":"boolean"},"listPage":{"anyOf":[{"type":"string","pattern":"^\\/.*"},{"type":"null"}]}},"required":["id","relation","relationshipType","total","leis","hasMore","listPage"],"additionalProperties":false}},"exceptions":{"type":"object","properties":{"completeness":{"type":"object","properties":{"status":{"type":"string","enum":["complete","waiting"]},"asOf":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["status","asOf"],"additionalProperties":false},"direct":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","pattern":"^[A-Z][A-Z0-9_]*$"},"text":{"type":"string","minLength":1}},"required":["code","text"],"additionalProperties":false}},"ultimate":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","pattern":"^[A-Z][A-Z0-9_]*$"},"text":{"type":"string","minLength":1}},"required":["code","text"],"additionalProperties":false}}},"required":["completeness","direct","ultimate"],"additionalProperties":false}},"required":["completeness","groups","exceptions"],"additionalProperties":false},{"type":"null"}]},"reports":{"anyOf":[{"type":"object","properties":{"cik":{"type":"string","pattern":"^\\d{10}$"},"filings":{"type":"object","properties":{"title":{"type":"string","const":"Recent SEC filings"},"note":{"type":"string","const":"Annual, quarterly and current reports only."},"status":{"type":"string","enum":["not_read","ok"]},"retrievedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]},"source":{"type":"string","pattern":"^https:\\/\\/data\\.sec\\.gov\\/submissions\\/.*"},"items":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"form":{"type":"string","minLength":1,"maxLength":20},"filed":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"period":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"accession":{"type":"string","pattern":"^\\d{10}-\\d{2}-\\d{6}$"},"url":{"type":"string","pattern":"^https:\\/\\/www\\.sec\\.gov\\/Archives\\/edgar\\/data\\/.*"}},"required":["form","filed","period","accession","url"],"additionalProperties":false}}},"required":["title","note","status","retrievedAt","source","items"],"additionalProperties":false},"figures":{"type":"object","properties":{"title":{"type":"string","const":"Figures as reported to the SEC"},"note":{"type":"string","const":"Copied from the company's XBRL data, in the currency or unit it reported. Each period shows its most recently filed value. Figures the company did not report are left out, never estimated."},"status":{"type":"string","enum":["not_read","ok","none"]},"retrievedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]},"source":{"type":"string","pattern":"^https:\\/\\/data\\.sec\\.gov\\/api\\/xbrl\\/companyfacts\\/.*"},"items":{"maxItems":8,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["revenue","netIncome","operatingCashFlow","totalAssets","totalLiabilities","shareholdersEquity","cashAndCashEquivalents","sharesOutstanding"]},"label":{"type":"string","minLength":1},"kind":{"type":"string","enum":["duration","instant"]},"concept":{"type":"string","minLength":1},"unit":{"type":"string","minLength":1},"latest":{"type":"object","properties":{"value":{"type":"number"},"start":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"end":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"form":{"type":"string","minLength":1,"maxLength":20},"filed":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"accession":{"type":"string","pattern":"^\\d{10}-\\d{2}-\\d{6}$"},"url":{"type":"string","pattern":"^https:\\/\\/www\\.sec\\.gov\\/Archives\\/edgar\\/data\\/.*"}},"required":["value","start","end","form","filed","accession","url"],"additionalProperties":false},"earlier":{"maxItems":3,"type":"array","items":{"type":"object","properties":{"value":{"type":"number"},"start":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"end":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"form":{"type":"string","minLength":1,"maxLength":20},"filed":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"accession":{"type":"string","pattern":"^\\d{10}-\\d{2}-\\d{6}$"},"url":{"type":"string","pattern":"^https:\\/\\/www\\.sec\\.gov\\/Archives\\/edgar\\/data\\/.*"}},"required":["value","start","end","form","filed","accession","url"],"additionalProperties":false}}},"required":["key","label","kind","concept","unit","latest","earlier"],"additionalProperties":false}}},"required":["title","note","status","retrievedAt","source","items"],"additionalProperties":false}},"required":["cik","filings","figures"],"additionalProperties":false},{"type":"null"}]},"basis":{"type":"string","minLength":1}},"required":["scheme","value","page","structure","identifiers","securities","bics","links","tickers","legal","family","reports","basis"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/record-history/{family}/{key}":{"get":{"operationId":"get_recordHistory_ByFamily_ByKey","summary":"Record history of one registry record (family org, isin, sec, cusip or fund): the changes CNXT saw between complete refreshes of its source, newest first, each with its refresh (an empty list says nothing about whether the record exists; the same answer as /api/record-history)","tags":["Assets & identity"],"parameters":[{"name":"family","in":"path","required":true,"schema":{"type":"string"}},{"name":"key","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"record_history"},"family":{"type":"string","enum":["org","isin","sec","cusip","fund"]},"key":{"type":"string","minLength":1},"identity":{"type":"string","minLength":1},"page":{"anyOf":[{"type":"string"},{"type":"null"}]},"trackingStartedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"note":{"type":"string","minLength":1},"retention":{"type":"string","minLength":1},"changes":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"family":{"type":"string","enum":["org","isin","sec","cusip","fund"]},"key":{"type":"string","minLength":1},"identity":{"type":"string","minLength":1},"field":{"type":"string","minLength":1},"label":{"type":"string","minLength":1},"subject":{"anyOf":[{"type":"string"},{"type":"null"}]},"oldValue":{"anyOf":[{"type":"string"},{"type":"null"}]},"newValue":{"anyOf":[{"type":"string"},{"type":"null"}]},"text":{"type":"string","minLength":1},"observedAt":{"type":"string"},"refresh":{"type":"object","properties":{"label":{"type":"string","minLength":1},"completedAt":{"type":"string"}},"required":["label","completedAt"],"additionalProperties":false},"page":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","family","key","identity","field","label","subject","oldValue","newValue","text","observedAt","refresh","page"],"additionalProperties":false}}},"required":["object","family","key","identity","page","trackingStartedAt","note","retention","changes"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/record-history/{family}":{"get":{"operationId":"get_recordHistory_ByFamily","summary":"A family's record changes: the newest without ?after, or the changes recorded after a change id, oldest first, with nextAfter to poll (the same answer as /api/record-history)","tags":["Assets & identity"],"parameters":[{"name":"family","in":"path","required":true,"schema":{"type":"string"}},{"name":"after","in":"query","required":false,"description":"A change id: return the changes recorded after it, oldest first. Omit for the newest changes, newest first.","schema":{"type":"integer"}},{"name":"limit","in":"query","required":false,"description":"Changes per page (1–200, default 50).","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"record_history_feed"},"family":{"type":"string","enum":["org","isin","sec","cusip","fund"]},"order":{"type":"string","enum":["newest_first","oldest_first"]},"after":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"nextAfter":{"type":"integer","minimum":0,"maximum":9007199254740991},"hasMore":{"type":"boolean"},"trackingStartedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"retention":{"type":"string","minLength":1},"changes":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"family":{"type":"string","enum":["org","isin","sec","cusip","fund"]},"key":{"type":"string","minLength":1},"identity":{"type":"string","minLength":1},"field":{"type":"string","minLength":1},"label":{"type":"string","minLength":1},"subject":{"anyOf":[{"type":"string"},{"type":"null"}]},"oldValue":{"anyOf":[{"type":"string"},{"type":"null"}]},"newValue":{"anyOf":[{"type":"string"},{"type":"null"}]},"text":{"type":"string","minLength":1},"observedAt":{"type":"string"},"refresh":{"type":"object","properties":{"label":{"type":"string","minLength":1},"completedAt":{"type":"string"}},"required":["label","completedAt"],"additionalProperties":false},"page":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","family","key","identity","field","label","subject","oldValue","newValue","text","observedAt","refresh","page"],"additionalProperties":false}}},"required":["object","family","order","after","nextAfter","hasMore","trackingStartedAt","retention","changes"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/cloud/instances/{id}/execution":{"get":{"operationId":"get_cloud_instances_ById_execution","summary":"Owned OCI attachment intent, host/executor observations, usage and HOLD history","tags":["Cloud & app management"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"enabled":{"type":"boolean"},"backend":{"type":"string","enum":["oci_container","cnxt_container","cnxt_vm"]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"policy":{"type":"object","properties":{"nativeV2Allowed":{"type":"boolean"},"nativeV2Reason":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["nativeV2Allowed","nativeV2Reason"],"additionalProperties":false},"startAdmission":{"type":"object","properties":{"allowed":{"type":"boolean"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["allowed","reason"],"additionalProperties":false},"price":{"type":"object","properties":{"wallMsPerCent":{"type":"number","const":600000},"basis":{"type":"string"}},"required":["wallMsPerCent","basis"],"additionalProperties":false},"attachment":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"},"instanceId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"hostId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"},"generation":{"type":"integer","minimum":0,"maximum":2000000000},"desiredState":{"type":"string","enum":["stopped","running","deleted"]},"spec":{"anyOf":[{"type":"object","properties":{"version":{"type":"number","const":1},"image":{"type":"object","properties":{"registryInstanceId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"repository":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[a-z0-9]+(?:(?:[._]|__|-+)[a-z0-9]+)*(?:\\/[a-z0-9]+(?:(?:[._]|__|-+)[a-z0-9]+)*){0,4}$"},"digest":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"}},"required":["registryInstanceId","repository","digest"],"additionalProperties":false},"resources":{"type":"object","properties":{"cpuMillis":{"type":"integer","minimum":100,"maximum":2000},"memoryMiB":{"type":"integer","minimum":64,"maximum":1024},"writableMiB":{"type":"integer","minimum":16,"maximum":256},"pids":{"type":"integer","minimum":16,"maximum":256},"maxDurationSeconds":{"type":"integer","minimum":5,"maximum":60}},"required":["cpuMillis","memoryMiB","writableMiB","pids","maxDurationSeconds"],"additionalProperties":false},"network":{"type":"object","properties":{"egress":{"description":"No external default route. Health remains inside the approved host trust boundary.","type":"string","const":"none"},"healthPort":{"type":"integer","minimum":1024,"maximum":65535},"healthPath":{"type":"string","maxLength":120,"pattern":"^\\/[a-zA-Z0-9/_-]*$"}},"required":["egress","healthPort","healthPath"],"additionalProperties":false},"secretRefs":{"maxItems":16,"type":"array","items":{"type":"string","pattern":"^[A-Z][A-Z0-9_]{0,63}$"}}},"required":["version","image","resources","network","secretRefs"],"additionalProperties":false},{"type":"object","properties":{"version":{"type":"number","const":2},"backend":{"type":"string","enum":["cnxt_container","cnxt_vm"]},"image":{"type":"object","properties":{"registryInstanceId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"repository":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[a-z0-9]+(?:(?:[._]|__|-+)[a-z0-9]+)*(?:\\/[a-z0-9]+(?:(?:[._]|__|-+)[a-z0-9]+)*){0,4}$"},"digest":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"}},"required":["registryInstanceId","repository","digest"],"additionalProperties":false},"resources":{"type":"object","properties":{"cpuMillis":{"type":"integer","minimum":100,"maximum":2000},"memoryMiB":{"type":"integer","minimum":64,"maximum":4096},"writableMiB":{"type":"integer","minimum":16,"maximum":1024},"pids":{"type":"integer","minimum":16,"maximum":512},"maxDurationSeconds":{"type":"integer","minimum":5,"maximum":10000}},"required":["cpuMillis","memoryMiB","writableMiB","pids","maxDurationSeconds"],"additionalProperties":false},"storage":{"type":"object","properties":{"sizeMiB":{"type":"integer","minimum":64,"maximum":10240}},"required":["sizeMiB"],"additionalProperties":false},"network":{"type":"object","properties":{"egress":{"description":"No external default route. Health remains inside the approved host trust boundary.","type":"string","const":"none"},"healthPort":{"type":"integer","minimum":1024,"maximum":65535},"healthPath":{"type":"string","maxLength":120,"pattern":"^\\/[a-zA-Z0-9/_-]*$"}},"required":["egress","healthPort","healthPath"],"additionalProperties":false},"secretRefs":{"maxItems":16,"type":"array","items":{"type":"string","pattern":"^[A-Z][A-Z0-9_]{0,63}$"}}},"required":["version","backend","image","resources","storage","network","secretRefs"],"additionalProperties":false}]},"specDigest":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},"diskIdentity":{"anyOf":[{"type":"string","pattern":"^cnxt-disk-[a-f0-9-]{36}$"},{"type":"null"}]},"observedState":{"type":"string","enum":["unobserved","configured","running","stopped","failed","missing","stale","unreachable","HOLD","denied","deletion_pending","deleted"]},"observedGeneration":{"anyOf":[{"type":"integer","minimum":0,"maximum":2000000000},{"type":"null"}]},"observedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$"},{"type":"null"}]},"observation":{"anyOf":[{"type":"object","properties":{"sequence":{"type":"integer","minimum":0,"maximum":9007199254740991},"observedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$"},"state":{"type":"string","enum":["configured","running","stopped","failed","missing","HOLD","deleted"]},"resourceId":{"anyOf":[{"type":"string","minLength":1,"maxLength":128},{"type":"null"}]},"runtimeOperationId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"},{"type":"null"}]},"runtimeNonce":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"},{"type":"null"}]},"runtimeGeneration":{"anyOf":[{"type":"integer","minimum":0,"maximum":2000000000},{"type":"null"}]},"runtimeFencingToken":{"anyOf":[{"type":"integer","minimum":0,"maximum":2000000000},{"type":"null"}]},"startedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$"},{"type":"null"}]},"cumulativeRuntimeMs":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"cpuUsageUsec":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"memoryPeakBytes":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"registry":{"type":"string","enum":["unobserved","pulled","failed"]},"health":{"type":"string","enum":["unobserved","healthy","unhealthy"]},"healthNonce":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"},{"type":"null"}]},"logs":{"type":"string","maxLength":4096},"finalUsage":{"type":"boolean"},"diskIdentity":{"type":"string","pattern":"^cnxt-disk-[a-f0-9-]{36}$"},"neverStarted":{"type":"boolean"},"deletionProof":{"anyOf":[{"type":"object","properties":{"resourceName":{"type":"string"},"resourceId":{"anyOf":[{"type":"string"},{"type":"null"}]},"runtimeOperationId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"},{"type":"null"}]},"runtimeNonce":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"},{"type":"null"}]},"absent":{"type":"boolean","const":true},"inspectedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$"},"acceptedGeneration":{"type":"integer","minimum":0,"maximum":2000000000},"diskIdentity":{"type":"string","pattern":"^cnxt-disk-[a-f0-9-]{36}$"},"diskAbsent":{"type":"boolean","const":true}},"required":["resourceName","resourceId","runtimeOperationId","runtimeNonce","absent","inspectedAt","acceptedGeneration"],"additionalProperties":false},{"type":"null"}]}},"required":["sequence","observedAt","state","resourceId","runtimeOperationId","runtimeNonce","startedAt","finishedAt","cumulativeRuntimeMs","cpuUsageUsec","memoryPeakBytes","registry","health","healthNonce","logs","finalUsage","deletionProof"],"additionalProperties":false},{"type":"null"}]},"tombstonedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$"},{"type":"null"}]},"deletedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$"},{"type":"null"}]},"lastReason":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","instanceId","hostId","generation","desiredState","spec","specDigest","diskIdentity","observedState","observedGeneration","observedAt","observation","tombstonedAt","deletedAt","lastReason"],"additionalProperties":false},{"type":"null"}]},"host":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"},"label":{"type":"string"},"project":{"type":"string"},"pool":{"type":"string"},"instanceId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"keyFingerprint":{"type":"string"},"maxBudgetCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"reservedCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"spentCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"allowedBackends":{"type":"array","items":{"type":"string","enum":["oci_container","cnxt_container","cnxt_vm"]}},"registeredCapabilities":{"anyOf":[{"type":"object","properties":{"protocolVersion":{"anyOf":[{"type":"number","const":1},{"type":"number","const":2}]},"backends":{"type":"array","items":{"type":"string","enum":["oci_container","cnxt_container","cnxt_vm"]}},"containerRuntime":{"anyOf":[{"type":"string","const":"podman"},{"type":"null"}]},"vmDriver":{"anyOf":[{"type":"string","const":"qemu-tcg"},{"type":"null"}]},"architecture":{"anyOf":[{"type":"string","const":"x86_64"},{"type":"null"}]},"driveStaging":{"type":"object","properties":{"version":{"type":"number","const":1},"maxBytes":{"type":"number","const":16777216},"destination":{"type":"string","const":"/cnxt-drive/<operationId>"}},"required":["version","maxBytes","destination"],"additionalProperties":false}},"required":["protocolVersion","backends","containerRuntime","vmDriver","architecture"],"additionalProperties":false},{"type":"null"}]},"registeredCapacity":{"anyOf":[{"type":"object","properties":{"cpuMillis":{"type":"integer","minimum":0,"maximum":9007199254740991},"memoryMiB":{"type":"integer","minimum":0,"maximum":9007199254740991},"storageMiB":{"type":"integer","minimum":0,"maximum":9007199254740991},"pids":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["cpuMillis","memoryMiB","storageMiB","pids"],"additionalProperties":false},{"type":"null"}]},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$"},"revokedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$"},{"type":"null"}]},"registeredAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$"},{"type":"null"}]},"lastSeenAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$"},{"type":"null"}]},"state":{"type":"string","enum":["approved","ready","stale","unreachable","revoked","expired"]}},"required":["id","label","project","pool","instanceId","keyFingerprint","maxBudgetCents","reservedCents","spentCents","allowedBackends","registeredCapabilities","registeredCapacity","expiresAt","revokedAt","registeredAt","lastSeenAt","state"],"additionalProperties":false},{"type":"null"}]},"operations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"},"action":{"type":"string","enum":["attach","configure","start","stop","delete"]},"generation":{"type":"integer","minimum":0,"maximum":2000000000},"nonce":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"},"state":{"type":"string","enum":["queued","leased","dispatched","complete","HOLD","denied"]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$"},"leaseExpiresAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$"},{"type":"null"}]},"reservedCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"settledCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"releasedCents":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["id","action","generation","nonce","state","reason","createdAt","leaseExpiresAt","reservedCents","settledCents","releasedCents"],"additionalProperties":false}}},"required":["enabled","backend","reason","price","attachment","host","operations"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Machine authentication error or the documented rail refusal. HOLD and charged:null mean an unconfirmed outcome, never an automatic refund.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"state":{"type":"string","enum":["denied","HOLD"]},"charged":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"required":["error","code","message","state","charged"],"additionalProperties":false}]}}}}},"security":[{"apiKey":[]}]},"post":{"operationId":"post_cloud_instances_ById_execution","summary":"Generation-fenced OCI attach/configure/start/stop/delete; approved host only; uncertain work stays HOLD","tags":["Cloud & app management"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"action":{"type":"string","enum":["attach","configure","start","stop","delete"]},"expectedGeneration":{"type":"integer","minimum":0,"maximum":2000000000},"idempotencyKey":{"type":"string","minLength":8,"maxLength":128,"pattern":"^[a-zA-Z0-9:_-]+$"},"hostId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"},"spec":{"anyOf":[{"type":"object","properties":{"version":{"type":"number","const":1},"image":{"type":"object","properties":{"registryInstanceId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"repository":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[a-z0-9]+(?:(?:[._]|__|-+)[a-z0-9]+)*(?:\\/[a-z0-9]+(?:(?:[._]|__|-+)[a-z0-9]+)*){0,4}$"},"digest":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"}},"required":["registryInstanceId","repository","digest"],"additionalProperties":false},"resources":{"type":"object","properties":{"cpuMillis":{"type":"integer","minimum":100,"maximum":2000},"memoryMiB":{"type":"integer","minimum":64,"maximum":1024},"writableMiB":{"type":"integer","minimum":16,"maximum":256},"pids":{"type":"integer","minimum":16,"maximum":256},"maxDurationSeconds":{"type":"integer","minimum":5,"maximum":60}},"required":["cpuMillis","memoryMiB","writableMiB","pids","maxDurationSeconds"],"additionalProperties":false},"network":{"type":"object","properties":{"egress":{"description":"No external default route. Health remains inside the approved host trust boundary.","type":"string","const":"none"},"healthPort":{"type":"integer","minimum":1024,"maximum":65535},"healthPath":{"type":"string","maxLength":120,"pattern":"^\\/[a-zA-Z0-9/_-]*$"}},"required":["egress","healthPort","healthPath"],"additionalProperties":false},"secretRefs":{"maxItems":16,"type":"array","items":{"type":"string","pattern":"^[A-Z][A-Z0-9_]{0,63}$"}}},"required":["version","image","resources","network","secretRefs"],"additionalProperties":false},{"type":"object","properties":{"version":{"type":"number","const":2},"backend":{"type":"string","enum":["cnxt_container","cnxt_vm"]},"image":{"type":"object","properties":{"registryInstanceId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"repository":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[a-z0-9]+(?:(?:[._]|__|-+)[a-z0-9]+)*(?:\\/[a-z0-9]+(?:(?:[._]|__|-+)[a-z0-9]+)*){0,4}$"},"digest":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"}},"required":["registryInstanceId","repository","digest"],"additionalProperties":false},"resources":{"type":"object","properties":{"cpuMillis":{"type":"integer","minimum":100,"maximum":2000},"memoryMiB":{"type":"integer","minimum":64,"maximum":4096},"writableMiB":{"type":"integer","minimum":16,"maximum":1024},"pids":{"type":"integer","minimum":16,"maximum":512},"maxDurationSeconds":{"type":"integer","minimum":5,"maximum":10000}},"required":["cpuMillis","memoryMiB","writableMiB","pids","maxDurationSeconds"],"additionalProperties":false},"storage":{"type":"object","properties":{"sizeMiB":{"type":"integer","minimum":64,"maximum":10240}},"required":["sizeMiB"],"additionalProperties":false},"network":{"type":"object","properties":{"egress":{"description":"No external default route. Health remains inside the approved host trust boundary.","type":"string","const":"none"},"healthPort":{"type":"integer","minimum":1024,"maximum":65535},"healthPath":{"type":"string","maxLength":120,"pattern":"^\\/[a-zA-Z0-9/_-]*$"}},"required":["egress","healthPort","healthPath"],"additionalProperties":false},"secretRefs":{"maxItems":16,"type":"array","items":{"type":"string","pattern":"^[A-Z][A-Z0-9_]{0,63}$"}}},"required":["version","backend","image","resources","storage","network","secretRefs"],"additionalProperties":false}]}},"required":["action","expectedGeneration","idempotencyKey"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"enabled":{"type":"boolean"},"backend":{"type":"string","enum":["oci_container","cnxt_container","cnxt_vm"]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"policy":{"type":"object","properties":{"nativeV2Allowed":{"type":"boolean"},"nativeV2Reason":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["nativeV2Allowed","nativeV2Reason"],"additionalProperties":false},"startAdmission":{"type":"object","properties":{"allowed":{"type":"boolean"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["allowed","reason"],"additionalProperties":false},"price":{"type":"object","properties":{"wallMsPerCent":{"type":"number","const":600000},"basis":{"type":"string"}},"required":["wallMsPerCent","basis"],"additionalProperties":false},"attachment":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"},"instanceId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"hostId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"},"generation":{"type":"integer","minimum":0,"maximum":2000000000},"desiredState":{"type":"string","enum":["stopped","running","deleted"]},"spec":{"anyOf":[{"type":"object","properties":{"version":{"type":"number","const":1},"image":{"type":"object","properties":{"registryInstanceId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"repository":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[a-z0-9]+(?:(?:[._]|__|-+)[a-z0-9]+)*(?:\\/[a-z0-9]+(?:(?:[._]|__|-+)[a-z0-9]+)*){0,4}$"},"digest":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"}},"required":["registryInstanceId","repository","digest"],"additionalProperties":false},"resources":{"type":"object","properties":{"cpuMillis":{"type":"integer","minimum":100,"maximum":2000},"memoryMiB":{"type":"integer","minimum":64,"maximum":1024},"writableMiB":{"type":"integer","minimum":16,"maximum":256},"pids":{"type":"integer","minimum":16,"maximum":256},"maxDurationSeconds":{"type":"integer","minimum":5,"maximum":60}},"required":["cpuMillis","memoryMiB","writableMiB","pids","maxDurationSeconds"],"additionalProperties":false},"network":{"type":"object","properties":{"egress":{"description":"No external default route. Health remains inside the approved host trust boundary.","type":"string","const":"none"},"healthPort":{"type":"integer","minimum":1024,"maximum":65535},"healthPath":{"type":"string","maxLength":120,"pattern":"^\\/[a-zA-Z0-9/_-]*$"}},"required":["egress","healthPort","healthPath"],"additionalProperties":false},"secretRefs":{"maxItems":16,"type":"array","items":{"type":"string","pattern":"^[A-Z][A-Z0-9_]{0,63}$"}}},"required":["version","image","resources","network","secretRefs"],"additionalProperties":false},{"type":"object","properties":{"version":{"type":"number","const":2},"backend":{"type":"string","enum":["cnxt_container","cnxt_vm"]},"image":{"type":"object","properties":{"registryInstanceId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"repository":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[a-z0-9]+(?:(?:[._]|__|-+)[a-z0-9]+)*(?:\\/[a-z0-9]+(?:(?:[._]|__|-+)[a-z0-9]+)*){0,4}$"},"digest":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"}},"required":["registryInstanceId","repository","digest"],"additionalProperties":false},"resources":{"type":"object","properties":{"cpuMillis":{"type":"integer","minimum":100,"maximum":2000},"memoryMiB":{"type":"integer","minimum":64,"maximum":4096},"writableMiB":{"type":"integer","minimum":16,"maximum":1024},"pids":{"type":"integer","minimum":16,"maximum":512},"maxDurationSeconds":{"type":"integer","minimum":5,"maximum":10000}},"required":["cpuMillis","memoryMiB","writableMiB","pids","maxDurationSeconds"],"additionalProperties":false},"storage":{"type":"object","properties":{"sizeMiB":{"type":"integer","minimum":64,"maximum":10240}},"required":["sizeMiB"],"additionalProperties":false},"network":{"type":"object","properties":{"egress":{"description":"No external default route. Health remains inside the approved host trust boundary.","type":"string","const":"none"},"healthPort":{"type":"integer","minimum":1024,"maximum":65535},"healthPath":{"type":"string","maxLength":120,"pattern":"^\\/[a-zA-Z0-9/_-]*$"}},"required":["egress","healthPort","healthPath"],"additionalProperties":false},"secretRefs":{"maxItems":16,"type":"array","items":{"type":"string","pattern":"^[A-Z][A-Z0-9_]{0,63}$"}}},"required":["version","backend","image","resources","storage","network","secretRefs"],"additionalProperties":false}]},"specDigest":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},"diskIdentity":{"anyOf":[{"type":"string","pattern":"^cnxt-disk-[a-f0-9-]{36}$"},{"type":"null"}]},"observedState":{"type":"string","enum":["unobserved","configured","running","stopped","failed","missing","stale","unreachable","HOLD","denied","deletion_pending","deleted"]},"observedGeneration":{"anyOf":[{"type":"integer","minimum":0,"maximum":2000000000},{"type":"null"}]},"observedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$"},{"type":"null"}]},"observation":{"anyOf":[{"type":"object","properties":{"sequence":{"type":"integer","minimum":0,"maximum":9007199254740991},"observedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$"},"state":{"type":"string","enum":["configured","running","stopped","failed","missing","HOLD","deleted"]},"resourceId":{"anyOf":[{"type":"string","minLength":1,"maxLength":128},{"type":"null"}]},"runtimeOperationId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"},{"type":"null"}]},"runtimeNonce":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"},{"type":"null"}]},"runtimeGeneration":{"anyOf":[{"type":"integer","minimum":0,"maximum":2000000000},{"type":"null"}]},"runtimeFencingToken":{"anyOf":[{"type":"integer","minimum":0,"maximum":2000000000},{"type":"null"}]},"startedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$"},{"type":"null"}]},"cumulativeRuntimeMs":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"cpuUsageUsec":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"memoryPeakBytes":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"registry":{"type":"string","enum":["unobserved","pulled","failed"]},"health":{"type":"string","enum":["unobserved","healthy","unhealthy"]},"healthNonce":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"},{"type":"null"}]},"logs":{"type":"string","maxLength":4096},"finalUsage":{"type":"boolean"},"diskIdentity":{"type":"string","pattern":"^cnxt-disk-[a-f0-9-]{36}$"},"neverStarted":{"type":"boolean"},"deletionProof":{"anyOf":[{"type":"object","properties":{"resourceName":{"type":"string"},"resourceId":{"anyOf":[{"type":"string"},{"type":"null"}]},"runtimeOperationId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"},{"type":"null"}]},"runtimeNonce":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"},{"type":"null"}]},"absent":{"type":"boolean","const":true},"inspectedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$"},"acceptedGeneration":{"type":"integer","minimum":0,"maximum":2000000000},"diskIdentity":{"type":"string","pattern":"^cnxt-disk-[a-f0-9-]{36}$"},"diskAbsent":{"type":"boolean","const":true}},"required":["resourceName","resourceId","runtimeOperationId","runtimeNonce","absent","inspectedAt","acceptedGeneration"],"additionalProperties":false},{"type":"null"}]}},"required":["sequence","observedAt","state","resourceId","runtimeOperationId","runtimeNonce","startedAt","finishedAt","cumulativeRuntimeMs","cpuUsageUsec","memoryPeakBytes","registry","health","healthNonce","logs","finalUsage","deletionProof"],"additionalProperties":false},{"type":"null"}]},"tombstonedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$"},{"type":"null"}]},"deletedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$"},{"type":"null"}]},"lastReason":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","instanceId","hostId","generation","desiredState","spec","specDigest","diskIdentity","observedState","observedGeneration","observedAt","observation","tombstonedAt","deletedAt","lastReason"],"additionalProperties":false},{"type":"null"}]},"host":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"},"label":{"type":"string"},"project":{"type":"string"},"pool":{"type":"string"},"instanceId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"keyFingerprint":{"type":"string"},"maxBudgetCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"reservedCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"spentCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"allowedBackends":{"type":"array","items":{"type":"string","enum":["oci_container","cnxt_container","cnxt_vm"]}},"registeredCapabilities":{"anyOf":[{"type":"object","properties":{"protocolVersion":{"anyOf":[{"type":"number","const":1},{"type":"number","const":2}]},"backends":{"type":"array","items":{"type":"string","enum":["oci_container","cnxt_container","cnxt_vm"]}},"containerRuntime":{"anyOf":[{"type":"string","const":"podman"},{"type":"null"}]},"vmDriver":{"anyOf":[{"type":"string","const":"qemu-tcg"},{"type":"null"}]},"architecture":{"anyOf":[{"type":"string","const":"x86_64"},{"type":"null"}]},"driveStaging":{"type":"object","properties":{"version":{"type":"number","const":1},"maxBytes":{"type":"number","const":16777216},"destination":{"type":"string","const":"/cnxt-drive/<operationId>"}},"required":["version","maxBytes","destination"],"additionalProperties":false}},"required":["protocolVersion","backends","containerRuntime","vmDriver","architecture"],"additionalProperties":false},{"type":"null"}]},"registeredCapacity":{"anyOf":[{"type":"object","properties":{"cpuMillis":{"type":"integer","minimum":0,"maximum":9007199254740991},"memoryMiB":{"type":"integer","minimum":0,"maximum":9007199254740991},"storageMiB":{"type":"integer","minimum":0,"maximum":9007199254740991},"pids":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["cpuMillis","memoryMiB","storageMiB","pids"],"additionalProperties":false},{"type":"null"}]},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$"},"revokedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$"},{"type":"null"}]},"registeredAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$"},{"type":"null"}]},"lastSeenAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$"},{"type":"null"}]},"state":{"type":"string","enum":["approved","ready","stale","unreachable","revoked","expired"]}},"required":["id","label","project","pool","instanceId","keyFingerprint","maxBudgetCents","reservedCents","spentCents","allowedBackends","registeredCapabilities","registeredCapacity","expiresAt","revokedAt","registeredAt","lastSeenAt","state"],"additionalProperties":false},{"type":"null"}]},"operations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"},"action":{"type":"string","enum":["attach","configure","start","stop","delete"]},"generation":{"type":"integer","minimum":0,"maximum":2000000000},"nonce":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"},"state":{"type":"string","enum":["queued","leased","dispatched","complete","HOLD","denied"]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$"},"leaseExpiresAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$"},{"type":"null"}]},"reservedCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"settledCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"releasedCents":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["id","action","generation","nonce","state","reason","createdAt","leaseExpiresAt","reservedCents","settledCents","releasedCents"],"additionalProperties":false}}},"required":["enabled","backend","reason","price","attachment","host","operations"],"additionalProperties":false},"operation":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"},"action":{"type":"string","enum":["attach","configure","start","stop","delete"]},"generation":{"type":"integer","minimum":0,"maximum":2000000000},"nonce":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"},"state":{"type":"string","enum":["queued","leased","dispatched","complete","HOLD","denied"]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$"},"leaseExpiresAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$"},{"type":"null"}]},"reservedCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"settledCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"releasedCents":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["id","action","generation","nonce","state","reason","createdAt","leaseExpiresAt","reservedCents","settledCents","releasedCents"],"additionalProperties":false},"replayed":{"type":"boolean"}},"required":["data","operation","replayed"],"additionalProperties":false}}}},"202":{"description":"Accepted (still pending)","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"enabled":{"type":"boolean"},"backend":{"type":"string","enum":["oci_container","cnxt_container","cnxt_vm"]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"policy":{"type":"object","properties":{"nativeV2Allowed":{"type":"boolean"},"nativeV2Reason":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["nativeV2Allowed","nativeV2Reason"],"additionalProperties":false},"startAdmission":{"type":"object","properties":{"allowed":{"type":"boolean"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["allowed","reason"],"additionalProperties":false},"price":{"type":"object","properties":{"wallMsPerCent":{"type":"number","const":600000},"basis":{"type":"string"}},"required":["wallMsPerCent","basis"],"additionalProperties":false},"attachment":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"},"instanceId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"hostId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"},"generation":{"type":"integer","minimum":0,"maximum":2000000000},"desiredState":{"type":"string","enum":["stopped","running","deleted"]},"spec":{"anyOf":[{"type":"object","properties":{"version":{"type":"number","const":1},"image":{"type":"object","properties":{"registryInstanceId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"repository":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[a-z0-9]+(?:(?:[._]|__|-+)[a-z0-9]+)*(?:\\/[a-z0-9]+(?:(?:[._]|__|-+)[a-z0-9]+)*){0,4}$"},"digest":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"}},"required":["registryInstanceId","repository","digest"],"additionalProperties":false},"resources":{"type":"object","properties":{"cpuMillis":{"type":"integer","minimum":100,"maximum":2000},"memoryMiB":{"type":"integer","minimum":64,"maximum":1024},"writableMiB":{"type":"integer","minimum":16,"maximum":256},"pids":{"type":"integer","minimum":16,"maximum":256},"maxDurationSeconds":{"type":"integer","minimum":5,"maximum":60}},"required":["cpuMillis","memoryMiB","writableMiB","pids","maxDurationSeconds"],"additionalProperties":false},"network":{"type":"object","properties":{"egress":{"description":"No external default route. Health remains inside the approved host trust boundary.","type":"string","const":"none"},"healthPort":{"type":"integer","minimum":1024,"maximum":65535},"healthPath":{"type":"string","maxLength":120,"pattern":"^\\/[a-zA-Z0-9/_-]*$"}},"required":["egress","healthPort","healthPath"],"additionalProperties":false},"secretRefs":{"maxItems":16,"type":"array","items":{"type":"string","pattern":"^[A-Z][A-Z0-9_]{0,63}$"}}},"required":["version","image","resources","network","secretRefs"],"additionalProperties":false},{"type":"object","properties":{"version":{"type":"number","const":2},"backend":{"type":"string","enum":["cnxt_container","cnxt_vm"]},"image":{"type":"object","properties":{"registryInstanceId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"repository":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[a-z0-9]+(?:(?:[._]|__|-+)[a-z0-9]+)*(?:\\/[a-z0-9]+(?:(?:[._]|__|-+)[a-z0-9]+)*){0,4}$"},"digest":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"}},"required":["registryInstanceId","repository","digest"],"additionalProperties":false},"resources":{"type":"object","properties":{"cpuMillis":{"type":"integer","minimum":100,"maximum":2000},"memoryMiB":{"type":"integer","minimum":64,"maximum":4096},"writableMiB":{"type":"integer","minimum":16,"maximum":1024},"pids":{"type":"integer","minimum":16,"maximum":512},"maxDurationSeconds":{"type":"integer","minimum":5,"maximum":10000}},"required":["cpuMillis","memoryMiB","writableMiB","pids","maxDurationSeconds"],"additionalProperties":false},"storage":{"type":"object","properties":{"sizeMiB":{"type":"integer","minimum":64,"maximum":10240}},"required":["sizeMiB"],"additionalProperties":false},"network":{"type":"object","properties":{"egress":{"description":"No external default route. Health remains inside the approved host trust boundary.","type":"string","const":"none"},"healthPort":{"type":"integer","minimum":1024,"maximum":65535},"healthPath":{"type":"string","maxLength":120,"pattern":"^\\/[a-zA-Z0-9/_-]*$"}},"required":["egress","healthPort","healthPath"],"additionalProperties":false},"secretRefs":{"maxItems":16,"type":"array","items":{"type":"string","pattern":"^[A-Z][A-Z0-9_]{0,63}$"}}},"required":["version","backend","image","resources","storage","network","secretRefs"],"additionalProperties":false}]},"specDigest":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},"diskIdentity":{"anyOf":[{"type":"string","pattern":"^cnxt-disk-[a-f0-9-]{36}$"},{"type":"null"}]},"observedState":{"type":"string","enum":["unobserved","configured","running","stopped","failed","missing","stale","unreachable","HOLD","denied","deletion_pending","deleted"]},"observedGeneration":{"anyOf":[{"type":"integer","minimum":0,"maximum":2000000000},{"type":"null"}]},"observedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$"},{"type":"null"}]},"observation":{"anyOf":[{"type":"object","properties":{"sequence":{"type":"integer","minimum":0,"maximum":9007199254740991},"observedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$"},"state":{"type":"string","enum":["configured","running","stopped","failed","missing","HOLD","deleted"]},"resourceId":{"anyOf":[{"type":"string","minLength":1,"maxLength":128},{"type":"null"}]},"runtimeOperationId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"},{"type":"null"}]},"runtimeNonce":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"},{"type":"null"}]},"runtimeGeneration":{"anyOf":[{"type":"integer","minimum":0,"maximum":2000000000},{"type":"null"}]},"runtimeFencingToken":{"anyOf":[{"type":"integer","minimum":0,"maximum":2000000000},{"type":"null"}]},"startedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$"},{"type":"null"}]},"cumulativeRuntimeMs":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"cpuUsageUsec":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"memoryPeakBytes":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"registry":{"type":"string","enum":["unobserved","pulled","failed"]},"health":{"type":"string","enum":["unobserved","healthy","unhealthy"]},"healthNonce":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"},{"type":"null"}]},"logs":{"type":"string","maxLength":4096},"finalUsage":{"type":"boolean"},"diskIdentity":{"type":"string","pattern":"^cnxt-disk-[a-f0-9-]{36}$"},"neverStarted":{"type":"boolean"},"deletionProof":{"anyOf":[{"type":"object","properties":{"resourceName":{"type":"string"},"resourceId":{"anyOf":[{"type":"string"},{"type":"null"}]},"runtimeOperationId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"},{"type":"null"}]},"runtimeNonce":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"},{"type":"null"}]},"absent":{"type":"boolean","const":true},"inspectedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$"},"acceptedGeneration":{"type":"integer","minimum":0,"maximum":2000000000},"diskIdentity":{"type":"string","pattern":"^cnxt-disk-[a-f0-9-]{36}$"},"diskAbsent":{"type":"boolean","const":true}},"required":["resourceName","resourceId","runtimeOperationId","runtimeNonce","absent","inspectedAt","acceptedGeneration"],"additionalProperties":false},{"type":"null"}]}},"required":["sequence","observedAt","state","resourceId","runtimeOperationId","runtimeNonce","startedAt","finishedAt","cumulativeRuntimeMs","cpuUsageUsec","memoryPeakBytes","registry","health","healthNonce","logs","finalUsage","deletionProof"],"additionalProperties":false},{"type":"null"}]},"tombstonedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$"},{"type":"null"}]},"deletedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$"},{"type":"null"}]},"lastReason":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","instanceId","hostId","generation","desiredState","spec","specDigest","diskIdentity","observedState","observedGeneration","observedAt","observation","tombstonedAt","deletedAt","lastReason"],"additionalProperties":false},{"type":"null"}]},"host":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"},"label":{"type":"string"},"project":{"type":"string"},"pool":{"type":"string"},"instanceId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"keyFingerprint":{"type":"string"},"maxBudgetCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"reservedCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"spentCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"allowedBackends":{"type":"array","items":{"type":"string","enum":["oci_container","cnxt_container","cnxt_vm"]}},"registeredCapabilities":{"anyOf":[{"type":"object","properties":{"protocolVersion":{"anyOf":[{"type":"number","const":1},{"type":"number","const":2}]},"backends":{"type":"array","items":{"type":"string","enum":["oci_container","cnxt_container","cnxt_vm"]}},"containerRuntime":{"anyOf":[{"type":"string","const":"podman"},{"type":"null"}]},"vmDriver":{"anyOf":[{"type":"string","const":"qemu-tcg"},{"type":"null"}]},"architecture":{"anyOf":[{"type":"string","const":"x86_64"},{"type":"null"}]},"driveStaging":{"type":"object","properties":{"version":{"type":"number","const":1},"maxBytes":{"type":"number","const":16777216},"destination":{"type":"string","const":"/cnxt-drive/<operationId>"}},"required":["version","maxBytes","destination"],"additionalProperties":false}},"required":["protocolVersion","backends","containerRuntime","vmDriver","architecture"],"additionalProperties":false},{"type":"null"}]},"registeredCapacity":{"anyOf":[{"type":"object","properties":{"cpuMillis":{"type":"integer","minimum":0,"maximum":9007199254740991},"memoryMiB":{"type":"integer","minimum":0,"maximum":9007199254740991},"storageMiB":{"type":"integer","minimum":0,"maximum":9007199254740991},"pids":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["cpuMillis","memoryMiB","storageMiB","pids"],"additionalProperties":false},{"type":"null"}]},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$"},"revokedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$"},{"type":"null"}]},"registeredAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$"},{"type":"null"}]},"lastSeenAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$"},{"type":"null"}]},"state":{"type":"string","enum":["approved","ready","stale","unreachable","revoked","expired"]}},"required":["id","label","project","pool","instanceId","keyFingerprint","maxBudgetCents","reservedCents","spentCents","allowedBackends","registeredCapabilities","registeredCapacity","expiresAt","revokedAt","registeredAt","lastSeenAt","state"],"additionalProperties":false},{"type":"null"}]},"operations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"},"action":{"type":"string","enum":["attach","configure","start","stop","delete"]},"generation":{"type":"integer","minimum":0,"maximum":2000000000},"nonce":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"},"state":{"type":"string","enum":["queued","leased","dispatched","complete","HOLD","denied"]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$"},"leaseExpiresAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$"},{"type":"null"}]},"reservedCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"settledCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"releasedCents":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["id","action","generation","nonce","state","reason","createdAt","leaseExpiresAt","reservedCents","settledCents","releasedCents"],"additionalProperties":false}}},"required":["enabled","backend","reason","price","attachment","host","operations"],"additionalProperties":false},"operation":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"},"action":{"type":"string","enum":["attach","configure","start","stop","delete"]},"generation":{"type":"integer","minimum":0,"maximum":2000000000},"nonce":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"},"state":{"type":"string","enum":["queued","leased","dispatched","complete","HOLD","denied"]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$"},"leaseExpiresAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$"},{"type":"null"}]},"reservedCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"settledCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"releasedCents":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["id","action","generation","nonce","state","reason","createdAt","leaseExpiresAt","reservedCents","settledCents","releasedCents"],"additionalProperties":false},"replayed":{"type":"boolean"}},"required":["data","operation","replayed"],"additionalProperties":false}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Machine authentication error or the documented rail refusal. HOLD and charged:null mean an unconfirmed outcome, never an automatic refund.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"state":{"type":"string","enum":["denied","HOLD"]},"charged":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"required":["error","code","message","state","charged"],"additionalProperties":false}]}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"cloud_oci_lifecycle","amount":"unpriced"},"description":"Generation-fenced OCI attach/configure/start/stop/delete; approved host only; uncertain work stays HOLD. Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."}},"/api/v1/cloud/{id}":{"get":{"operationId":"get_cloud_ById","summary":"A single CNXTCLOUD instance you own","tags":["Cloud & app management"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"cloud_instance"},"address":{"type":"string"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"regionCode":{"type":"string"},"instanceType":{"type":"string"},"status":{"type":"string"}},"required":["object","id","name","regionCode","instanceType","status"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]},"patch":{"operationId":"patch_cloud_ById","summary":"Set native instance control state/name (not external OCI start/stop)","tags":["Cloud & app management"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":160},"status":{"type":"string","enum":["running","stopped","suspended"]}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"cloud_instance"},"address":{"type":"string"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"regionCode":{"type":"string"},"instanceType":{"type":"string"},"status":{"type":"string"}},"required":["object","id","name","regionCode","instanceType","status"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Set native instance control state/name (not external OCI start/stop). Requires an API key with a write grant."},"delete":{"operationId":"delete_cloud_ById","summary":"Terminate an instance (refunds mandates)","tags":["Cloud & app management"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"deleted"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"deleted":{"type":"boolean","const":true}},"required":["object","id","deleted"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Terminate an instance (refunds mandates). Requires an API key with a write grant."}},"/api/v1/apps/{id}":{"get":{"operationId":"get_apps_ById","summary":"A single CNXTAPPS edition you own","tags":["Cloud & app management"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"app_edition"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"address":{"type":"string"},"appId":{"type":"string"},"name":{"type":"string"},"handle":{"type":"string"},"status":{"type":"string"},"launchCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["object","address","appId","name","handle","status","launchCount"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/apps/{id}/launch":{"post":{"operationId":"post_apps_ById_launch","summary":"Launch an owned edition (provisions runtime)","tags":["Cloud & app management"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"app_edition"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"address":{"type":"string"},"appId":{"type":"string"},"name":{"type":"string"},"handle":{"type":"string"},"status":{"type":"string"},"launchCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"runtimeProvisioned":{"type":"boolean"}},"required":["object","address","appId","name","handle","status","launchCount","runtimeProvisioned"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Launch an owned edition (provisions runtime). Requires an API key with a write grant."}},"/api/v1/cloud/dns/contract":{"get":{"operationId":"get_cloud_dns_contract","summary":"Public #://CNXTCLouDx Managed DNS, RFC 1035 wire codec, RFC 8484 DoH & #://ARiN (CTL-401) contract","tags":["CNXTCLOUD 10 execution planes"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[]}},"/api/v1/cloud/instances/{id}/dns":{"get":{"operationId":"get_cloud_instances_ById_dns","summary":"Managed DNS overview, limits, and publisher status for an instance","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/cloud/instances/{id}/dns/zones":{"get":{"operationId":"get_cloud_instances_ById_dns_zones","summary":"List authoritative DNS zones attached to a cloud instance","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]},"post":{"operationId":"post_cloud_instances_ById_dns_zones","summary":"Create a managed authoritative DNS zone on a cloud instance","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Create a managed authoritative DNS zone on a cloud instance. Requires an API key with a write grant."}},"/api/v1/cloud/instances/{id}/dns/zones/{zoneId}":{"get":{"operationId":"get_cloud_instances_ById_dns_zones_ByZoneId","summary":"Read a single managed DNS zone and its RRsets","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"zoneId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]},"put":{"operationId":"put_cloud_instances_ById_dns_zones_ByZoneId","summary":"Replace RRsets (including wildcard * records) on a managed DNS zone","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"zoneId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Replace RRsets (including wildcard * records) on a managed DNS zone. Requires an API key with a write grant."},"delete":{"operationId":"delete_cloud_instances_ById_dns_zones_ByZoneId","summary":"Delete a managed DNS zone and unpublish live authoritative records","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"zoneId","in":"path","required":true,"schema":{"type":"string"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"svc_dns_spend","amount":"unpriced"},"description":"Delete a managed DNS zone and unpublish live authoritative records. Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."}},"/api/v1/cloud/instances/{id}/dns/zones/{zoneId}/verify-ownership":{"post":{"operationId":"post_cloud_instances_ById_dns_zones_ByZoneId_verifyOwnership","summary":"Verify _cnxt-verify TXT domain ownership for a DNS zone","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"zoneId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Verify _cnxt-verify TXT domain ownership for a DNS zone. Requires an API key with a write grant."}},"/api/v1/cloud/instances/{id}/dns/zones/{zoneId}/check-publisher":{"post":{"operationId":"post_cloud_instances_ById_dns_zones_ByZoneId_checkPublisher","summary":"Verify Cloud DNS publisher IAM readiness for a DNS zone","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"zoneId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Verify Cloud DNS publisher IAM readiness for a DNS zone. Requires an API key with a write grant."}},"/api/v1/cloud/instances/{id}/dns/zones/{zoneId}/publish":{"post":{"operationId":"post_cloud_instances_ById_dns_zones_ByZoneId_publish","summary":"Publish authoritative RRsets for a verified DNS zone to Cloud DNS","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"zoneId","in":"path","required":true,"schema":{"type":"string"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"svc_dns_spend","amount":"unpriced"},"description":"Publish authoritative RRsets for a verified DNS zone to Cloud DNS. Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."}},"/api/v1/cloud/instances/{id}/dns/zones/{zoneId}/reconcile":{"post":{"operationId":"post_cloud_instances_ById_dns_zones_ByZoneId_reconcile","summary":"Reconcile live authoritative Cloud DNS records with stored RRsets","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"zoneId","in":"path","required":true,"schema":{"type":"string"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"svc_dns_spend","amount":"unpriced"},"description":"Reconcile live authoritative Cloud DNS records with stored RRsets. Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."}},"/api/v1/cloud/instances/{id}/dns/zones/{zoneId}/verify":{"post":{"operationId":"post_cloud_instances_ById_dns_zones_ByZoneId_verify","summary":"Probe authoritative, delegated, and HTTPS resolution (including wildcard canary)","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"zoneId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Probe authoritative, delegated, and HTTPS resolution (including wildcard canary). Requires an API key with a write grant."}},"/api/v1/cloud/instances/{id}/dns/packet":{"post":{"operationId":"post_cloud_instances_ById_dns_packet","summary":"Encode, decode, or authoritatively resolve RFC 1035 binary DNS wire packets","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Encode, decode, or authoritatively resolve RFC 1035 binary DNS wire packets. Requires an API key with a write grant."}},"/api/v1/cloud/instances/{id}/vectors/stats":{"get":{"operationId":"get_cloud_instances_ById_vectors_stats","summary":"Read Cloud instance vectors stats","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/cloud/instances/{id}/vectors/build":{"post":{"operationId":"post_cloud_instances_ById_vectors_build","summary":"Execute Cloud instance vectors build","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"svc_vector_build","amount":"unpriced"},"description":"Execute Cloud instance vectors build. Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."}},"/api/v1/cloud/instances/{id}/vectors/query":{"post":{"operationId":"post_cloud_instances_ById_vectors_query","summary":"Execute Cloud instance vectors query","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"svc_vector_query","amount":"unpriced"},"description":"Execute Cloud instance vectors query. Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."}},"/api/v1/cloud/instances/{id}/vectors/grounded-answer":{"post":{"operationId":"post_cloud_instances_ById_vectors_groundedAnswer","summary":"Execute Cloud instance vectors grounded-answer","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"svc_grounded_answer","amount":"unpriced"},"description":"Execute Cloud instance vectors grounded-answer. Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."}},"/api/v1/cloud/instances/{id}/infer":{"post":{"operationId":"post_cloud_instances_ById_infer","summary":"Execute Cloud instance infer","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"svc_infer","amount":"unpriced"},"description":"Execute Cloud instance infer. Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."}},"/api/v1/cloud/instances/{id}/workload/infer":{"post":{"operationId":"post_cloud_instances_ById_workload_infer","summary":"Execute Cloud instance workload infer","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"svc_workload_infer","amount":"unpriced"},"description":"Execute Cloud instance workload infer. Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."}},"/api/v1/cloud/instances/{id}/models":{"get":{"operationId":"get_cloud_instances_ById_models","summary":"Read Cloud instance models","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/cloud/instances/{id}/models/train":{"post":{"operationId":"post_cloud_instances_ById_models_train","summary":"Execute Cloud instance models train","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"svc_ml_train","amount":"unpriced"},"description":"Execute Cloud instance models train. Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."}},"/api/v1/cloud/instances/{id}/models/{modelId}/predict":{"post":{"operationId":"post_cloud_instances_ById_models_ByModelId_predict","summary":"Execute Cloud instance models (modelId) predict","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"modelId","in":"path","required":true,"schema":{"type":"string"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"svc_ml_predict","amount":"unpriced"},"description":"Execute Cloud instance models (modelId) predict. Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."}},"/api/v1/cloud/instances/{id}/models/{modelId}/deploy":{"post":{"operationId":"post_cloud_instances_ById_models_ByModelId_deploy","summary":"Execute Cloud instance models (modelId) deploy","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"modelId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Execute Cloud instance models (modelId) deploy. Requires an API key with a write grant."}},"/api/v1/cloud/instances/{id}/models/{modelId}":{"delete":{"operationId":"delete_cloud_instances_ById_models_ByModelId","summary":"Delete Cloud instance models (modelId)","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"modelId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Delete Cloud instance models (modelId). Requires an API key with a write grant."}},"/api/v1/cloud/instances/{id}/endpoints":{"get":{"operationId":"get_cloud_instances_ById_endpoints","summary":"Read Cloud instance endpoints","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]},"post":{"operationId":"post_cloud_instances_ById_endpoints","summary":"Execute Cloud instance endpoints","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Execute Cloud instance endpoints. Requires an API key with a write grant."}},"/api/v1/cloud/instances/{id}/endpoints/{endpointId}":{"delete":{"operationId":"delete_cloud_instances_ById_endpoints_ByEndpointId","summary":"Delete Cloud instance endpoints (endpointId)","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"endpointId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Delete Cloud instance endpoints (endpointId). Requires an API key with a write grant."}},"/api/v1/cloud/instances/{id}/endpoints/{endpointId}/calls":{"get":{"operationId":"get_cloud_instances_ById_endpoints_ByEndpointId_calls","summary":"Read Cloud instance endpoints (endpointId) calls","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"endpointId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/cloud/instances/{id}/endpoints/{endpointId}/invoke":{"post":{"operationId":"post_cloud_instances_ById_endpoints_ByEndpointId_invoke","summary":"Execute Cloud instance endpoints (endpointId) invoke","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"endpointId","in":"path","required":true,"schema":{"type":"string"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"svc_inference_invoke","amount":"unpriced"},"description":"Execute Cloud instance endpoints (endpointId) invoke. Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."}},"/api/v1/cloud/instances/{id}/endpoints/{endpointId}/rag":{"post":{"operationId":"post_cloud_instances_ById_endpoints_ByEndpointId_rag","summary":"Execute Cloud instance endpoints (endpointId) rag","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"endpointId","in":"path","required":true,"schema":{"type":"string"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"svc_rag","amount":"unpriced"},"description":"Execute Cloud instance endpoints (endpointId) rag. Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."}},"/api/v1/cloud/instances/{id}/google/status":{"get":{"operationId":"get_cloud_instances_ById_google_status","summary":"Read Cloud instance google status","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/cloud/instances/{id}/google/translation":{"post":{"operationId":"post_cloud_instances_ById_google_translation","summary":"Execute Cloud instance google translation","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"v1_google_engine","amount":"unpriced"},"description":"Execute Cloud instance google translation. Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."}},"/api/v1/cloud/instances/{id}/google/natural-language":{"post":{"operationId":"post_cloud_instances_ById_google_naturalLanguage","summary":"Execute Cloud instance google natural-language","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"v1_google_engine","amount":"unpriced"},"description":"Execute Cloud instance google natural-language. Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."}},"/api/v1/cloud/instances/{id}/google/vision":{"post":{"operationId":"post_cloud_instances_ById_google_vision","summary":"Execute Cloud instance google vision","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"v1_google_engine","amount":"unpriced"},"description":"Execute Cloud instance google vision. Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."}},"/api/v1/cloud/instances/{id}/google/text-to-speech":{"post":{"operationId":"post_cloud_instances_ById_google_textToSpeech","summary":"Execute Cloud instance google text-to-speech","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"v1_google_engine","amount":"unpriced"},"description":"Execute Cloud instance google text-to-speech. Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."}},"/api/v1/cloud/instances/{id}/google/speech-to-text":{"post":{"operationId":"post_cloud_instances_ById_google_speechToText","summary":"Execute Cloud instance google speech-to-text","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"v1_google_engine","amount":"unpriced"},"description":"Execute Cloud instance google speech-to-text. Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."}},"/api/v1/cloud/instances/{id}/google/web-risk":{"post":{"operationId":"post_cloud_instances_ById_google_webRisk","summary":"Execute Cloud instance google web-risk","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"v1_google_engine","amount":"unpriced"},"description":"Execute Cloud instance google web-risk. Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."}},"/api/v1/cloud/instances/{id}/google/gemini":{"post":{"operationId":"post_cloud_instances_ById_google_gemini","summary":"Execute Cloud instance google gemini","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"v1_google_engine","amount":"unpriced"},"description":"Execute Cloud instance google gemini. Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."}},"/api/v1/cloud/instances/{id}/bytes":{"get":{"operationId":"get_cloud_instances_ById_bytes","summary":"Read Cloud instance bytes","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/cloud/instances/{id}/buckets":{"get":{"operationId":"get_cloud_instances_ById_buckets","summary":"Read Cloud instance buckets","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]},"post":{"operationId":"post_cloud_instances_ById_buckets","summary":"Execute Cloud instance buckets","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Execute Cloud instance buckets. Requires an API key with a write grant."}},"/api/v1/cloud/instances/{id}/buckets/{bucketId}":{"put":{"operationId":"put_cloud_instances_ById_buckets_ByBucketId","summary":"Update Cloud instance buckets (bucketId)","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"bucketId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Update Cloud instance buckets (bucketId). Requires an API key with a write grant."},"delete":{"operationId":"delete_cloud_instances_ById_buckets_ByBucketId","summary":"Delete Cloud instance buckets (bucketId)","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"bucketId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Delete Cloud instance buckets (bucketId). Requires an API key with a write grant."}},"/api/v1/cloud/instances/{id}/objects":{"get":{"operationId":"get_cloud_instances_ById_objects","summary":"Read Cloud instance objects","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]},"post":{"operationId":"post_cloud_instances_ById_objects","summary":"Execute Cloud instance objects","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"svc_object_put","amount":"unpriced"},"description":"Execute Cloud instance objects. Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."},"delete":{"operationId":"delete_cloud_instances_ById_objects","summary":"Delete Cloud instance objects","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Delete Cloud instance objects. Requires an API key with a write grant."}},"/api/v1/cloud/instances/{id}/objects/content":{"get":{"operationId":"get_cloud_instances_ById_objects_content","summary":"Read Cloud instance objects content","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/cloud/instances/{id}/objects/lifecycle":{"post":{"operationId":"post_cloud_instances_ById_objects_lifecycle","summary":"Execute Cloud instance objects lifecycle","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"svc_object_lifecycle","amount":"unpriced"},"description":"Execute Cloud instance objects lifecycle. Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."}},"/api/v1/cloud/instances/{id}/objects/copy":{"post":{"operationId":"post_cloud_instances_ById_objects_copy","summary":"Execute Cloud instance objects copy","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"v1_bytes_spend","amount":"unpriced"},"description":"Execute Cloud instance objects copy. Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."}},"/api/v1/cloud/instances/{id}/objects/public":{"put":{"operationId":"put_cloud_instances_ById_objects_public","summary":"Update Cloud instance objects public","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Update Cloud instance objects public. Requires an API key with a write grant."}},"/api/v1/cloud/instances/{id}/objects/undelete":{"post":{"operationId":"post_cloud_instances_ById_objects_undelete","summary":"Execute Cloud instance objects undelete","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Execute Cloud instance objects undelete. Requires an API key with a write grant."}},"/api/v1/cloud/instances/{id}/uploads":{"get":{"operationId":"get_cloud_instances_ById_uploads","summary":"Read Cloud instance uploads","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]},"post":{"operationId":"post_cloud_instances_ById_uploads","summary":"Execute Cloud instance uploads","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Execute Cloud instance uploads. Requires an API key with a write grant."}},"/api/v1/cloud/instances/{id}/uploads/{uploadId}/complete":{"post":{"operationId":"post_cloud_instances_ById_uploads_ByUploadId_complete","summary":"Execute Cloud instance uploads (uploadId) complete","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"uploadId","in":"path","required":true,"schema":{"type":"string"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"v1_bytes_spend","amount":"unpriced"},"description":"Execute Cloud instance uploads (uploadId) complete. Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."}},"/api/v1/cloud/instances/{id}/uploads/{uploadId}":{"delete":{"operationId":"delete_cloud_instances_ById_uploads_ByUploadId","summary":"Delete Cloud instance uploads (uploadId)","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"uploadId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Delete Cloud instance uploads (uploadId). Requires an API key with a write grant."}},"/api/v1/cloud/instances/{id}/delivery":{"get":{"operationId":"get_cloud_instances_ById_delivery","summary":"Read Cloud instance delivery","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]},"post":{"operationId":"post_cloud_instances_ById_delivery","summary":"Execute Cloud instance delivery","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Execute Cloud instance delivery. Requires an API key with a write grant."}},"/api/v1/cloud/instances/{id}/delivery/{grantId}":{"delete":{"operationId":"delete_cloud_instances_ById_delivery_ByGrantId","summary":"Delete Cloud instance delivery (grantId)","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"grantId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Delete Cloud instance delivery (grantId). Requires an API key with a write grant."}},"/api/v1/cloud/instances/{id}/transfers":{"get":{"operationId":"get_cloud_instances_ById_transfers","summary":"Read Cloud instance transfers","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]},"post":{"operationId":"post_cloud_instances_ById_transfers","summary":"Execute Cloud instance transfers","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"v1_bytes_spend","amount":"unpriced"},"description":"Execute Cloud instance transfers. Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."}},"/api/v1/cloud/instances/{id}/backups":{"post":{"operationId":"post_cloud_instances_ById_backups","summary":"Execute Cloud instance backups","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"v1_bytes_spend","amount":"unpriced"},"description":"Execute Cloud instance backups. Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."}},"/api/v1/cloud/instances/{id}/backups/restore":{"post":{"operationId":"post_cloud_instances_ById_backups_restore","summary":"Execute Cloud instance backups restore","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"v1_bytes_spend","amount":"unpriced"},"description":"Execute Cloud instance backups restore. Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."}},"/api/v1/cloud/instances/{id}/compute":{"get":{"operationId":"get_cloud_instances_ById_compute","summary":"Read Cloud instance compute","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/cloud/instances/{id}/functions":{"get":{"operationId":"get_cloud_instances_ById_functions","summary":"Read Cloud instance functions","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]},"post":{"operationId":"post_cloud_instances_ById_functions","summary":"Execute Cloud instance functions","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Execute Cloud instance functions. Requires an API key with a write grant."}},"/api/v1/cloud/instances/{id}/functions/{functionId}":{"get":{"operationId":"get_cloud_instances_ById_functions_ByFunctionId","summary":"Read Cloud instance functions (functionId)","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"functionId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]},"patch":{"operationId":"patch_cloud_instances_ById_functions_ByFunctionId","summary":"Modify Cloud instance functions (functionId)","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"functionId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Modify Cloud instance functions (functionId). Requires an API key with a write grant."},"delete":{"operationId":"delete_cloud_instances_ById_functions_ByFunctionId","summary":"Delete Cloud instance functions (functionId)","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"functionId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Delete Cloud instance functions (functionId). Requires an API key with a write grant."}},"/api/v1/cloud/instances/{id}/functions/{functionId}/invoke":{"post":{"operationId":"post_cloud_instances_ById_functions_ByFunctionId_invoke","summary":"Execute Cloud instance functions (functionId) invoke","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"functionId","in":"path","required":true,"schema":{"type":"string"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"v1_compute_spend","amount":"unpriced"},"description":"Execute Cloud instance functions (functionId) invoke. Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."}},"/api/v1/cloud/instances/{id}/invocations":{"get":{"operationId":"get_cloud_instances_ById_invocations","summary":"Read Cloud instance invocations","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/cloud/instances/{id}/invocations/{invocationId}":{"get":{"operationId":"get_cloud_instances_ById_invocations_ByInvocationId","summary":"Read Cloud instance invocations (invocationId)","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"invocationId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/cloud/instances/{id}/batches":{"get":{"operationId":"get_cloud_instances_ById_batches","summary":"Read Cloud instance batches","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]},"post":{"operationId":"post_cloud_instances_ById_batches","summary":"Execute Cloud instance batches","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"v1_compute_spend","amount":"unpriced"},"description":"Execute Cloud instance batches. Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."}},"/api/v1/cloud/instances/{id}/kv":{"get":{"operationId":"get_cloud_instances_ById_kv","summary":"Read Cloud instance kv","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]},"put":{"operationId":"put_cloud_instances_ById_kv","summary":"Update Cloud instance kv","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"svc_kv_set","amount":"unpriced"},"description":"Update Cloud instance kv. Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."},"delete":{"operationId":"delete_cloud_instances_ById_kv","summary":"Delete Cloud instance kv","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Delete Cloud instance kv. Requires an API key with a write grant."}},"/api/v1/cloud/instances/{id}/kv/entry":{"get":{"operationId":"get_cloud_instances_ById_kv_entry","summary":"Read Cloud instance kv entry","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/cloud/instances/{id}/queues":{"get":{"operationId":"get_cloud_instances_ById_queues","summary":"Read Cloud instance queues","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]},"post":{"operationId":"post_cloud_instances_ById_queues","summary":"Execute Cloud instance queues","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Execute Cloud instance queues. Requires an API key with a write grant."}},"/api/v1/cloud/instances/{id}/queues/{queueName}/publish":{"post":{"operationId":"post_cloud_instances_ById_queues_ByQueueName_publish","summary":"Execute Cloud instance queues (queueName) publish","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"queueName","in":"path","required":true,"schema":{"type":"string"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"svc_queue_publish","amount":"unpriced"},"description":"Execute Cloud instance queues (queueName) publish. Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."}},"/api/v1/cloud/instances/{id}/queues/{queueName}/consume":{"post":{"operationId":"post_cloud_instances_ById_queues_ByQueueName_consume","summary":"Execute Cloud instance queues (queueName) consume","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"queueName","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Execute Cloud instance queues (queueName) consume. Requires an API key with a write grant."}},"/api/v1/cloud/instances/{id}/queues/{queueName}/ack":{"post":{"operationId":"post_cloud_instances_ById_queues_ByQueueName_ack","summary":"Execute Cloud instance queues (queueName) ack","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"queueName","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Execute Cloud instance queues (queueName) ack. Requires an API key with a write grant."}},"/api/v1/cloud/instances/{id}/schedules":{"get":{"operationId":"get_cloud_instances_ById_schedules","summary":"Read Cloud instance schedules","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]},"post":{"operationId":"post_cloud_instances_ById_schedules","summary":"Execute Cloud instance schedules","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Execute Cloud instance schedules. Requires an API key with a write grant."}},"/api/v1/cloud/instances/{id}/schedules/{scheduleId}":{"delete":{"operationId":"delete_cloud_instances_ById_schedules_ByScheduleId","summary":"Delete Cloud instance schedules (scheduleId)","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"scheduleId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Delete Cloud instance schedules (scheduleId). Requires an API key with a write grant."}},"/api/v1/cloud/instances/{id}/webhooks":{"get":{"operationId":"get_cloud_instances_ById_webhooks","summary":"Read Cloud instance webhooks","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]},"post":{"operationId":"post_cloud_instances_ById_webhooks","summary":"Execute Cloud instance webhooks","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Execute Cloud instance webhooks. Requires an API key with a write grant."}},"/api/v1/cloud/instances/{id}/webhooks/{webhookId}/dispatch":{"post":{"operationId":"post_cloud_instances_ById_webhooks_ByWebhookId_dispatch","summary":"Execute Cloud instance webhooks (webhookId) dispatch","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"webhookId","in":"path","required":true,"schema":{"type":"string"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"svc_webhook_dispatch","amount":"unpriced"},"description":"Execute Cloud instance webhooks (webhookId) dispatch. Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."}},"/api/v1/cloud/instances/{id}/registry":{"get":{"operationId":"get_cloud_instances_ById_registry","summary":"Read Cloud instance registry","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/cloud/instances/{id}/documents":{"get":{"operationId":"get_cloud_instances_ById_documents","summary":"Read Cloud instance documents","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]},"put":{"operationId":"put_cloud_instances_ById_documents","summary":"Update Cloud instance documents","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"svc_doc_put","amount":"unpriced"},"description":"Update Cloud instance documents. Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."}},"/api/v1/cloud/instances/{id}/documents/{docId}":{"delete":{"operationId":"delete_cloud_instances_ById_documents_ByDocId","summary":"Delete Cloud instance documents (docId)","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"docId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Delete Cloud instance documents (docId). Requires an API key with a write grant."}},"/api/v1/cloud/instances/{id}/query-lake/query":{"post":{"operationId":"post_cloud_instances_ById_queryLake_query","summary":"Execute Cloud instance query-lake query","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"svc_query_lake","amount":"unpriced"},"description":"Execute Cloud instance query-lake query. Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."}},"/api/v1/cloud/instances/{id}/budget":{"get":{"operationId":"get_cloud_instances_ById_budget","summary":"Read Cloud instance budget","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]},"put":{"operationId":"put_cloud_instances_ById_budget","summary":"Update Cloud instance budget","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Update Cloud instance budget. Requires an API key with a write grant."}},"/api/v1/cloud/instances/{id}/events":{"get":{"operationId":"get_cloud_instances_ById_events","summary":"Read Cloud instance events","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/cloud/instances/{id}/metrics":{"get":{"operationId":"get_cloud_instances_ById_metrics","summary":"Read Cloud instance metrics","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/cloud/instances/{id}/sla":{"get":{"operationId":"get_cloud_instances_ById_sla","summary":"Read Cloud instance sla","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/cloud/instances/{id}/cell":{"get":{"operationId":"get_cloud_instances_ById_cell","summary":"Read Cloud instance cell","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/cloud/instances/{id}/cell/anchor":{"post":{"operationId":"post_cloud_instances_ById_cell_anchor","summary":"Execute Cloud instance cell anchor","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Execute Cloud instance cell anchor. Requires an API key with a write grant."}},"/api/v1/cloud/cells/{id}":{"get":{"operationId":"get_cloud_cells_ById","summary":"Read cloud cells (id)","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[]}},"/api/v1/cloud/cells/{id}/manifest":{"get":{"operationId":"get_cloud_cells_ById_manifest","summary":"Read cloud cells (id) manifest","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[]}},"/api/v1/cloud/instances/{id}/network":{"get":{"operationId":"get_cloud_instances_ById_network","summary":"Read Cloud instance network","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/cloud/instances/{id}/network/policy":{"get":{"operationId":"get_cloud_instances_ById_network_policy","summary":"Read Cloud instance network policy","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]},"put":{"operationId":"put_cloud_instances_ById_network_policy","summary":"Update Cloud instance network policy","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Update Cloud instance network policy. Requires an API key with a write grant."}},"/api/v1/cloud/instances/{id}/network/pools":{"get":{"operationId":"get_cloud_instances_ById_network_pools","summary":"Read Cloud instance network pools","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/cloud/instances/{id}/network/routes":{"get":{"operationId":"get_cloud_instances_ById_network_routes","summary":"Read Cloud instance network routes","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/cloud/instances/{id}/capability":{"get":{"operationId":"get_cloud_instances_ById_capability","summary":"Read Cloud instance capability","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/cloud/instances/{id}/capability/resources":{"get":{"operationId":"get_cloud_instances_ById_capability_resources","summary":"Read Cloud instance capability resources","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]},"post":{"operationId":"post_cloud_instances_ById_capability_resources","summary":"Execute Cloud instance capability resources","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"svc_capability_resource","amount":"unpriced"},"description":"Execute Cloud instance capability resources. Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."}},"/api/v1/cloud/instances/{id}/capability/ops/{op}":{"post":{"operationId":"post_cloud_instances_ById_capability_ops_ByOp","summary":"Execute Cloud instance capability ops (op)","tags":["CNXTCLOUD 10 execution planes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"op","in":"path","required":true,"schema":{"type":"string"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"svc_capability_op","amount":"unpriced"},"description":"Execute Cloud instance capability ops (op). Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."}},"/api/v1/workflows/catalog":{"get":{"operationId":"get_workflows_catalog","summary":"Read Workflow catalog","tags":["Workflow products & automations"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[]}},"/api/v1/workflows/catalog/{productId}":{"get":{"operationId":"get_workflows_catalog_ByProductId","summary":"Read Workflow catalog (productId)","tags":["Workflow products & automations"],"parameters":[{"name":"productId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[]}},"/api/v1/workflows/context/cloud":{"get":{"operationId":"get_workflows_context_cloud","summary":"Read Workflow context cloud","tags":["Workflow products & automations"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/workflows/context/wallet":{"get":{"operationId":"get_workflows_context_wallet","summary":"Read Workflow context wallet","tags":["Workflow products & automations"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/workflows/context/editions/{appId}":{"get":{"operationId":"get_workflows_context_editions_ByAppId","summary":"Read Workflow context editions (appId)","tags":["Workflow products & automations"],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/cloud/instances/{id}/workflows/input-preview":{"post":{"operationId":"post_cloud_instances_ById_workflows_inputPreview","summary":"Execute Cloud instance workflows input-preview","tags":["Workflow products & automations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/workflows/templates/validate":{"post":{"operationId":"post_workflows_templates_validate","summary":"Execute Workflow templates validate","tags":["Workflow products & automations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/cloud/instances/{id}/automations":{"get":{"operationId":"get_cloud_instances_ById_automations","summary":"Read Cloud instance automations","tags":["Workflow products & automations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]},"post":{"operationId":"post_cloud_instances_ById_automations","summary":"Execute Cloud instance automations","tags":["Workflow products & automations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Execute Cloud instance automations. Requires an API key with a write grant."}},"/api/v1/cloud/instances/{id}/automations/{automationId}":{"get":{"operationId":"get_cloud_instances_ById_automations_ByAutomationId","summary":"Read Cloud instance automations (automationId)","tags":["Workflow products & automations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"automationId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]},"patch":{"operationId":"patch_cloud_instances_ById_automations_ByAutomationId","summary":"Modify Cloud instance automations (automationId)","tags":["Workflow products & automations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"automationId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Modify Cloud instance automations (automationId). Requires an API key with a write grant."},"delete":{"operationId":"delete_cloud_instances_ById_automations_ByAutomationId","summary":"Delete Cloud instance automations (automationId)","tags":["Workflow products & automations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"automationId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Delete Cloud instance automations (automationId). Requires an API key with a write grant."}},"/api/v1/cloud/instances/{id}/workflows":{"get":{"operationId":"get_cloud_instances_ById_workflows","summary":"Read Cloud instance workflows","tags":["Workflow products & automations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]},"post":{"operationId":"post_cloud_instances_ById_workflows","summary":"Execute Cloud instance workflows","tags":["Workflow products & automations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Execute Cloud instance workflows. Requires an API key with a write grant."}},"/api/v1/cloud/instances/{id}/workflows/{workflowId}":{"patch":{"operationId":"patch_cloud_instances_ById_workflows_ByWorkflowId","summary":"Modify Cloud instance workflows (workflowId)","tags":["Workflow products & automations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"workflowId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Modify Cloud instance workflows (workflowId). Requires an API key with a write grant."},"delete":{"operationId":"delete_cloud_instances_ById_workflows_ByWorkflowId","summary":"Delete Cloud instance workflows (workflowId)","tags":["Workflow products & automations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"workflowId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Delete Cloud instance workflows (workflowId). Requires an API key with a write grant."}},"/api/v1/cloud/instances/{id}/workflows/{workflowId}/runs":{"post":{"operationId":"post_cloud_instances_ById_workflows_ByWorkflowId_runs","summary":"Execute Cloud instance workflows (workflowId) runs","tags":["Workflow products & automations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"workflowId","in":"path","required":true,"schema":{"type":"string"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"v1_workflow_run","amount":"unpriced"},"description":"Execute Cloud instance workflows (workflowId) runs. Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."},"get":{"operationId":"get_cloud_instances_ById_workflows_ByWorkflowId_runs","summary":"Read Cloud instance workflows (workflowId) runs","tags":["Workflow products & automations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"workflowId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/cloud/instances/{id}/workflow-runs/{runId}":{"get":{"operationId":"get_cloud_instances_ById_workflowRuns_ByRunId","summary":"Read Cloud instance workflow-runs (runId)","tags":["Workflow products & automations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"runId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/cloud/instances/{id}/reports":{"get":{"operationId":"get_cloud_instances_ById_reports","summary":"Read Cloud instance reports","tags":["Workflow products & automations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]},"post":{"operationId":"post_cloud_instances_ById_reports","summary":"Execute Cloud instance reports","tags":["Workflow products & automations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Execute Cloud instance reports. Requires an API key with a write grant."}},"/api/v1/cloud/instances/{id}/reports/{reportId}":{"get":{"operationId":"get_cloud_instances_ById_reports_ByReportId","summary":"Read Cloud instance reports (reportId)","tags":["Workflow products & automations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"reportId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]},"patch":{"operationId":"patch_cloud_instances_ById_reports_ByReportId","summary":"Modify Cloud instance reports (reportId)","tags":["Workflow products & automations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"reportId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Modify Cloud instance reports (reportId). Requires an API key with a write grant."},"delete":{"operationId":"delete_cloud_instances_ById_reports_ByReportId","summary":"Delete Cloud instance reports (reportId)","tags":["Workflow products & automations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"reportId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Delete Cloud instance reports (reportId). Requires an API key with a write grant."}},"/api/v1/cloud/instances/{id}/bindings":{"get":{"operationId":"get_cloud_instances_ById_bindings","summary":"Read Cloud instance bindings","tags":["Workflow products & automations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]},"post":{"operationId":"post_cloud_instances_ById_bindings","summary":"Execute Cloud instance bindings","tags":["Workflow products & automations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"v1_workflow_run","amount":"unpriced"},"description":"Execute Cloud instance bindings. Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."}},"/api/v1/cloud/instances/{id}/bindings/{bindingId}":{"patch":{"operationId":"patch_cloud_instances_ById_bindings_ByBindingId","summary":"Modify Cloud instance bindings (bindingId)","tags":["Workflow products & automations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"bindingId","in":"path","required":true,"schema":{"type":"string"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"v1_workflow_run","amount":"unpriced"},"description":"Modify Cloud instance bindings (bindingId). Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."},"delete":{"operationId":"delete_cloud_instances_ById_bindings_ByBindingId","summary":"Delete Cloud instance bindings (bindingId)","tags":["Workflow products & automations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"bindingId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Delete Cloud instance bindings (bindingId). Requires an API key with a write grant."}},"/api/v1/cloud/instances/{id}/compute/usage":{"get":{"operationId":"get_cloud_instances_ById_compute_usage","summary":"Read Cloud instance compute usage","tags":["Workflow products & automations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/cloud/instances/{id}/compute/usage/blocks":{"post":{"operationId":"post_cloud_instances_ById_compute_usage_blocks","summary":"Execute Cloud instance compute usage blocks","tags":["Workflow products & automations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"v1_compute_spend","amount":"unpriced"},"description":"Execute Cloud instance compute usage blocks. Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."}},"/api/v1/workflows/templates/csv-import":{"post":{"operationId":"post_workflows_templates_csvImport","summary":"Execute Workflow templates csv-import","tags":["Workflow products & automations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Execute Workflow templates csv-import. Requires an API key with a write grant."}},"/api/v1/workflows/templates/csv-export":{"post":{"operationId":"post_workflows_templates_csvExport","summary":"Execute Workflow templates csv-export","tags":["Workflow products & automations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Execute Workflow templates csv-export. Requires an API key with a write grant."}},"/api/v1/workflows/templates/data-quality":{"post":{"operationId":"post_workflows_templates_dataQuality","summary":"Execute Workflow templates data-quality","tags":["Workflow products & automations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Execute Workflow templates data-quality. Requires an API key with a write grant."}},"/api/v1/workflows/templates/snapshot-diff":{"post":{"operationId":"post_workflows_templates_snapshotDiff","summary":"Execute Workflow templates snapshot-diff","tags":["Workflow products & automations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Execute Workflow templates snapshot-diff. Requires an API key with a write grant."}},"/api/v1/workflows/templates/sales-summary":{"post":{"operationId":"post_workflows_templates_salesSummary","summary":"Execute Workflow templates sales-summary","tags":["Workflow products & automations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Execute Workflow templates sales-summary. Requires an API key with a write grant."}},"/api/v1/workflows/templates/settlement-matcher":{"post":{"operationId":"post_workflows_templates_settlementMatcher","summary":"Execute Workflow templates settlement-matcher","tags":["Workflow products & automations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Execute Workflow templates settlement-matcher. Requires an API key with a write grant."}},"/api/v1/editions/{slug}/six-linx":{"get":{"operationId":"get_editions_BySlug_sixLinx","summary":"Resolve all 6 sovereign LiNx (web+usd://, #://, $://, @://, storefront, 3-tag triplet) for an edition","tags":["Editions, 6 LiNx, THeXTeNSioN & MPP"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[]}},"/api/v1/editions/{slug}/tag-word":{"get":{"operationId":"get_editions_BySlug_tagWord","summary":"Read Edition tag-word","tags":["Editions, 6 LiNx, THeXTeNSioN & MPP"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[]}},"/api/v1/editions/{slug}/anchor":{"get":{"operationId":"get_editions_BySlug_anchor","summary":"Read Edition anchor","tags":["Editions, 6 LiNx, THeXTeNSioN & MPP"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[]}},"/api/v1/editions/{slug}/anchor/manifest":{"get":{"operationId":"get_editions_BySlug_anchor_manifest","summary":"Read Edition anchor manifest","tags":["Editions, 6 LiNx, THeXTeNSioN & MPP"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[]}},"/api/v1/editions/{slug}/anchor/reverify":{"post":{"operationId":"post_editions_BySlug_anchor_reverify","summary":"Execute Edition anchor reverify","tags":["Editions, 6 LiNx, THeXTeNSioN & MPP"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Execute Edition anchor reverify. Requires an API key with a write grant."}},"/api/v1/editions/{slug}/fabric":{"get":{"operationId":"get_editions_BySlug_fabric","summary":"Read Edition fabric","tags":["Editions, 6 LiNx, THeXTeNSioN & MPP"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[]}},"/api/v1/anchors/{kind}/{refId}":{"get":{"operationId":"get_anchors_ByKind_ByRefId","summary":"Read anchors (kind) (refId)","tags":["Editions, 6 LiNx, THeXTeNSioN & MPP"],"parameters":[{"name":"kind","in":"path","required":true,"schema":{"type":"string"}},{"name":"refId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[]}},"/api/v1/anchors/{kind}/{refId}/manifest":{"get":{"operationId":"get_anchors_ByKind_ByRefId_manifest","summary":"Read anchors (kind) (refId) manifest","tags":["Editions, 6 LiNx, THeXTeNSioN & MPP"],"parameters":[{"name":"kind","in":"path","required":true,"schema":{"type":"string"}},{"name":"refId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[]}},"/api/v1/xtension/feed":{"get":{"operationId":"get_xtension_feed","summary":"Read $: THeXTeNSioN feed","tags":["Editions, 6 LiNx, THeXTeNSioN & MPP"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[]}},"/api/v1/xtension/cnxtd-tags":{"get":{"operationId":"get_xtension_cnxtdTags","summary":"Read $: THeXTeNSioN cnxtd-tags","tags":["Editions, 6 LiNx, THeXTeNSioN & MPP"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[]}},"/api/v1/xtension/words/{word}/edition":{"get":{"operationId":"get_xtension_words_ByWord_edition","summary":"Read $: THeXTeNSioN words (word) edition","tags":["Editions, 6 LiNx, THeXTeNSioN & MPP"],"parameters":[{"name":"word","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[]}},"/api/v1/xtension/editions/{appId}":{"get":{"operationId":"get_xtension_editions_ByAppId","summary":"Read $: THeXTeNSioN editions (appId)","tags":["Editions, 6 LiNx, THeXTeNSioN & MPP"],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[]}},"/api/v1/xtension/tags/{sigil}/{token}/prospect":{"get":{"operationId":"get_xtension_tags_BySigil_ByToken_prospect","summary":"Read $: THeXTeNSioN tags (sigil) (token) prospect","tags":["Editions, 6 LiNx, THeXTeNSioN & MPP"],"parameters":[{"name":"sigil","in":"path","required":true,"schema":{"type":"string"}},{"name":"token","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[]}},"/api/v1/xtension/tags/{sigil}/{token}/editions":{"get":{"operationId":"get_xtension_tags_BySigil_ByToken_editions","summary":"Read $: THeXTeNSioN tags (sigil) (token) editions","tags":["Editions, 6 LiNx, THeXTeNSioN & MPP"],"parameters":[{"name":"sigil","in":"path","required":true,"schema":{"type":"string"}},{"name":"token","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[]}},"/api/v1/xtension/tags/{sigil}/{token}/options":{"get":{"operationId":"get_xtension_tags_BySigil_ByToken_options","summary":"Read $: THeXTeNSioN tags (sigil) (token) options","tags":["Editions, 6 LiNx, THeXTeNSioN & MPP"],"parameters":[{"name":"sigil","in":"path","required":true,"schema":{"type":"string"}},{"name":"token","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/apps/{appId}/xtension":{"get":{"operationId":"get_apps_ByAppId_xtension","summary":"Read Edition xtension","tags":["Editions, 6 LiNx, THeXTeNSioN & MPP"],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/apps/{appId}/xtension/check":{"post":{"operationId":"post_apps_ByAppId_xtension_check","summary":"Execute Edition xtension check","tags":["Editions, 6 LiNx, THeXTeNSioN & MPP"],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/apps/{appId}/xtension/fund":{"post":{"operationId":"post_apps_ByAppId_xtension_fund","summary":"Execute Edition xtension fund","tags":["Editions, 6 LiNx, THeXTeNSioN & MPP"],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Approval required: this key's payments need the account owner's OK. Nothing moved. Answered when the key's \"Payments need my OK\" setting is on: code approval_required, nothing_moved: true, and a payment_approval (id, summary, amount, destination, expiresAt). Also the other permission refusals.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"v1_xtension_fund","amount":"priced"},"description":"Execute Edition xtension fund. Requires an API key with a write grant. Moves money: while the key's \"Payments need my OK\" setting is on, it answers 403 approval_required and nothing moves until the account owner approves it in the signed-in console."}},"/api/v1/apps/{appId}/xtension/topup":{"post":{"operationId":"post_apps_ByAppId_xtension_topup","summary":"Execute Edition xtension topup","tags":["Editions, 6 LiNx, THeXTeNSioN & MPP"],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Approval required: this key's payments need the account owner's OK. Nothing moved. Answered when the key's \"Payments need my OK\" setting is on: code approval_required, nothing_moved: true, and a payment_approval (id, summary, amount, destination, expiresAt). Also the other permission refusals.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"v1_xtension_topup","amount":"priced"},"description":"Execute Edition xtension topup. Requires an API key with a write grant. Moves money: while the key's \"Payments need my OK\" setting is on, it answers 403 approval_required and nothing moves until the account owner approves it in the signed-in console."}},"/api/v1/apps/{appId}/xtension/tags":{"put":{"operationId":"put_apps_ByAppId_xtension_tags","summary":"Update Edition xtension tags","tags":["Editions, 6 LiNx, THeXTeNSioN & MPP"],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Update Edition xtension tags. Requires an API key with a write grant."}},"/api/v1/apps/{appId}/xtension/tags/add":{"post":{"operationId":"post_apps_ByAppId_xtension_tags_add","summary":"Execute Edition xtension tags add","tags":["Editions, 6 LiNx, THeXTeNSioN & MPP"],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Execute Edition xtension tags add. Requires an API key with a write grant."}},"/api/v1/apps/{appId}/xtension/release":{"post":{"operationId":"post_apps_ByAppId_xtension_release","summary":"Execute Edition xtension release","tags":["Editions, 6 LiNx, THeXTeNSioN & MPP"],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Execute Edition xtension release. Requires an API key with a write grant."}},"/api/v1/apps/payable":{"get":{"operationId":"get_apps_payable","summary":"Read apps payable","tags":["Editions, 6 LiNx, THeXTeNSioN & MPP"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[]}},"/api/v1/apps/acquisitions/{acquisitionId}/endpoints":{"get":{"operationId":"get_apps_acquisitions_ByAcquisitionId_endpoints","summary":"Read Owned edition acquisition endpoints","tags":["Editions, 6 LiNx, THeXTeNSioN & MPP"],"parameters":[{"name":"acquisitionId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/apps/acquisitions/{acquisitionId}/endpoints/{kind}":{"put":{"operationId":"put_apps_acquisitions_ByAcquisitionId_endpoints_ByKind","summary":"Update Owned edition acquisition endpoints (kind)","tags":["Editions, 6 LiNx, THeXTeNSioN & MPP"],"parameters":[{"name":"acquisitionId","in":"path","required":true,"schema":{"type":"string"}},{"name":"kind","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Update Owned edition acquisition endpoints (kind). Requires an API key with a write grant."}},"/api/v1/apps/acquisitions/{acquisitionId}/runtime":{"get":{"operationId":"get_apps_acquisitions_ByAcquisitionId_runtime","summary":"Read Owned edition acquisition runtime","tags":["Editions, 6 LiNx, THeXTeNSioN & MPP"],"parameters":[{"name":"acquisitionId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/apps/acquisitions/{acquisitionId}/runtime/provision":{"post":{"operationId":"post_apps_acquisitions_ByAcquisitionId_runtime_provision","summary":"Execute Owned edition acquisition runtime provision","tags":["Editions, 6 LiNx, THeXTeNSioN & MPP"],"parameters":[{"name":"acquisitionId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Execute Owned edition acquisition runtime provision. Requires an API key with a write grant."}},"/api/v1/apps/{appId}/payable":{"get":{"operationId":"get_apps_ByAppId_payable","summary":"Read Edition payable","tags":["Editions, 6 LiNx, THeXTeNSioN & MPP"],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[]}},"/api/v1/apps/{appId}/wallet":{"get":{"operationId":"get_apps_ByAppId_wallet","summary":"Read Edition wallet","tags":["Editions, 6 LiNx, THeXTeNSioN & MPP"],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/apps/{appId}/wallet/transactions":{"get":{"operationId":"get_apps_ByAppId_wallet_transactions","summary":"Read Edition wallet transactions","tags":["Editions, 6 LiNx, THeXTeNSioN & MPP"],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/apps/{appId}/calls":{"get":{"operationId":"get_apps_ByAppId_calls","summary":"Read Edition calls","tags":["Editions, 6 LiNx, THeXTeNSioN & MPP"],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/apps/{appId}/cloud-bindings":{"get":{"operationId":"get_apps_ByAppId_cloudBindings","summary":"Read Edition cloud-bindings","tags":["Editions, 6 LiNx, THeXTeNSioN & MPP"],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]},"post":{"operationId":"post_apps_ByAppId_cloudBindings","summary":"Execute Edition cloud-bindings","tags":["Editions, 6 LiNx, THeXTeNSioN & MPP"],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Execute Edition cloud-bindings. Requires an API key with a write grant."}},"/api/v1/apps/{appId}/cloud-bindings/{bindingId}":{"delete":{"operationId":"delete_apps_ByAppId_cloudBindings_ByBindingId","summary":"Delete Edition cloud-bindings (bindingId)","tags":["Editions, 6 LiNx, THeXTeNSioN & MPP"],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}},{"name":"bindingId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Delete Edition cloud-bindings (bindingId). Requires an API key with a write grant."}},"/api/v1/apps/{appId}/x/answer":{"post":{"operationId":"post_apps_ByAppId_x_answer","summary":"Execute Invoke paid MPP answer verb on edition","tags":["Editions, 6 LiNx, THeXTeNSioN & MPP"],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"app-endpoint","amount":"unpriced"},"description":"Execute Invoke paid MPP answer verb on edition. Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."}},"/api/v1/apps/{appId}/x/data":{"post":{"operationId":"post_apps_ByAppId_x_data","summary":"Execute Invoke paid MPP data verb on edition","tags":["Editions, 6 LiNx, THeXTeNSioN & MPP"],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"app-endpoint","amount":"unpriced"},"description":"Execute Invoke paid MPP data verb on edition. Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."}},"/api/v1/apps/{appId}/x/action":{"post":{"operationId":"post_apps_ByAppId_x_action","summary":"Execute Invoke paid MPP action verb on edition","tags":["Editions, 6 LiNx, THeXTeNSioN & MPP"],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"app-endpoint","amount":"unpriced"},"description":"Execute Invoke paid MPP action verb on edition. Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."}},"/api/v1/apps/{appId}/x/readx":{"post":{"operationId":"post_apps_ByAppId_x_readx","summary":"Execute Invoke paid MPP readx verb on edition","tags":["Editions, 6 LiNx, THeXTeNSioN & MPP"],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"app-endpoint","amount":"unpriced"},"description":"Execute Invoke paid MPP readx verb on edition. Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."}},"/api/v1/apps/{appId}/x/getx":{"post":{"operationId":"post_apps_ByAppId_x_getx","summary":"Execute Invoke paid MPP getx verb on edition","tags":["Editions, 6 LiNx, THeXTeNSioN & MPP"],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"app-endpoint","amount":"unpriced"},"description":"Execute Invoke paid MPP getx verb on edition. Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."}},"/api/v1/apps/{appId}/x/writex":{"post":{"operationId":"post_apps_ByAppId_x_writex","summary":"Execute Invoke paid MPP writex verb on edition","tags":["Editions, 6 LiNx, THeXTeNSioN & MPP"],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"app-endpoint","amount":"unpriced"},"description":"Execute Invoke paid MPP writex verb on edition. Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."}},"/api/v1/apps/{appId}/x/buyx":{"post":{"operationId":"post_apps_ByAppId_x_buyx","summary":"Execute Invoke paid MPP buyx verb on edition","tags":["Editions, 6 LiNx, THeXTeNSioN & MPP"],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"app-endpoint","amount":"unpriced"},"description":"Execute Invoke paid MPP buyx verb on edition. Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."}},"/api/v1/apps/{appId}/x/sellx":{"post":{"operationId":"post_apps_ByAppId_x_sellx","summary":"Execute Invoke paid MPP sellx verb on edition","tags":["Editions, 6 LiNx, THeXTeNSioN & MPP"],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"app-endpoint","amount":"unpriced"},"description":"Execute Invoke paid MPP sellx verb on edition. Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."}},"/api/v1/apps/{appId}/x/debitx":{"post":{"operationId":"post_apps_ByAppId_x_debitx","summary":"Execute Invoke paid MPP debitx verb on edition","tags":["Editions, 6 LiNx, THeXTeNSioN & MPP"],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"app-endpoint","amount":"unpriced"},"description":"Execute Invoke paid MPP debitx verb on edition. Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."}},"/api/v1/apps/{appId}/x/creditx":{"post":{"operationId":"post_apps_ByAppId_x_creditx","summary":"Execute Invoke paid MPP creditx verb on edition","tags":["Editions, 6 LiNx, THeXTeNSioN & MPP"],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"app-endpoint","amount":"unpriced"},"description":"Execute Invoke paid MPP creditx verb on edition. Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."}},"/api/v1/apps/{appId}/x/givex":{"post":{"operationId":"post_apps_ByAppId_x_givex","summary":"Execute Invoke paid MPP givex verb on edition","tags":["Editions, 6 LiNx, THeXTeNSioN & MPP"],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"app-endpoint","amount":"unpriced"},"description":"Execute Invoke paid MPP givex verb on edition. Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."}},"/api/v1/propertyx/listings":{"get":{"operationId":"get_propertyx_listings","summary":"Search $://THePRoPeRTyDesK (#://PRoPeRTYx) real-asset 1-of-1 listings by geo-bounding-box, vertical, price, rooms, sqft, and cap-rate","tags":["Editions, 6 LiNx, THeXTeNSioN & MPP"],"parameters":[{"name":"vertical","in":"query","required":false,"description":"Vertical filter: homex, building, ridex, or all.","schema":{"type":"string"}},{"name":"q","in":"query","required":false,"description":"Free-text search across address, city, state, zip, county, VIN, or slug.","schema":{"type":"string"}},{"name":"neLat","in":"query","required":false,"description":"Northeast bounding-box latitude.","schema":{"type":"number"}},{"name":"neLng","in":"query","required":false,"description":"Northeast bounding-box longitude.","schema":{"type":"number"}},{"name":"swLat","in":"query","required":false,"description":"Southwest bounding-box latitude.","schema":{"type":"number"}},{"name":"swLng","in":"query","required":false,"description":"Southwest bounding-box longitude.","schema":{"type":"number"}},{"name":"minPrice","in":"query","required":false,"description":"Minimum price in USD.","schema":{"type":"number"}},{"name":"maxPrice","in":"query","required":false,"description":"Maximum price in USD.","schema":{"type":"number"}},{"name":"beds","in":"query","required":false,"description":"Minimum bedrooms.","schema":{"type":"integer"}},{"name":"baths","in":"query","required":false,"description":"Minimum bathrooms.","schema":{"type":"integer"}},{"name":"minSqft","in":"query","required":false,"description":"Minimum square footage.","schema":{"type":"integer"}},{"name":"minCapRate","in":"query","required":false,"description":"Minimum estimated cap rate (% or bps).","schema":{"type":"number"}},{"name":"sort","in":"query","required":false,"description":"Sort order: price_asc, price_desc, valuation_delta, or newest.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Results per page (1-200, default 48).","schema":{"type":"integer"}},{"name":"offset","in":"query","required":false,"description":"Zero-based pagination offset.","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[]}},"/api/v1/propertyx/listings/{slug}":{"get":{"operationId":"get_propertyx_listings_BySlug","summary":"Read full 1-of-1 #://PRoPeRTYx edition dossier with CNXTeSTiMaTe baseline, 6 LiNx, usd://CNXTSPATIAL 3D manifest, and #://CoNTRax closing terms","tags":["Editions, 6 LiNx, THeXTeNSioN & MPP"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[]}},"/api/v1/propertyx/listings/{slug}/saved-search":{"post":{"operationId":"post_propertyx_listings_BySlug_savedSearch","summary":"Register a saved geospatial/criteria alert on a #://PRoPeRTYx edition","tags":["Editions, 6 LiNx, THeXTeNSioN & MPP"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Register a saved geospatial/criteria alert on a #://PRoPeRTYx edition. Requires an API key with a write grant."}},"/api/v1/propertyx/listings/{slug}/schedule-tour":{"post":{"operationId":"post_propertyx_listings_BySlug_scheduleTour","summary":"Schedule a spatial 3D, live video, or in-person #://PRoPeRTYx edition tour","tags":["Editions, 6 LiNx, THeXTeNSioN & MPP"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Schedule a spatial 3D, live video, or in-person #://PRoPeRTYx edition tour. Requires an API key with a write grant."}},"/api/v1/cards/overview":{"get":{"operationId":"get_cards_overview","summary":"Read CNXTCaRD overview","tags":["CNXTCaRD, USDBaNx, CoNTRax & ISO 20022"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/cards/rewards":{"get":{"operationId":"get_cards_rewards","summary":"Read CNXTCaRD rewards","tags":["CNXTCaRD, USDBaNx, CoNTRax & ISO 20022"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/cards/cardholders":{"get":{"operationId":"get_cards_cardholders","summary":"Read CNXTCaRD cardholders","tags":["CNXTCaRD, USDBaNx, CoNTRax & ISO 20022"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]},"post":{"operationId":"post_cards_cardholders","summary":"Execute CNXTCaRD cardholders","tags":["CNXTCaRD, USDBaNx, CoNTRax & ISO 20022"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Execute CNXTCaRD cardholders. Requires an API key with a write grant."}},"/api/v1/cards/cardholders/{cardholderId}":{"get":{"operationId":"get_cards_cardholders_ByCardholderId","summary":"Read CNXTCaRD cardholders (cardholderId)","tags":["CNXTCaRD, USDBaNx, CoNTRax & ISO 20022"],"parameters":[{"name":"cardholderId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/cards":{"get":{"operationId":"get_cards","summary":"Read cards","tags":["CNXTCaRD, USDBaNx, CoNTRax & ISO 20022"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]},"post":{"operationId":"post_cards","summary":"Execute cards","tags":["CNXTCaRD, USDBaNx, CoNTRax & ISO 20022"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Execute cards. Requires an API key with a write grant."}},"/api/v1/cards/authorizations":{"get":{"operationId":"get_cards_authorizations","summary":"Read CNXTCaRD authorizations","tags":["CNXTCaRD, USDBaNx, CoNTRax & ISO 20022"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/cards/transactions":{"get":{"operationId":"get_cards_transactions","summary":"Read CNXTCaRD transactions","tags":["CNXTCaRD, USDBaNx, CoNTRax & ISO 20022"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/cards/{cardId}":{"get":{"operationId":"get_cards_ByCardId","summary":"Read CNXTCaRD (cardId)","tags":["CNXTCaRD, USDBaNx, CoNTRax & ISO 20022"],"parameters":[{"name":"cardId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/cards/{cardId}/freeze":{"post":{"operationId":"post_cards_ByCardId_freeze","summary":"Execute CNXTCaRD (cardId) freeze","tags":["CNXTCaRD, USDBaNx, CoNTRax & ISO 20022"],"parameters":[{"name":"cardId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Execute CNXTCaRD (cardId) freeze. Requires an API key with a write grant."}},"/api/v1/cards/{cardId}/unfreeze":{"post":{"operationId":"post_cards_ByCardId_unfreeze","summary":"Execute CNXTCaRD (cardId) unfreeze","tags":["CNXTCaRD, USDBaNx, CoNTRax & ISO 20022"],"parameters":[{"name":"cardId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Execute CNXTCaRD (cardId) unfreeze. Requires an API key with a write grant."}},"/api/v1/finance/overview":{"get":{"operationId":"get_finance_overview","summary":"Read Sovereign finance overview","tags":["CNXTCaRD, USDBaNx, CoNTRax & ISO 20022"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/finance/usdbanx":{"get":{"operationId":"get_finance_usdbanx","summary":"Read Sovereign finance usdbanx","tags":["CNXTCaRD, USDBaNx, CoNTRax & ISO 20022"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/finance/usdlinx":{"get":{"operationId":"get_finance_usdlinx","summary":"Read Sovereign finance usdlinx","tags":["CNXTCaRD, USDBaNx, CoNTRax & ISO 20022"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/finance/usdnetworx":{"get":{"operationId":"get_finance_usdnetworx","summary":"Read Sovereign finance usdnetworx","tags":["CNXTCaRD, USDBaNx, CoNTRax & ISO 20022"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/contrax/schema":{"get":{"operationId":"get_contrax_schema","summary":"Read CoNTRax schema","tags":["CNXTCaRD, USDBaNx, CoNTRax & ISO 20022"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[]}},"/api/v1/contrax/accounts":{"get":{"operationId":"get_contrax_accounts","summary":"Read CoNTRax accounts","tags":["CNXTCaRD, USDBaNx, CoNTRax & ISO 20022"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]},"post":{"operationId":"post_contrax_accounts","summary":"Execute CoNTRax accounts","tags":["CNXTCaRD, USDBaNx, CoNTRax & ISO 20022"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Execute CoNTRax accounts. Requires an API key with a write grant."}},"/api/v1/contrax/accounts/{id}":{"get":{"operationId":"get_contrax_accounts_ById","summary":"Read CoNTRax accounts (id)","tags":["CNXTCaRD, USDBaNx, CoNTRax & ISO 20022"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]},"patch":{"operationId":"patch_contrax_accounts_ById","summary":"Modify CoNTRax accounts (id)","tags":["CNXTCaRD, USDBaNx, CoNTRax & ISO 20022"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Modify CoNTRax accounts (id). Requires an API key with a write grant."},"delete":{"operationId":"delete_contrax_accounts_ById","summary":"Delete CoNTRax accounts (id)","tags":["CNXTCaRD, USDBaNx, CoNTRax & ISO 20022"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Delete CoNTRax accounts (id). Requires an API key with a write grant."}},"/api/v1/contrax/accounts/{id}/submit":{"post":{"operationId":"post_contrax_accounts_ById_submit","summary":"Execute CoNTRax accounts (id) submit","tags":["CNXTCaRD, USDBaNx, CoNTRax & ISO 20022"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Execute CoNTRax accounts (id) submit. Requires an API key with a write grant."}},"/api/v1/contrax/bindables":{"get":{"operationId":"get_contrax_bindables","summary":"Read CoNTRax bindables","tags":["CNXTCaRD, USDBaNx, CoNTRax & ISO 20022"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/contrax/workflowx/quote":{"post":{"operationId":"post_contrax_workflowx_quote","summary":"Execute #: WoRKaFLoWx CoNTRax quote","tags":["CNXTCaRD, USDBaNx, CoNTRax & ISO 20022"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/contrax/workflowx":{"post":{"operationId":"post_contrax_workflowx","summary":"Execute #: WoRKaFLoWx CoNTRax","tags":["CNXTCaRD, USDBaNx, CoNTRax & ISO 20022"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Execute #: WoRKaFLoWx CoNTRax. Requires an API key with a write grant."},"get":{"operationId":"get_contrax_workflowx","summary":"Read #: WoRKaFLoWx CoNTRax","tags":["CNXTCaRD, USDBaNx, CoNTRax & ISO 20022"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/contrax/workflowx/{id}":{"get":{"operationId":"get_contrax_workflowx_ById","summary":"Read #: WoRKaFLoWx CoNTRax (id)","tags":["CNXTCaRD, USDBaNx, CoNTRax & ISO 20022"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/contrax/workflowx/{id}/sign":{"post":{"operationId":"post_contrax_workflowx_ById_sign","summary":"Execute #: WoRKaFLoWx CoNTRax (id) sign","tags":["CNXTCaRD, USDBaNx, CoNTRax & ISO 20022"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Execute #: WoRKaFLoWx CoNTRax (id) sign. Requires an API key with a write grant."}},"/api/v1/contrax/workflowx/{id}/run":{"post":{"operationId":"post_contrax_workflowx_ById_run","summary":"Execute #: WoRKaFLoWx CoNTRax (id) run","tags":["CNXTCaRD, USDBaNx, CoNTRax & ISO 20022"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"v1_contrax_run","amount":"unpriced"},"description":"Execute #: WoRKaFLoWx CoNTRax (id) run. Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."}},"/api/v1/contrax/workflowx/{id}/void":{"post":{"operationId":"post_contrax_workflowx_ById_void","summary":"Execute #: WoRKaFLoWx CoNTRax (id) void","tags":["CNXTCaRD, USDBaNx, CoNTRax & ISO 20022"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Execute #: WoRKaFLoWx CoNTRax (id) void. Requires an API key with a write grant."}},"/api/v1/signx/envelopes":{"get":{"operationId":"get_signx_envelopes","summary":"Read #: SiGNx envelopes","tags":["CNXTCaRD, USDBaNx, CoNTRax & ISO 20022"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/signx/envelopes/{id}":{"get":{"operationId":"get_signx_envelopes_ById","summary":"Read #: SiGNx envelopes (id)","tags":["CNXTCaRD, USDBaNx, CoNTRax & ISO 20022"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/signx/envelopes/{id}/verify":{"post":{"operationId":"post_signx_envelopes_ById_verify","summary":"Execute #: SiGNx envelopes (id) verify","tags":["CNXTCaRD, USDBaNx, CoNTRax & ISO 20022"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/desks/roster":{"get":{"operationId":"get_desks_roster","summary":"Read desks roster","tags":["CNXTCaRD, USDBaNx, CoNTRax & ISO 20022"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[]}},"/api/v1/iso20022/messages":{"get":{"operationId":"get_iso20022_messages","summary":"Read iso20022 messages","tags":["CNXTCaRD, USDBaNx, CoNTRax & ISO 20022"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[]}},"/api/v1/transfers/{id}/iso20022":{"get":{"operationId":"get_transfers_ById_iso20022","summary":"Read transfers (id) iso20022","tags":["CNXTCaRD, USDBaNx, CoNTRax & ISO 20022"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/payments/wire-instructions/{id}/iso20022":{"get":{"operationId":"get_payments_wireInstructions_ById_iso20022","summary":"Read payments wire-instructions (id) iso20022","tags":["CNXTCaRD, USDBaNx, CoNTRax & ISO 20022"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/x402/capabilities":{"get":{"operationId":"get_x402_capabilities","summary":"Read x402 capabilities","tags":["CNXTCaRD, USDBaNx, CoNTRax & ISO 20022"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[]}},"/api/v1/chains/rails":{"get":{"operationId":"get_chains_rails","summary":"Read chains rails","tags":["CNXTCaRD, USDBaNx, CoNTRax & ISO 20022"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[]}},"/api/v1/chains/positions":{"get":{"operationId":"get_chains_positions","summary":"Read chains positions","tags":["CNXTCaRD, USDBaNx, CoNTRax & ISO 20022"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/ledger/universal/status":{"get":{"operationId":"get_ledger_universal_status","summary":"Google Cloud Universal Ledger (universalledger.googleapis.com) bridge & SHA-256 state-root status","tags":["CNXTCaRD, USDBaNx, CoNTRax & ISO 20022"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[]}},"/api/v1/ledger/universal/attestation":{"get":{"operationId":"get_ledger_universal_attestation","summary":"Deterministic SHA-256 Universal Ledger state-root attestation receipt","tags":["CNXTCaRD, USDBaNx, CoNTRax & ISO 20022"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[]}},"/api/v1/me/key":{"get":{"operationId":"get_me_key","summary":"Introspect the calling API key, scopes, approval rules, and resource wiring","tags":["Key room, StratML, registries & comms reads"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/me/key/bindings":{"get":{"operationId":"get_me_key_bindings","summary":"List resources (editions, cloud instances, agents, webhooks) wired to this API key","tags":["Key room, StratML, registries & comms reads"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]},"put":{"operationId":"put_me_key_bindings","summary":"Replace resources wired to the calling API key","tags":["Key room, StratML, registries & comms reads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Replace resources wired to the calling API key. Requires an API key with a write grant."}},"/api/v1/me/key/calls":{"get":{"operationId":"get_me_key_calls","summary":"Keyset-paginated call telemetry log for the calling API key","tags":["Key room, StratML, registries & comms reads"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/me/key/rate-limits":{"get":{"operationId":"get_me_key_rateLimits","summary":"Rate-limit windows and payment-approval posture for the calling API key","tags":["Key room, StratML, registries & comms reads"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/stratml/stats":{"get":{"operationId":"get_stratml_stats","summary":"Read StratML stats","tags":["Key room, StratML, registries & comms reads"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[]}},"/api/v1/stratml/plans":{"get":{"operationId":"get_stratml_plans","summary":"Read StratML plans","tags":["Key room, StratML, registries & comms reads"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[]}},"/api/v1/stratml/plans/{ref}":{"get":{"operationId":"get_stratml_plans_ByRef","summary":"Read StratML plans (ref)","tags":["Key room, StratML, registries & comms reads"],"parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[]}},"/api/v1/stratml/organizations":{"get":{"operationId":"get_stratml_organizations","summary":"Read StratML organizations","tags":["Key room, StratML, registries & comms reads"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[]}},"/api/v1/stratml/organizations/{orgSlug}":{"get":{"operationId":"get_stratml_organizations_ByOrgSlug","summary":"Read StratML organizations (orgSlug)","tags":["Key room, StratML, registries & comms reads"],"parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[]}},"/api/v1/stratml/docs":{"get":{"operationId":"get_stratml_docs","summary":"Read StratML docs","tags":["Key room, StratML, registries & comms reads"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]},"post":{"operationId":"post_stratml_docs","summary":"Execute StratML docs","tags":["Key room, StratML, registries & comms reads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Execute StratML docs. Requires an API key with a write grant."}},"/api/v1/stratml/docs/{id}":{"get":{"operationId":"get_stratml_docs_ById","summary":"Read StratML docs (id)","tags":["Key room, StratML, registries & comms reads"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]},"patch":{"operationId":"patch_stratml_docs_ById","summary":"Modify StratML docs (id)","tags":["Key room, StratML, registries & comms reads"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Modify StratML docs (id). Requires an API key with a write grant."},"delete":{"operationId":"delete_stratml_docs_ById","summary":"Delete StratML docs (id)","tags":["Key room, StratML, registries & comms reads"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Delete StratML docs (id). Requires an API key with a write grant."}},"/api/v1/stratml/published/{ref}":{"get":{"operationId":"get_stratml_published_ByRef","summary":"Read StratML published (ref)","tags":["Key room, StratML, registries & comms reads"],"parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[]}},"/api/v1/registries/sec":{"get":{"operationId":"get_registries_sec","summary":"Read Registry sec","tags":["Key room, StratML, registries & comms reads"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/registries/pubmed":{"get":{"operationId":"get_registries_pubmed","summary":"Read Registry pubmed","tags":["Key room, StratML, registries & comms reads"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/registries/pubmed/stats":{"get":{"operationId":"get_registries_pubmed_stats","summary":"Read Registry pubmed stats","tags":["Key room, StratML, registries & comms reads"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[]}},"/api/v1/registries/pubmed/{pmid}":{"get":{"operationId":"get_registries_pubmed_ByPmid","summary":"Read Registry pubmed (pmid)","tags":["Key room, StratML, registries & comms reads"],"parameters":[{"name":"pmid","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/registries/inventions":{"get":{"operationId":"get_registries_inventions","summary":"Read Registry inventions","tags":["Key room, StratML, registries & comms reads"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/registries/institutions":{"get":{"operationId":"get_registries_institutions","summary":"Read Registry institutions","tags":["Key room, StratML, registries & comms reads"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[]}},"/api/v1/registries/institutions/{slug}":{"get":{"operationId":"get_registries_institutions_BySlug","summary":"Read Registry institutions (slug)","tags":["Key room, StratML, registries & comms reads"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[]}},"/api/v1/registries/enterprise/segments":{"get":{"operationId":"get_registries_enterprise_segments","summary":"Read Registry enterprise segments","tags":["Key room, StratML, registries & comms reads"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/registries/people/summary":{"get":{"operationId":"get_registries_people_summary","summary":"Read Registry people summary","tags":["Key room, StratML, registries & comms reads"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[]}},"/api/v1/telemetry/instances/{id}/fleet":{"get":{"operationId":"get_telemetry_instances_ById_fleet","summary":"Read Telemetry fleet fleet","tags":["Key room, StratML, registries & comms reads"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/telemetry/instances/{id}/devices/{deviceId}":{"get":{"operationId":"get_telemetry_instances_ById_devices_ByDeviceId","summary":"Read Telemetry fleet devices (deviceId)","tags":["Key room, StratML, registries & comms reads"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"deviceId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/telemetry/instances/{id}/devices/{deviceId}/series":{"get":{"operationId":"get_telemetry_instances_ById_devices_ByDeviceId_series","summary":"Read Telemetry fleet devices (deviceId) series","tags":["Key room, StratML, registries & comms reads"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"deviceId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/telemetry/instances/{id}/starlink":{"get":{"operationId":"get_telemetry_instances_ById_starlink","summary":"Read Telemetry fleet starlink","tags":["Key room, StratML, registries & comms reads"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/telemetry/instances/{id}/settings":{"get":{"operationId":"get_telemetry_instances_ById_settings","summary":"Read Telemetry fleet settings","tags":["Key room, StratML, registries & comms reads"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/smtpx/accounts":{"get":{"operationId":"get_smtpx_accounts","summary":"Read $: SMTPx accounts","tags":["Key room, StratML, registries & comms reads"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/smtpx/accounts/{id}/folders":{"get":{"operationId":"get_smtpx_accounts_ById_folders","summary":"Read $: SMTPx accounts (id) folders","tags":["Key room, StratML, registries & comms reads"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/smtpx/accounts/{id}/messages":{"get":{"operationId":"get_smtpx_accounts_ById_messages","summary":"Read $: SMTPx accounts (id) messages","tags":["Key room, StratML, registries & comms reads"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/smtpx/contacts":{"get":{"operationId":"get_smtpx_contacts","summary":"Read $: SMTPx contacts","tags":["Key room, StratML, registries & comms reads"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/smsx/gateways":{"get":{"operationId":"get_smsx_gateways","summary":"Read $: SMSx gateways","tags":["Key room, StratML, registries & comms reads"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/smsx/contacts":{"get":{"operationId":"get_smsx_contacts","summary":"Read $: SMSx contacts","tags":["Key room, StratML, registries & comms reads"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/smsx/messages":{"get":{"operationId":"get_smsx_messages","summary":"Read $: SMSx messages","tags":["Key room, StratML, registries & comms reads"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/smsx/threads":{"get":{"operationId":"get_smsx_threads","summary":"Read $: SMSx threads","tags":["Key room, StratML, registries & comms reads"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/repox/repos":{"get":{"operationId":"get_repox_repos","summary":"Read #: RePox repos","tags":["Key room, StratML, registries & comms reads"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/repox/repos/{id}":{"get":{"operationId":"get_repox_repos_ById","summary":"Read #: RePox repos (id)","tags":["Key room, StratML, registries & comms reads"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/repox/repos/{id}/uploads":{"get":{"operationId":"get_repox_repos_ById_uploads","summary":"Read #: RePox repos (id) uploads","tags":["Key room, StratML, registries & comms reads"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/models":{"get":{"operationId":"get_models","summary":"The CNXTAI model catalog (public slugs, disclosed token pricing, live serving-chain status)","tags":["Data & network reference"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"model_catalog"},"cnxtdBy":{"type":"string"},"models":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"description":{"type":"string"},"pricing":{"type":"object","properties":{"perMillionTokensCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"minimumBillableCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["perMillionTokensCents","minimumBillableCents"],"additionalProperties":{}}},"required":["id","label","description","pricing"],"additionalProperties":{}}},"serving":{"type":"object","properties":{"configured":{"type":"boolean"},"model":{"type":"string"},"cnxtdBy":{"type":"string"},"live":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"engines":{"type":"array","items":{"type":"object","properties":{"slot":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"role":{"type":"string"},"configured":{"type":"boolean"},"live":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"required":["slot","role","configured","live"],"additionalProperties":{}}}},"required":["configured","model","cnxtdBy","live","engines"],"additionalProperties":{}},"disclosure":{"type":"string"},"syncedAt":{"type":"string"}},"required":["object","cnxtdBy","models","serving","disclosure","syncedAt"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/datasets/search":{"get":{"operationId":"get_datasets_search","summary":"Search EVERY data point in EVERY CNXTDATA dataset (?q=, optional ?dataset=). Facet census is bounded: when total_is_lower_bound is true, total and facet counts are lower bounds (render as \"N+\")","tags":["Data & network reference"],"parameters":[{"name":"q","in":"query","required":false,"description":"Search text (2–200 chars) matched against every record's natural key and payload.","schema":{"type":"string"}},{"name":"dataset","in":"query","required":false,"description":"Optional dataset id to narrow the search to one registry.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Page size (1–100, default 20).","schema":{"type":"integer"}},{"name":"offset","in":"query","required":false,"description":"Zero-based offset into the collection.","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"datasetId":{"type":"string"},"naturalKey":{"type":"string"},"payload":{"type":"object","properties":{},"additionalProperties":{}}},"required":["id","datasetId","naturalKey","payload"],"additionalProperties":{}}},"page":{"type":"object","properties":{"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hasMore":{"type":"boolean"},"nextOffset":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["limit","offset","hasMore","nextOffset"],"additionalProperties":false},"facets":{"type":"array","items":{"type":"object","properties":{"datasetId":{"type":"string"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["datasetId","count"],"additionalProperties":false}},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total_is_lower_bound":{"type":"boolean"}},"required":["object","data","page","facets","total","total_is_lower_bound"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/datasets/learning":{"get":{"operationId":"get_datasets_learning","summary":"The CNXTAI learning ledger (coverage, demand, next tranche)","tags":["Data & network reference"],"parameters":[{"name":"days","in":"query","required":false,"description":"Lookback window in days (1–365, default 30).","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"learning_report"}},"required":["object"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/datasets/{id}/records":{"get":{"operationId":"get_datasets_ById_records","summary":"Ingested records for one dataset (?q= trigram search)","tags":["Data & network reference"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Page size (1–100, default 20).","schema":{"type":"integer"}},{"name":"offset","in":"query","required":false,"description":"Zero-based offset into the collection.","schema":{"type":"integer"}},{"name":"q","in":"query","required":false,"description":"Optional case-insensitive search filter.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"datasetId":{"type":"string"},"naturalKey":{"type":"string"},"payload":{"type":"object","properties":{},"additionalProperties":{}}},"required":["id","datasetId","naturalKey","payload"],"additionalProperties":{}}},"page":{"type":"object","properties":{"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hasMore":{"type":"boolean"},"nextOffset":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["limit","offset","hasMore","nextOffset"],"additionalProperties":false}},"required":["object","data","page"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/datasets/{id}/export":{"get":{"operationId":"get_datasets_ById_export","summary":"MPP-paid bulk export — up to 5,000 records per call (5¢ via the Payment scheme)","tags":["Data & network reference"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"description":"Optional case-insensitive search filter.","schema":{"type":"string"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"dataset_export"},"dataset":{"type":"string"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"records":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"datasetId":{"type":"string"},"naturalKey":{"type":"string"},"payload":{"type":"object","properties":{},"additionalProperties":{}}},"required":["id","datasetId","naturalKey","payload"],"additionalProperties":{}}},"mpp":{"type":"object","properties":{"settled":{"type":"boolean"},"replayed":{"type":"boolean"},"receipt":{"type":"object","properties":{"status":{"type":"string"},"method":{"type":"string"},"reference":{"type":"string"},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["status","method","reference","amountCents","currency"],"additionalProperties":{}}},"required":["settled","replayed","receipt"],"additionalProperties":{}}},"required":["object","dataset","count","records","mpp"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"403":{"description":"Approval required: this key's payments need the account owner's OK. Nothing moved. Answered when the key's \"Payments need my OK\" setting is on: code approval_required, nothing_moved: true, and a payment_approval (id, summary, amount, destination, expiresAt). Also the other permission refusals.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"v1_dataset_export","amount":"priced"}}},"/api/v1/datasets/{id}/sources":{"get":{"operationId":"get_datasets_ById_sources","summary":"Source adapters for a dataset, with honest connection status","tags":["Data & network reference"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"dataset_sources"},"dataset":{"type":"string"},"sources":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":{}}}},"required":["object","dataset","sources"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/role-desks":{"get":{"operationId":"get_roleDesks","summary":"The ten CNXT role desks (durable-census roster counts)","tags":["Data & network reference"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"role_desk_index"},"generatedAt":{"type":"string"},"desks":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"path":{"type":"string"},"name":{"type":"string"},"address":{"type":"string"},"status":{"type":"string","enum":["live","staged"]},"rosterCount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["slug","path","name","address","status","rosterCount"],"additionalProperties":{}}}},"required":["object","generatedAt","desks"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/role-desks/{slug}":{"get":{"operationId":"get_roleDesks_BySlug","summary":"One role desk — identity, census stats, ISO 20022 family rail, datafeed contract; the N-CEN desks add their SEC release and own-book disclosure","tags":["Data & network reference"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"slug":{"type":"string"},"path":{"type":"string"},"name":{"type":"string"},"address":{"type":"string"},"status":{"type":"string","enum":["live","staged"]},"stats":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"datasetId":{"type":"string"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"href":{"type":"string"}},"required":["label","datasetId","count","href"],"additionalProperties":{}}},"iso":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"org":{"type":"string"},"domain":{"type":"string"},"role":{"type":"string"}},"required":["id","name","org","domain","role"],"additionalProperties":{}}},"roster":{"type":"object","properties":{"kind":{"type":"string","enum":["dataset","loan-aggregates"]},"release":{"type":"object","properties":{"held":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^\\d{4}q[1-4]_ncen(?:_\\d+)?$"},"label":{"type":"string","pattern":"^\\d{4} Q[1-4]$"},"url":{"type":"string","pattern":"^https:\\/\\/www\\.sec\\.gov\\/files\\/dera\\/data\\/form-n-cen-data-sets\\/\\d{4}q[1-4]_ncen(?:_\\d+)?\\.zip$"},"filingPeriodStart":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"filingPeriodEnd":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["id","label","url","filingPeriodStart","filingPeriodEnd"],"additionalProperties":false}},"note":{"type":"string","minLength":1}},"required":["held","note"],"additionalProperties":false},"cellNotes":{"type":"array","items":{"type":"object","properties":{"reason":{"type":"string"},"note":{"type":"string"}},"required":["reason","note"],"additionalProperties":{}}},"period":{"type":"string"},"basis":{"type":"string"},"empty":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["kind"],"additionalProperties":{}},"ownBook":{"type":"object","properties":{"status":{"type":"string","const":"staged"},"noun":{"type":"string","minLength":1},"disclosure":{"type":"string","minLength":1}},"required":["status","noun","disclosure"],"additionalProperties":false}},"required":["slug","path","name","address","status","stats","iso","roster"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/role-desks/{slug}/feed":{"get":{"operationId":"get_roleDesks_BySlug_feed","summary":"Role-desk datafeed (JSON, page-bounded; loanx is aggregates-only; custodianx and adminx answer with closed N-CEN rows, release and own-book disclosure)","tags":["Data & network reference"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Page size (1–100, default 20).","schema":{"type":"integer"}},{"name":"offset","in":"query","required":false,"description":"Zero-based offset into the collection.","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"object":{"type":"string","const":"list"},"desk":{"type":"string","const":"custodianx"},"status":{"type":"string","const":"live"},"registry":{"type":"string","minLength":1},"release":{"type":"object","properties":{"held":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^\\d{4}q[1-4]_ncen(?:_\\d+)?$"},"label":{"type":"string","pattern":"^\\d{4} Q[1-4]$"},"url":{"type":"string","pattern":"^https:\\/\\/www\\.sec\\.gov\\/files\\/dera\\/data\\/form-n-cen-data-sets\\/\\d{4}q[1-4]_ncen(?:_\\d+)?\\.zip$"},"filingPeriodStart":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"filingPeriodEnd":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["id","label","url","filingPeriodStart","filingPeriodEnd"],"additionalProperties":false}},"note":{"type":"string","minLength":1}},"required":["held","note"],"additionalProperties":false},"ownBook":{"type":"object","properties":{"status":{"type":"string","const":"staged"},"noun":{"type":"string","minLength":1},"disclosure":{"type":"string","minLength":1}},"required":["status","noun","disclosure"],"additionalProperties":false},"data":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^(custodian):(?:lei:[A-Z0-9]{18}[0-9]{2}|nolei:\\d{10}-\\d{2}-\\d{6}_\\d{10}(?:_[A-Z0-9]+)?:[1-9]\\d{0,5})$"},"values":{"type":"object","properties":{"name":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"lei":{"anyOf":[{"type":"string","pattern":"^[A-Z0-9]{18}[0-9]{2}$"},{"type":"null"}]},"country":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"fundsServed":{"type":"integer","minimum":0,"maximum":9007199254740991},"seriesServed":{"type":"integer","minimum":0,"maximum":9007199254740991},"custodyTypeSummary":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]}},"required":["name","lei","country","fundsServed","seriesServed","custodyTypeSummary"],"additionalProperties":false},"links":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","const":"record"},"label":{"type":"string","minLength":1},"href":{"type":"string","pattern":"^\\/datasets\\/sec-ncen-(custodians|administrators)\\?q=[^&#]+$"}},"required":["kind","label","href"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"org"},"label":{"type":"string","minLength":1},"href":{"type":"string","pattern":"^\\/orgs\\/gleif\\/[A-Z0-9]{18}[0-9]{2}$"}},"required":["kind","label","href"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"desk"},"label":{"type":"string","minLength":1},"href":{"type":"string","pattern":"^\\/fundx\\?servedBy=[^&#]+$"}},"required":["kind","label","href"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"origin"},"label":{"type":"string","minLength":1},"href":{"type":"string","pattern":"^\\/xplr\\?u=https%3A%2F%2Fsearch\\.gleif\\.org%2F%23%2Frecord%2F[A-Z0-9]{18}[0-9]{2}&label=[^&#]+$"}},"required":["kind","label","href"],"additionalProperties":false}]}},"cells":{"type":"object","properties":{"name":{"anyOf":[{"type":"object","properties":{"href":{"type":"string","pattern":"^\\/orgs\\/gleif\\/[A-Z0-9]{18}[0-9]{2}$"}},"required":["href"],"additionalProperties":false},{"type":"object","properties":{"inert":{"type":"string","enum":["no-lei","no-org-page"]}},"required":["inert"],"additionalProperties":false}]},"lei":{"anyOf":[{"type":"object","properties":{"href":{"type":"string","pattern":"^\\/orgs\\/gleif\\/[A-Z0-9]{18}[0-9]{2}$"}},"required":["href"],"additionalProperties":false},{"type":"object","properties":{"inert":{"type":"string","enum":["no-lei","no-org-page"]}},"required":["inert"],"additionalProperties":false}]}},"additionalProperties":false}},"required":["key","values","links","cells"],"additionalProperties":false}},"page":{"type":"object","properties":{"limit":{"type":"integer","minimum":0,"maximum":9007199254740991},"offset":{"type":"integer","minimum":0,"maximum":9007199254740991},"hasMore":{"type":"boolean"},"nextOffset":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]}},"required":["limit","offset","hasMore","nextOffset"],"additionalProperties":false}},"required":["object","desk","status","registry","release","ownBook","data","page"],"additionalProperties":false},{"type":"object","properties":{"object":{"type":"string","const":"list"},"desk":{"type":"string","const":"adminx"},"status":{"type":"string","const":"live"},"registry":{"type":"string","minLength":1},"release":{"type":"object","properties":{"held":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^\\d{4}q[1-4]_ncen(?:_\\d+)?$"},"label":{"type":"string","pattern":"^\\d{4} Q[1-4]$"},"url":{"type":"string","pattern":"^https:\\/\\/www\\.sec\\.gov\\/files\\/dera\\/data\\/form-n-cen-data-sets\\/\\d{4}q[1-4]_ncen(?:_\\d+)?\\.zip$"},"filingPeriodStart":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"filingPeriodEnd":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["id","label","url","filingPeriodStart","filingPeriodEnd"],"additionalProperties":false}},"note":{"type":"string","minLength":1}},"required":["held","note"],"additionalProperties":false},"ownBook":{"type":"object","properties":{"status":{"type":"string","const":"staged"},"noun":{"type":"string","minLength":1},"disclosure":{"type":"string","minLength":1}},"required":["status","noun","disclosure"],"additionalProperties":false},"data":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^(administrator|transfer_agent):(?:lei:[A-Z0-9]{18}[0-9]{2}|nolei:\\d{10}-\\d{2}-\\d{6}_\\d{10}(?:_[A-Z0-9]+)?:[1-9]\\d{0,5})$"},"values":{"type":"object","properties":{"roleLabel":{"type":"string","enum":["Administrator","Transfer agent"]},"name":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"lei":{"anyOf":[{"type":"string","pattern":"^[A-Z0-9]{18}[0-9]{2}$"},{"type":"null"}]},"country":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"fundsServed":{"type":"integer","minimum":0,"maximum":9007199254740991},"seriesServed":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["roleLabel","name","lei","country","fundsServed","seriesServed"],"additionalProperties":false},"links":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","const":"record"},"label":{"type":"string","minLength":1},"href":{"type":"string","pattern":"^\\/datasets\\/sec-ncen-(custodians|administrators)\\?q=[^&#]+$"}},"required":["kind","label","href"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"org"},"label":{"type":"string","minLength":1},"href":{"type":"string","pattern":"^\\/orgs\\/gleif\\/[A-Z0-9]{18}[0-9]{2}$"}},"required":["kind","label","href"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"desk"},"label":{"type":"string","minLength":1},"href":{"type":"string","pattern":"^\\/fundx\\?servedBy=[^&#]+$"}},"required":["kind","label","href"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"origin"},"label":{"type":"string","minLength":1},"href":{"type":"string","pattern":"^\\/xplr\\?u=https%3A%2F%2Fsearch\\.gleif\\.org%2F%23%2Frecord%2F[A-Z0-9]{18}[0-9]{2}&label=[^&#]+$"}},"required":["kind","label","href"],"additionalProperties":false}]}},"cells":{"type":"object","properties":{"name":{"anyOf":[{"type":"object","properties":{"href":{"type":"string","pattern":"^\\/orgs\\/gleif\\/[A-Z0-9]{18}[0-9]{2}$"}},"required":["href"],"additionalProperties":false},{"type":"object","properties":{"inert":{"type":"string","enum":["no-lei","no-org-page"]}},"required":["inert"],"additionalProperties":false}]},"lei":{"anyOf":[{"type":"object","properties":{"href":{"type":"string","pattern":"^\\/orgs\\/gleif\\/[A-Z0-9]{18}[0-9]{2}$"}},"required":["href"],"additionalProperties":false},{"type":"object","properties":{"inert":{"type":"string","enum":["no-lei","no-org-page"]}},"required":["inert"],"additionalProperties":false}]}},"additionalProperties":false}},"required":["key","values","links","cells"],"additionalProperties":false}},"page":{"type":"object","properties":{"limit":{"type":"integer","minimum":0,"maximum":9007199254740991},"offset":{"type":"integer","minimum":0,"maximum":9007199254740991},"hasMore":{"type":"boolean"},"nextOffset":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]}},"required":["limit","offset","hasMore","nextOffset"],"additionalProperties":false}},"required":["object","desk","status","registry","release","ownBook","data","page"],"additionalProperties":false},{"type":"object","properties":{"desk":{"type":"string"},"status":{"type":"string","enum":["live","staged"]}},"required":["desk","status"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/lei":{"get":{"operationId":"get_lei","summary":"GLEIF LEI golden-copy lookup (?lei= exact ISO 17442, ?bic= certified BIC↔LEI, ?q= legal-name search)","tags":["Data & network reference"],"parameters":[{"name":"lei","in":"query","required":false,"description":"Exact ISO 17442 lookup — 20 alphanumeric characters. Returns the verbatim GLEIF golden-copy record plus certified BIC links and indicative SEC EDGAR matches.","schema":{"type":"string"}},{"name":"bic","in":"query","required":false,"description":"ISO 9362 BIC (8 or 11 chars) — returns GLEIF's certified BIC→LEI links resolved against the golden copy.","schema":{"type":"string"}},{"name":"q","in":"query","required":false,"description":"Legal-name search (2–200 chars, trigram-indexed) scoped to the lei-registry corpus. Exactly one of lei, bic, or q is required.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Page size (1–100, default 20).","schema":{"type":"integer"}},{"name":"offset","in":"query","required":false,"description":"Zero-based offset into the collection.","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"data":{"anyOf":[{"type":"object","properties":{"object":{"type":"string","const":"lei_entity"},"lei":{"type":"string"},"record":{"type":"object","properties":{},"additionalProperties":{}},"correspondences":{"type":"object","properties":{},"additionalProperties":{}}},"required":["object","lei","record","correspondences"],"additionalProperties":{}},{"type":"object","properties":{"object":{"type":"string","const":"lei_bic_links"},"bic":{"type":"string"},"links":{"type":"array","items":{"type":"object","properties":{"bic":{"type":"string"},"lei":{"type":"string"},"match":{"type":"string"}},"required":["bic","lei","match"],"additionalProperties":{}}}},"required":["object","bic","links"],"additionalProperties":{}}]}},"required":["data"],"additionalProperties":false},{"type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"datasetId":{"type":"string"},"naturalKey":{"type":"string"},"payload":{"type":"object","properties":{},"additionalProperties":{}}},"required":["id","datasetId","naturalKey","payload"],"additionalProperties":{}}},"page":{"type":"object","properties":{"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hasMore":{"type":"boolean"},"nextOffset":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["limit","offset","hasMore","nextOffset"],"additionalProperties":false}},"required":["object","data","page"],"additionalProperties":false}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/currencies":{"get":{"operationId":"get_currencies","summary":"The $:// currency registry (ISO 4217 fiat + quote-only crypto + pending units)","tags":["Data & network reference"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"currency_registry"},"disclosure":{"type":"string"},"fiat":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"},"symbol":{"type":"string"}},"required":["code","name","symbol"],"additionalProperties":{}}},"crypto":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"},"symbol":{"type":"string"}},"required":["code","name","symbol"],"additionalProperties":{}}},"pending":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"},"symbol":{"type":"string"}},"required":["code","name","symbol"],"additionalProperties":{}}}},"required":["object","disclosure","fiat","crypto","pending"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/currencies/{code}":{"get":{"operationId":"get_currencies_ByCode","summary":"Validate one ISO 4217 code (static reference, never a rate)","tags":["Data & network reference"],"parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"currency"},"code":{"type":"string"}},"required":["object","code"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/chains":{"get":{"operationId":"get_chains","summary":"The 11 chain interop rails (identity-free aggregates; on-chain inert)","tags":["Data & network reference"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"chain_rails"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rails":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"onchain":{"type":"string","enum":["settlement_live","activated_receive_only","not_activated","no_address","unknown"]},"onchainStatus":{"type":"object","properties":{"status":{"type":"string","enum":["settlement_live","activated_receive_only","not_activated","no_address","unknown"]},"label":{"type":"string"},"detail":{"type":"string"},"activated":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"sendPath":{"anyOf":[{"type":"string","enum":["x402-facilitator","native-transfer"]},{"type":"null"}]},"gas":{"type":"object","properties":{"network":{"anyOf":[{"type":"string"},{"type":"null"}]},"networkLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"unit":{"type":"string"},"balance":{"anyOf":[{"type":"string"},{"type":"null"}]},"activationMin":{"anyOf":[{"type":"string"},{"type":"null"}]},"coverageTx":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"lowGas":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"floorTx":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["network","networkLabel","unit","balance","activationMin","coverageTx","lowGas","floorTx"],"additionalProperties":{}},"readAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["status","label","detail","activated","sendPath","gas","readAt"],"additionalProperties":{}},"minted":{"type":"boolean"},"positions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"heldCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","name","onchain","onchainStatus","minted","positions","heldCents"],"additionalProperties":{}}}},"required":["object","count","rails"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/chains/wallets":{"get":{"operationId":"get_chains_wallets","summary":"CNXT's first-party self-custodied chain wallets (public material only)","tags":["Data & network reference"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"chain_wallets"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"wallets":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":{}}}},"required":["object","count","wallets"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/goals":{"get":{"operationId":"get_goals","summary":"Your goals (budget caps, savings targets, sourcing objectives)","tags":["Data & network reference"],"parameters":[{"name":"limit","in":"query","required":false,"description":"Page size (1–100, default 20).","schema":{"type":"integer"}},{"name":"offset","in":"query","required":false,"description":"Zero-based offset into the collection.","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"goal"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"kind":{"type":"string"},"title":{"type":"string"},"targetCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string"}},"required":["object","id","kind","title","targetCents","status"],"additionalProperties":{}}},"page":{"type":"object","properties":{"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hasMore":{"type":"boolean"},"nextOffset":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["limit","offset","hasMore","nextOffset"],"additionalProperties":false}},"required":["object","data","page"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/goals/{id}/events":{"get":{"operationId":"get_goals_ById_events","summary":"The event trail of one of your goals","tags":["Data & network reference"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"limit","in":"query","required":false,"description":"Page size (1–100, default 20).","schema":{"type":"integer"}},{"name":"offset","in":"query","required":false,"description":"Zero-based offset into the collection.","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"goal_event"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"goalId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["object","id","goalId"],"additionalProperties":{}}},"page":{"type":"object","properties":{"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hasMore":{"type":"boolean"},"nextOffset":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["limit","offset","hasMore","nextOffset"],"additionalProperties":false}},"required":["object","data","page"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/search":{"post":{"operationId":"post_search","summary":"#://FiNDR federated web search — MPP-paid (5¢), ranked rows + LLM-ready markdown citations","tags":["Data & network reference"],"parameters":[{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"query":{"type":"string","minLength":2,"maxLength":400},"limit":{"type":"integer","minimum":1,"maximum":25},"provider":{"type":"string","enum":["cnxt-native","brave","tavily","exa","scrapingbee-google"]},"fresh":{"type":"boolean"}},"required":["query"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"search_result_set"},"query":{"type":"string"},"provider":{"type":"string"},"executedAt":{"type":"string"},"cached":{"type":"boolean"},"cachePolicy":{"type":"string"},"totalAvailable":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"results":{"type":"array","items":{"type":"object","properties":{"rank":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"},"url":{"type":"string"},"snippet":{"anyOf":[{"type":"string"},{"type":"null"}]},"domain":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["rank","title","url","snippet","domain"],"additionalProperties":{}}},"markdownBlocks":{"type":"array","items":{"type":"string"}},"creditsSpent":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"relatedQueries":{"type":"array","items":{"type":"string"}},"mpp":{"type":"object","properties":{"settled":{"type":"boolean"},"replayed":{"type":"boolean"},"receipt":{"type":"object","properties":{"status":{"type":"string"},"method":{"type":"string"},"reference":{"type":"string"},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["status","method","reference","amountCents","currency"],"additionalProperties":{}}},"required":["settled","replayed","receipt"],"additionalProperties":{}}},"required":["object","query","provider","executedAt","cached","cachePolicy","totalAvailable","results","markdownBlocks","creditsSpent","relatedQueries","mpp"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"403":{"description":"Approval required: this key's payments need the account owner's OK. Nothing moved. Answered when the key's \"Payments need my OK\" setting is on: code approval_required, nothing_moved: true, and a payment_approval (id, summary, amount, destination, expiresAt). Also the other permission refusals.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"v1_search","amount":"priced"}}},"/api/v1/llmx/tokenize":{"post":{"operationId":"post_llmx_tokenize","summary":"#://LLMx — tokenize text with the CNXT-native WordPiece tokenizer (real ids from the model's own vocabulary; honest 503 while the runtime cannot load)","tags":["Data & network reference"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":10000},"model":{"type":"string","enum":["cnxt-native-minilm-l6-v2","cnxt-lexical-1536-v1","cnxt-o200k-200k-v1"]}},"required":["text"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"anyOf":[{"type":"object","properties":{"object":{"type":"string","const":"tokenization"},"rail":{"type":"string"},"model":{"type":"string"},"algorithm":{"type":"string"},"chars":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"specialsIncluded":{"type":"boolean"},"tokens":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"token":{"type":"string"},"special":{"type":"boolean"}},"required":["id","token","special"],"additionalProperties":false}},"wordpieces":{"type":"array","items":{"type":"string"}},"vocabSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["object","rail","model","algorithm","chars","count","specialsIncluded","tokens","wordpieces","vocabSize"],"additionalProperties":{}},{"type":"object","properties":{"object":{"type":"string","const":"lexical_featurization"},"rail":{"type":"string"},"model":{"type":"string"},"algorithm":{"type":"string"},"chars":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"featureCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"bucketsTouched":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"dims":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"features":{"type":"array","items":{"type":"object","properties":{"feature":{"type":"string"},"kind":{"type":"string","enum":["word","bigram","trigram"]},"term":{"type":"string"},"tf":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"bucket":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sign":{"anyOf":[{"type":"number","const":1},{"type":"number","const":-1}]},"weight":{"type":"number"}},"required":["feature","kind","term","tf","bucket","sign","weight"],"additionalProperties":false}},"truncated":{"type":"boolean"},"textCap":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["object","rail","model","algorithm","chars","featureCount","bucketsTouched","dims","features","truncated","textCap"],"additionalProperties":{}}]}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/payments/intents":{"get":{"operationId":"get_payments_intents","summary":"Your CNXTPayMeNTx payment intents","tags":["CNXTPayMeNTx payments"],"parameters":[{"name":"limit","in":"query","required":false,"description":"Page size (1–100, default 20).","schema":{"type":"integer"}},{"name":"offset","in":"query","required":false,"description":"Zero-based offset into the collection.","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"payment_intent"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"direction":{"type":"string"},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"payerAddress":{"type":"string"},"payeeAddress":{"type":"string"},"rail":{"type":"string"},"status":{"type":"string"},"lifecycle":{"anyOf":[{"type":"string"},{"type":"null"}]},"iso20022MsgId":{"type":"string"},"endToEndId":{"type":"string"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["object","id","direction","amountCents","currency","payerAddress","payeeAddress","rail","status","lifecycle","iso20022MsgId","endToEndId","reason","createdAt"],"additionalProperties":{}}},"page":{"type":"object","properties":{"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hasMore":{"type":"boolean"},"nextOffset":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["limit","offset","hasMore","nextOffset"],"additionalProperties":false}},"required":["object","data","page"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]},"post":{"operationId":"post_payments_intents","summary":"Initiate a payment (routes to transfer / Stripe / ISO 20022 wire)","tags":["CNXTPayMeNTx payments"],"parameters":[{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"direction":{"type":"string","enum":["credit","debit"]},"amountCents":{"type":"integer","exclusiveMinimum":0,"maximum":9000000000000000},"currency":{"type":"string","minLength":3,"maxLength":3},"payerAddress":{"type":"string","minLength":1,"maxLength":300},"payeeAddress":{"type":"string","minLength":1,"maxLength":300},"requestedRail":{"type":"string","enum":["transfer","stripe","wire-credit","wire-debit"]},"counterparty":{"type":"object","properties":{"name":{"type":"string","maxLength":140},"agent":{"type":"string","maxLength":34},"account":{"type":"string","maxLength":64},"routingNumber":{"type":"string","maxLength":20}}},"memo":{"type":"string","maxLength":280},"mandateId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"idempotencyKey":{"type":"string","minLength":1,"maxLength":120}},"required":["direction","amountCents","payerAddress","payeeAddress"]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"payment_result"},"intent":{"type":"object","properties":{"object":{"type":"string","const":"payment_intent"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"direction":{"type":"string"},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"payerAddress":{"type":"string"},"payeeAddress":{"type":"string"},"rail":{"type":"string"},"status":{"type":"string"},"lifecycle":{"anyOf":[{"type":"string"},{"type":"null"}]},"iso20022MsgId":{"type":"string"},"endToEndId":{"type":"string"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["object","id","direction","amountCents","currency","payerAddress","payeeAddress","rail","status","lifecycle","iso20022MsgId","endToEndId","reason","createdAt"],"additionalProperties":{}},"rail":{"type":"string"},"reason":{"type":"string"},"checkoutUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"wire":{"anyOf":[{"type":"object","properties":{"object":{"type":"string","const":"wire_instruction"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"direction":{"type":"string"},"network":{"type":"string"},"initiationMsgId":{"type":"string"},"clearingMsgId":{"anyOf":[{"type":"string"},{"type":"null"}]},"endToEndId":{"type":"string"},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"status":{"type":"string"},"settlement":{"type":"string"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["object","id","direction","network","initiationMsgId","clearingMsgId","endToEndId","amountCents","currency","status","settlement","reason","createdAt"],"additionalProperties":{}},{"type":"null"}]},"transferId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["object","intent","rail","reason","checkoutUrl","wire","transferId"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"403":{"description":"Approval required: this key's payments need the account owner's OK. Nothing moved. Answered when the key's \"Payments need my OK\" setting is on: code approval_required, nothing_moved: true, and a payment_approval (id, summary, amount, destination, expiresAt). Also the other permission refusals.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"payment_initiate","amount":"stated"},"description":"Initiate a payment (routes to transfer / Stripe / ISO 20022 wire). Requires an API key with a write grant. Moves money: while the key's \"Payments need my OK\" setting is on, it answers 403 approval_required and nothing moves until the account owner approves it in the signed-in console."}},"/api/v1/payments/intents/{id}":{"get":{"operationId":"get_payments_intents_ById","summary":"A single payment intent","tags":["CNXTPayMeNTx payments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"payment_intent"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"direction":{"type":"string"},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"payerAddress":{"type":"string"},"payeeAddress":{"type":"string"},"rail":{"type":"string"},"status":{"type":"string"},"lifecycle":{"anyOf":[{"type":"string"},{"type":"null"}]},"iso20022MsgId":{"type":"string"},"endToEndId":{"type":"string"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["object","id","direction","amountCents","currency","payerAddress","payeeAddress","rail","status","lifecycle","iso20022MsgId","endToEndId","reason","createdAt"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/payments/confirm":{"post":{"operationId":"post_payments_confirm","summary":"Confirm a Stripe-rail payment session","tags":["CNXTPayMeNTx payments"],"parameters":[{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"sessionId":{"type":"string","minLength":1,"maxLength":200}},"required":["sessionId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"payment_confirmation"},"status":{"type":"string"},"intent":{"type":"object","properties":{"object":{"type":"string","const":"payment_intent"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"direction":{"type":"string"},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"payerAddress":{"type":"string"},"payeeAddress":{"type":"string"},"rail":{"type":"string"},"status":{"type":"string"},"lifecycle":{"anyOf":[{"type":"string"},{"type":"null"}]},"iso20022MsgId":{"type":"string"},"endToEndId":{"type":"string"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["object","id","direction","amountCents","currency","payerAddress","payeeAddress","rail","status","lifecycle","iso20022MsgId","endToEndId","reason","createdAt"],"additionalProperties":{}}},"required":["object","status","intent"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"403":{"description":"Approval required: this key's payments need the account owner's OK. Nothing moved. Answered when the key's \"Payments need my OK\" setting is on: code approval_required, nothing_moved: true, and a payment_approval (id, summary, amount, destination, expiresAt). Also the other permission refusals.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"payment_confirm","amount":"priced"},"description":"Confirm a Stripe-rail payment session. Requires an API key with a write grant. Moves money: while the key's \"Payments need my OK\" setting is on, it answers 403 approval_required and nothing moves until the account owner approves it in the signed-in console."}},"/api/v1/payments/wire-instructions":{"get":{"operationId":"get_payments_wireInstructions","summary":"Your ISO 20022 wire instructions","tags":["CNXTPayMeNTx payments"],"parameters":[{"name":"limit","in":"query","required":false,"description":"Page size (1–100, default 20).","schema":{"type":"integer"}},{"name":"offset","in":"query","required":false,"description":"Zero-based offset into the collection.","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"wire_instruction"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"direction":{"type":"string"},"network":{"type":"string"},"initiationMsgId":{"type":"string"},"clearingMsgId":{"anyOf":[{"type":"string"},{"type":"null"}]},"endToEndId":{"type":"string"},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"status":{"type":"string"},"settlement":{"type":"string"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["object","id","direction","network","initiationMsgId","clearingMsgId","endToEndId","amountCents","currency","status","settlement","reason","createdAt"],"additionalProperties":{}}},"page":{"type":"object","properties":{"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hasMore":{"type":"boolean"},"nextOffset":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["limit","offset","hasMore","nextOffset"],"additionalProperties":false}},"required":["object","data","page"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/payments/wire-instructions/{id}":{"get":{"operationId":"get_payments_wireInstructions_ById","summary":"A single wire instruction (real initiation artifact)","tags":["CNXTPayMeNTx payments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"wire_instruction"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"direction":{"type":"string"},"network":{"type":"string"},"initiationMsgId":{"type":"string"},"clearingMsgId":{"anyOf":[{"type":"string"},{"type":"null"}]},"endToEndId":{"type":"string"},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"status":{"type":"string"},"settlement":{"type":"string"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["object","id","direction","network","initiationMsgId","clearingMsgId","endToEndId","amountCents","currency","status","settlement","reason","createdAt"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/pos/registers":{"get":{"operationId":"get_pos_registers","summary":"Your CNXTSaLex registers","tags":["CNXTSaLex point-of-sale"],"parameters":[{"name":"limit","in":"query","required":false,"description":"Page size (1–100, default 20).","schema":{"type":"integer"}},{"name":"offset","in":"query","required":false,"description":"Zero-based offset into the collection.","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"pos_register"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"merchantCategory":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string"},"createdAt":{"type":"string"}},"required":["object","id","name","location","merchantCategory","status","createdAt"],"additionalProperties":{}}},"page":{"type":"object","properties":{"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hasMore":{"type":"boolean"},"nextOffset":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["limit","offset","hasMore","nextOffset"],"additionalProperties":false}},"required":["object","data","page"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]},"post":{"operationId":"post_pos_registers","summary":"Open a register","tags":["CNXTSaLex point-of-sale"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"location":{"type":"string","maxLength":200},"merchantCategory":{"anyOf":[{"type":"string","minLength":1,"maxLength":80},{"type":"null"}]}},"required":["name"]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"pos_register"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"merchantCategory":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string"},"createdAt":{"type":"string"}},"required":["object","id","name","location","merchantCategory","status","createdAt"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Open a register. Requires an API key with a write grant."}},"/api/v1/pos/registers/{id}":{"patch":{"operationId":"patch_pos_registers_ById","summary":"Open / close a register, or set its merchant category","tags":["CNXTSaLex point-of-sale"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"status":{"type":"string","enum":["open","closed"]},"merchantCategory":{"anyOf":[{"type":"string","minLength":1,"maxLength":80},{"type":"null"}]}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"pos_register"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"merchantCategory":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string"},"createdAt":{"type":"string"}},"required":["object","id","name","location","merchantCategory","status","createdAt"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Open / close a register, or set its merchant category. Requires an API key with a write grant."}},"/api/v1/pos/merchant-categories":{"get":{"operationId":"get_pos_merchantCategories","summary":"Card-network merchant categories a register can declare","tags":["CNXTSaLex point-of-sale"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"pos_merchant_categories"},"categories":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"mcc":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","label","mcc"],"additionalProperties":{}}}},"required":["object","categories"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/pos/sales":{"get":{"operationId":"get_pos_sales","summary":"Your sales (optional ?registerId=)","tags":["CNXTSaLex point-of-sale"],"parameters":[{"name":"limit","in":"query","required":false,"description":"Page size (1–100, default 20).","schema":{"type":"integer"}},{"name":"offset","in":"query","required":false,"description":"Zero-based offset into the collection.","schema":{"type":"integer"}},{"name":"registerId","in":"query","required":false,"description":"Filter to one register.","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"pos_sale"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"registerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string"},"subtotalCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"taxCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"totalCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"tenderedCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"iso20022MsgId":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"items":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"pos_sale_item"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"saleId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"sku":{"anyOf":[{"type":"string"},{"type":"null"}]},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unitPriceCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lineTotalCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["object","id","saleId","name","sku","quantity","unitPriceCents","lineTotalCents"],"additionalProperties":{}}},"tenders":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"pos_tender"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"saleId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"method":{"type":"string"},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"paymentIntentId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"status":{"type":"string"},"card":{"anyOf":[{"type":"object","properties":{"last4":{"type":"string"},"entryMode":{"type":"string"},"authorizationStatus":{"type":"string"}},"required":["last4","entryMode","authorizationStatus"],"additionalProperties":{}},{"type":"null"}]}},"required":["object","id","saleId","method","amountCents","currency","paymentIntentId","status","card"],"additionalProperties":{}}}},"required":["object","id","registerId","status","subtotalCents","taxCents","totalCents","tenderedCents","currency","iso20022MsgId","createdAt"],"additionalProperties":{}}},"page":{"type":"object","properties":{"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hasMore":{"type":"boolean"},"nextOffset":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["limit","offset","hasMore","nextOffset"],"additionalProperties":false}},"required":["object","data","page"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]},"post":{"operationId":"post_pos_sales","summary":"Start a sale on a register","tags":["CNXTSaLex point-of-sale"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"registerId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3},"memo":{"type":"string","maxLength":280}},"required":["registerId"]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"pos_sale"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"registerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string"},"subtotalCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"taxCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"totalCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"tenderedCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"iso20022MsgId":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"items":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"pos_sale_item"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"saleId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"sku":{"anyOf":[{"type":"string"},{"type":"null"}]},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unitPriceCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lineTotalCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["object","id","saleId","name","sku","quantity","unitPriceCents","lineTotalCents"],"additionalProperties":{}}},"tenders":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"pos_tender"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"saleId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"method":{"type":"string"},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"paymentIntentId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"status":{"type":"string"},"card":{"anyOf":[{"type":"object","properties":{"last4":{"type":"string"},"entryMode":{"type":"string"},"authorizationStatus":{"type":"string"}},"required":["last4","entryMode","authorizationStatus"],"additionalProperties":{}},{"type":"null"}]}},"required":["object","id","saleId","method","amountCents","currency","paymentIntentId","status","card"],"additionalProperties":{}}}},"required":["object","id","registerId","status","subtotalCents","taxCents","totalCents","tenderedCents","currency","iso20022MsgId","createdAt"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Start a sale on a register. Requires an API key with a write grant."}},"/api/v1/pos/sales/{id}":{"get":{"operationId":"get_pos_sales_ById","summary":"A single sale with items and tenders","tags":["CNXTSaLex point-of-sale"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"pos_sale"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"registerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string"},"subtotalCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"taxCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"totalCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"tenderedCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"iso20022MsgId":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"items":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"pos_sale_item"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"saleId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"sku":{"anyOf":[{"type":"string"},{"type":"null"}]},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unitPriceCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lineTotalCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["object","id","saleId","name","sku","quantity","unitPriceCents","lineTotalCents"],"additionalProperties":{}}},"tenders":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"pos_tender"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"saleId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"method":{"type":"string"},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"paymentIntentId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"status":{"type":"string"},"card":{"anyOf":[{"type":"object","properties":{"last4":{"type":"string"},"entryMode":{"type":"string"},"authorizationStatus":{"type":"string"}},"required":["last4","entryMode","authorizationStatus"],"additionalProperties":{}},{"type":"null"}]}},"required":["object","id","saleId","method","amountCents","currency","paymentIntentId","status","card"],"additionalProperties":{}}}},"required":["object","id","registerId","status","subtotalCents","taxCents","totalCents","tenderedCents","currency","iso20022MsgId","createdAt"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/pos/sales/{id}/items":{"post":{"operationId":"post_pos_sales_ById_items","summary":"Add a line item to an open sale","tags":["CNXTSaLex point-of-sale"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"sku":{"type":"string","maxLength":120},"quantity":{"type":"integer","exclusiveMinimum":0,"maximum":100000},"unitPriceCents":{"type":"integer","minimum":0,"maximum":9000000000000000},"taxBps":{"type":"integer","minimum":0,"maximum":100000}},"required":["name","quantity","unitPriceCents"]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"pos_item_result"},"item":{"type":"object","properties":{"object":{"type":"string","const":"pos_sale_item"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"saleId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"sku":{"anyOf":[{"type":"string"},{"type":"null"}]},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unitPriceCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lineTotalCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["object","id","saleId","name","sku","quantity","unitPriceCents","lineTotalCents"],"additionalProperties":{}},"sale":{"type":"object","properties":{"object":{"type":"string","const":"pos_sale"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"registerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string"},"subtotalCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"taxCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"totalCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"tenderedCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"iso20022MsgId":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"items":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"pos_sale_item"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"saleId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"sku":{"anyOf":[{"type":"string"},{"type":"null"}]},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unitPriceCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lineTotalCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["object","id","saleId","name","sku","quantity","unitPriceCents","lineTotalCents"],"additionalProperties":{}}},"tenders":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"pos_tender"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"saleId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"method":{"type":"string"},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"paymentIntentId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"status":{"type":"string"},"card":{"anyOf":[{"type":"object","properties":{"last4":{"type":"string"},"entryMode":{"type":"string"},"authorizationStatus":{"type":"string"}},"required":["last4","entryMode","authorizationStatus"],"additionalProperties":{}},{"type":"null"}]}},"required":["object","id","saleId","method","amountCents","currency","paymentIntentId","status","card"],"additionalProperties":{}}}},"required":["object","id","registerId","status","subtotalCents","taxCents","totalCents","tenderedCents","currency","iso20022MsgId","createdAt"],"additionalProperties":{}}},"required":["object","item","sale"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Add a line item to an open sale. Requires an API key with a write grant."}},"/api/v1/pos/sales/{id}/void":{"post":{"operationId":"post_pos_sales_ById_void","summary":"Void an unsettled sale","tags":["CNXTSaLex point-of-sale"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"pos_sale"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"registerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string"},"subtotalCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"taxCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"totalCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"tenderedCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"iso20022MsgId":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"items":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"pos_sale_item"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"saleId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"sku":{"anyOf":[{"type":"string"},{"type":"null"}]},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unitPriceCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lineTotalCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["object","id","saleId","name","sku","quantity","unitPriceCents","lineTotalCents"],"additionalProperties":{}}},"tenders":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"pos_tender"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"saleId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"method":{"type":"string"},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"paymentIntentId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"status":{"type":"string"},"card":{"anyOf":[{"type":"object","properties":{"last4":{"type":"string"},"entryMode":{"type":"string"},"authorizationStatus":{"type":"string"}},"required":["last4","entryMode","authorizationStatus"],"additionalProperties":{}},{"type":"null"}]}},"required":["object","id","saleId","method","amountCents","currency","paymentIntentId","status","card"],"additionalProperties":{}}}},"required":["object","id","registerId","status","subtotalCents","taxCents","totalCents","tenderedCents","currency","iso20022MsgId","createdAt"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Void an unsettled sale. Requires an API key with a write grant."}},"/api/v1/pos/sales/{id}/tenders":{"post":{"operationId":"post_pos_sales_ById_tenders","summary":"Add a tender (native_card holds a keyed CNXTCaRD; others settle via CNXTPayMeNTx; cash is attested)","tags":["CNXTSaLex point-of-sale"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"method":{"type":"string","enum":["wallet","card","desk","chain","wire","cash","native_card"]},"amountCents":{"type":"integer","exclusiveMinimum":0,"maximum":9000000000000000},"currency":{"type":"string","minLength":3,"maxLength":3},"payerAddress":{"type":"string","minLength":1,"maxLength":300},"counterparty":{"type":"object","properties":{"name":{"type":"string","maxLength":140},"agent":{"type":"string","maxLength":34},"account":{"type":"string","maxLength":64},"routingNumber":{"type":"string","maxLength":20}}},"card":{"type":"object","properties":{"number":{"type":"string","maxLength":40},"expMonth":{"type":"integer","minimum":1,"maximum":12},"expYear":{"type":"integer","minimum":0,"maximum":2100},"cvv":{"type":"string","pattern":"^\\d{3,4}$"}},"required":["number","expMonth","expYear","cvv"]},"idempotencyKey":{"type":"string","minLength":1,"maxLength":120}},"required":["method","amountCents"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"pos_tender_result"},"tender":{"type":"object","properties":{"object":{"type":"string","const":"pos_tender"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"saleId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"method":{"type":"string"},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"paymentIntentId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"status":{"type":"string"},"card":{"anyOf":[{"type":"object","properties":{"last4":{"type":"string"},"entryMode":{"type":"string"},"authorizationStatus":{"type":"string"}},"required":["last4","entryMode","authorizationStatus"],"additionalProperties":{}},{"type":"null"}]}},"required":["object","id","saleId","method","amountCents","currency","paymentIntentId","status","card"],"additionalProperties":{}},"sale":{"type":"object","properties":{"object":{"type":"string","const":"pos_sale"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"registerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string"},"subtotalCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"taxCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"totalCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"tenderedCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"iso20022MsgId":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"items":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"pos_sale_item"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"saleId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"sku":{"anyOf":[{"type":"string"},{"type":"null"}]},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unitPriceCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lineTotalCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["object","id","saleId","name","sku","quantity","unitPriceCents","lineTotalCents"],"additionalProperties":{}}},"tenders":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"pos_tender"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"saleId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"method":{"type":"string"},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"paymentIntentId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"status":{"type":"string"},"card":{"anyOf":[{"type":"object","properties":{"last4":{"type":"string"},"entryMode":{"type":"string"},"authorizationStatus":{"type":"string"}},"required":["last4","entryMode","authorizationStatus"],"additionalProperties":{}},{"type":"null"}]}},"required":["object","id","saleId","method","amountCents","currency","paymentIntentId","status","card"],"additionalProperties":{}}}},"required":["object","id","registerId","status","subtotalCents","taxCents","totalCents","tenderedCents","currency","iso20022MsgId","createdAt"],"additionalProperties":{}},"payment":{"anyOf":[{"type":"object","properties":{"object":{"type":"string","const":"payment_result"},"intent":{"type":"object","properties":{"object":{"type":"string","const":"payment_intent"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"direction":{"type":"string"},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"payerAddress":{"type":"string"},"payeeAddress":{"type":"string"},"rail":{"type":"string"},"status":{"type":"string"},"lifecycle":{"anyOf":[{"type":"string"},{"type":"null"}]},"iso20022MsgId":{"type":"string"},"endToEndId":{"type":"string"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["object","id","direction","amountCents","currency","payerAddress","payeeAddress","rail","status","lifecycle","iso20022MsgId","endToEndId","reason","createdAt"],"additionalProperties":{}},"rail":{"type":"string"},"reason":{"type":"string"},"checkoutUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"wire":{"anyOf":[{"type":"object","properties":{"object":{"type":"string","const":"wire_instruction"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"direction":{"type":"string"},"network":{"type":"string"},"initiationMsgId":{"type":"string"},"clearingMsgId":{"anyOf":[{"type":"string"},{"type":"null"}]},"endToEndId":{"type":"string"},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"status":{"type":"string"},"settlement":{"type":"string"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["object","id","direction","network","initiationMsgId","clearingMsgId","endToEndId","amountCents","currency","status","settlement","reason","createdAt"],"additionalProperties":{}},{"type":"null"}]},"transferId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["object","intent","rail","reason","checkoutUrl","wire","transferId"],"additionalProperties":{}},{"type":"null"}]}},"required":["object","tender","sale","payment"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"pos_tender_result"},"tender":{"type":"object","properties":{"object":{"type":"string","const":"pos_tender"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"saleId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"method":{"type":"string"},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"paymentIntentId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"status":{"type":"string"},"card":{"anyOf":[{"type":"object","properties":{"last4":{"type":"string"},"entryMode":{"type":"string"},"authorizationStatus":{"type":"string"}},"required":["last4","entryMode","authorizationStatus"],"additionalProperties":{}},{"type":"null"}]}},"required":["object","id","saleId","method","amountCents","currency","paymentIntentId","status","card"],"additionalProperties":{}},"sale":{"type":"object","properties":{"object":{"type":"string","const":"pos_sale"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"registerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string"},"subtotalCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"taxCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"totalCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"tenderedCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"iso20022MsgId":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"items":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"pos_sale_item"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"saleId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"sku":{"anyOf":[{"type":"string"},{"type":"null"}]},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unitPriceCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lineTotalCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["object","id","saleId","name","sku","quantity","unitPriceCents","lineTotalCents"],"additionalProperties":{}}},"tenders":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"pos_tender"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"saleId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"method":{"type":"string"},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"paymentIntentId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"status":{"type":"string"},"card":{"anyOf":[{"type":"object","properties":{"last4":{"type":"string"},"entryMode":{"type":"string"},"authorizationStatus":{"type":"string"}},"required":["last4","entryMode","authorizationStatus"],"additionalProperties":{}},{"type":"null"}]}},"required":["object","id","saleId","method","amountCents","currency","paymentIntentId","status","card"],"additionalProperties":{}}}},"required":["object","id","registerId","status","subtotalCents","taxCents","totalCents","tenderedCents","currency","iso20022MsgId","createdAt"],"additionalProperties":{}},"payment":{"anyOf":[{"type":"object","properties":{"object":{"type":"string","const":"payment_result"},"intent":{"type":"object","properties":{"object":{"type":"string","const":"payment_intent"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"direction":{"type":"string"},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"payerAddress":{"type":"string"},"payeeAddress":{"type":"string"},"rail":{"type":"string"},"status":{"type":"string"},"lifecycle":{"anyOf":[{"type":"string"},{"type":"null"}]},"iso20022MsgId":{"type":"string"},"endToEndId":{"type":"string"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["object","id","direction","amountCents","currency","payerAddress","payeeAddress","rail","status","lifecycle","iso20022MsgId","endToEndId","reason","createdAt"],"additionalProperties":{}},"rail":{"type":"string"},"reason":{"type":"string"},"checkoutUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"wire":{"anyOf":[{"type":"object","properties":{"object":{"type":"string","const":"wire_instruction"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"direction":{"type":"string"},"network":{"type":"string"},"initiationMsgId":{"type":"string"},"clearingMsgId":{"anyOf":[{"type":"string"},{"type":"null"}]},"endToEndId":{"type":"string"},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"status":{"type":"string"},"settlement":{"type":"string"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["object","id","direction","network","initiationMsgId","clearingMsgId","endToEndId","amountCents","currency","status","settlement","reason","createdAt"],"additionalProperties":{}},{"type":"null"}]},"transferId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["object","intent","rail","reason","checkoutUrl","wire","transferId"],"additionalProperties":{}},{"type":"null"}]}},"required":["object","tender","sale","payment"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"403":{"description":"Approval required: this key's payments need the account owner's OK. Nothing moved. Answered when the key's \"Payments need my OK\" setting is on: code approval_required, nothing_moved: true, and a payment_approval (id, summary, amount, destination, expiresAt). Also the other permission refusals.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"pos_tender","amount":"stated"},"description":"Add a tender (native_card holds a keyed CNXTCaRD; others settle via CNXTPayMeNTx; cash is attested). Requires an API key with a write grant. Moves money: while the key's \"Payments need my OK\" setting is on, it answers 403 approval_required and nothing moves until the account owner approves it in the signed-in console."}},"/api/v1/pos/sales/{id}/card-requests":{"post":{"operationId":"post_pos_sales_ById_cardRequests","summary":"Ask the buyer to approve a CNXTCaRD payment in their app (QR / link)","tags":["CNXTSaLex point-of-sale"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"amountCents":{"type":"integer","exclusiveMinimum":0,"maximum":9000000000000000}}}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"pos_card_request_created"},"request":{"type":"object","properties":{"object":{"type":"string","const":"pos_card_request"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"saleId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"status":{"type":"string","enum":["pending","approved","refused","canceled","expired"]},"lastDeclineCode":{"anyOf":[{"type":"string","enum":["card_not_recognized","incorrect_details","too_many_attempts","card_not_active","card_expired","insufficient_funds","over_card_limit","merchant_category_blocked","declined_by_account_policy","own_card","cannot_pay_here"]},{"type":"null"}]},"expiresAt":{"type":"string"},"createdAt":{"type":"string"},"resolvedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","saleId","amountCents","currency","status","lastDeclineCode","expiresAt","createdAt","resolvedAt"],"additionalProperties":{}},"token":{"type":"string"},"approvalUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","request","token","approvalUrl"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Ask the buyer to approve a CNXTCaRD payment in their app (QR / link). Requires an API key with a write grant."}},"/api/v1/pos/sales/{id}/card-requests/{requestId}":{"get":{"operationId":"get_pos_sales_ById_cardRequests_ByRequestId","summary":"A buyer-approval request's status","tags":["CNXTSaLex point-of-sale"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"requestId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"pos_card_request"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"saleId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"status":{"type":"string","enum":["pending","approved","refused","canceled","expired"]},"lastDeclineCode":{"anyOf":[{"type":"string","enum":["card_not_recognized","incorrect_details","too_many_attempts","card_not_active","card_expired","insufficient_funds","over_card_limit","merchant_category_blocked","declined_by_account_policy","own_card","cannot_pay_here"]},{"type":"null"}]},"expiresAt":{"type":"string"},"createdAt":{"type":"string"},"resolvedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","saleId","amountCents","currency","status","lastDeclineCode","expiresAt","createdAt","resolvedAt"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/pos/sales/{id}/card-requests/{requestId}/cancel":{"post":{"operationId":"post_pos_sales_ById_cardRequests_ByRequestId_cancel","summary":"Cancel a pending buyer-approval request","tags":["CNXTSaLex point-of-sale"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"requestId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"pos_card_request"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"saleId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"status":{"type":"string","enum":["pending","approved","refused","canceled","expired"]},"lastDeclineCode":{"anyOf":[{"type":"string","enum":["card_not_recognized","incorrect_details","too_many_attempts","card_not_active","card_expired","insufficient_funds","over_card_limit","merchant_category_blocked","declined_by_account_policy","own_card","cannot_pay_here"]},{"type":"null"}]},"expiresAt":{"type":"string"},"createdAt":{"type":"string"},"resolvedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","saleId","amountCents","currency","status","lastDeclineCode","expiresAt","createdAt","resolvedAt"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Cancel a pending buyer-approval request. Requires an API key with a write grant."}},"/api/v1/pos/sales/{id}/card-holds":{"post":{"operationId":"post_pos_sales_ById_cardHolds","summary":"Capture (settled) or release (voided) the sale's CNXTCaRD holds","tags":["CNXTSaLex point-of-sale"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"pos_card_hold_result"},"captured":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"released":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sale":{"type":"object","properties":{"object":{"type":"string","const":"pos_sale"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"registerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string"},"subtotalCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"taxCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"totalCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"tenderedCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"iso20022MsgId":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"items":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"pos_sale_item"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"saleId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"sku":{"anyOf":[{"type":"string"},{"type":"null"}]},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unitPriceCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lineTotalCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["object","id","saleId","name","sku","quantity","unitPriceCents","lineTotalCents"],"additionalProperties":{}}},"tenders":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"pos_tender"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"saleId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"method":{"type":"string"},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"paymentIntentId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"status":{"type":"string"},"card":{"anyOf":[{"type":"object","properties":{"last4":{"type":"string"},"entryMode":{"type":"string"},"authorizationStatus":{"type":"string"}},"required":["last4","entryMode","authorizationStatus"],"additionalProperties":{}},{"type":"null"}]}},"required":["object","id","saleId","method","amountCents","currency","paymentIntentId","status","card"],"additionalProperties":{}}}},"required":["object","id","registerId","status","subtotalCents","taxCents","totalCents","tenderedCents","currency","iso20022MsgId","createdAt"],"additionalProperties":{}}},"required":["object","captured","released","failed","sale"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"403":{"description":"Approval required: this key's payments need the account owner's OK. Nothing moved. Answered when the key's \"Payments need my OK\" setting is on: code approval_required, nothing_moved: true, and a payment_approval (id, summary, amount, destination, expiresAt). Also the other permission refusals.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"pos_card_holds","amount":"priced"},"description":"Capture (settled) or release (voided) the sale's CNXTCaRD holds. Requires an API key with a write grant. Moves money: while the key's \"Payments need my OK\" setting is on, it answers 403 approval_required and nothing moves until the account owner approves it in the signed-in console."}},"/api/v1/store-cards":{"get":{"operationId":"get_storeCards","summary":"Your CNXTStoreCardx store cards","tags":["CNXTStoreCardx store card"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"store_card"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"userId":{"type":"string"},"address":{"type":"string"},"label":{"type":"string"},"balanceCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rewardCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"status":{"type":"string"},"createdAt":{"type":"string"}},"required":["object","id","userId","address","label","balanceCents","rewardCents","currency","status","createdAt"],"additionalProperties":{}}},"page":{"type":"object","properties":{"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hasMore":{"type":"boolean"},"nextOffset":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["limit","offset","hasMore","nextOffset"],"additionalProperties":false}},"required":["object","data","page"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]},"post":{"operationId":"post_storeCards","summary":"Open a store card (idempotent per owner+label)","tags":["CNXTStoreCardx store card"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":120},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["label"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"store_card"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"userId":{"type":"string"},"address":{"type":"string"},"label":{"type":"string"},"balanceCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rewardCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"status":{"type":"string"},"createdAt":{"type":"string"}},"required":["object","id","userId","address","label","balanceCents","rewardCents","currency","status","createdAt"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"store_card"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"userId":{"type":"string"},"address":{"type":"string"},"label":{"type":"string"},"balanceCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rewardCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"status":{"type":"string"},"createdAt":{"type":"string"}},"required":["object","id","userId","address","label","balanceCents","rewardCents","currency","status","createdAt"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Open a store card (idempotent per owner+label). Requires an API key with a write grant."}},"/api/v1/store-cards/{id}":{"get":{"operationId":"get_storeCards_ById","summary":"Balance, activity, and rewards for one owned store card","tags":["CNXTStoreCardx store card"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"limit","in":"query","required":false,"description":"Max activity rows to return (default 50, max 200).","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"store_card_overview"},"card":{"type":"object","properties":{"object":{"type":"string","const":"store_card"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"userId":{"type":"string"},"address":{"type":"string"},"label":{"type":"string"},"balanceCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rewardCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"status":{"type":"string"},"createdAt":{"type":"string"}},"required":["object","id","userId","address","label","balanceCents","rewardCents","currency","status","createdAt"],"additionalProperties":{}},"activity":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"store_card_txn"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cardId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"kind":{"type":"string"},"status":{"type":"string"},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"balanceDeltaCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rewardDeltaCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"counterparty":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["object","id","cardId","kind","status","amountCents","balanceDeltaCents","rewardDeltaCents","currency","counterparty","createdAt"],"additionalProperties":{}}},"rewards":{"type":"object","properties":{"earnedCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"balanceCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rate":{"type":"object","properties":{"bps":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"label":{"type":"string"}},"required":["bps","label"],"additionalProperties":{}}},"required":["earnedCents","balanceCents","rate"],"additionalProperties":{}}},"required":["object","card","activity","rewards"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]},"patch":{"operationId":"patch_storeCards_ById","summary":"Freeze or unfreeze a store card","tags":["CNXTStoreCardx store card"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"status":{"type":"string","enum":["active","frozen"]}},"required":["status"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"store_card"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"userId":{"type":"string"},"address":{"type":"string"},"label":{"type":"string"},"balanceCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rewardCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"status":{"type":"string"},"createdAt":{"type":"string"}},"required":["object","id","userId","address","label","balanceCents","rewardCents","currency","status","createdAt"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Freeze or unfreeze a store card. Requires an API key with a write grant."}},"/api/v1/store-cards/{id}/reload":{"post":{"operationId":"post_storeCards_ById_reload","summary":"Reload a store card from your wallet (atomic, idempotent)","tags":["CNXTStoreCardx store card"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"amountCents":{"type":"integer","exclusiveMinimum":0,"maximum":9000000000000000},"currency":{"type":"string","minLength":3,"maxLength":3},"idempotencyKey":{"type":"string","minLength":1,"maxLength":120}},"required":["amountCents","idempotencyKey"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"store_card_reload_result"},"card":{"type":"object","properties":{"object":{"type":"string","const":"store_card"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"userId":{"type":"string"},"address":{"type":"string"},"label":{"type":"string"},"balanceCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rewardCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"status":{"type":"string"},"createdAt":{"type":"string"}},"required":["object","id","userId","address","label","balanceCents","rewardCents","currency","status","createdAt"],"additionalProperties":{}},"txn":{"type":"object","properties":{"object":{"type":"string","const":"store_card_txn"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cardId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"kind":{"type":"string"},"status":{"type":"string"},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"balanceDeltaCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rewardDeltaCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"counterparty":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["object","id","cardId","kind","status","amountCents","balanceDeltaCents","rewardDeltaCents","currency","counterparty","createdAt"],"additionalProperties":{}},"replayed":{"type":"boolean"}},"required":["object","card","txn","replayed"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"store_card_reload_result"},"card":{"type":"object","properties":{"object":{"type":"string","const":"store_card"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"userId":{"type":"string"},"address":{"type":"string"},"label":{"type":"string"},"balanceCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rewardCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"status":{"type":"string"},"createdAt":{"type":"string"}},"required":["object","id","userId","address","label","balanceCents","rewardCents","currency","status","createdAt"],"additionalProperties":{}},"txn":{"type":"object","properties":{"object":{"type":"string","const":"store_card_txn"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cardId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"kind":{"type":"string"},"status":{"type":"string"},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"balanceDeltaCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rewardDeltaCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"counterparty":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["object","id","cardId","kind","status","amountCents","balanceDeltaCents","rewardDeltaCents","currency","counterparty","createdAt"],"additionalProperties":{}},"replayed":{"type":"boolean"}},"required":["object","card","txn","replayed"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"403":{"description":"Approval required: this key's payments need the account owner's OK. Nothing moved. Answered when the key's \"Payments need my OK\" setting is on: code approval_required, nothing_moved: true, and a payment_approval (id, summary, amount, destination, expiresAt). Also the other permission refusals.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"store_card_reload","amount":"stated"},"description":"Reload a store card from your wallet (atomic, idempotent). Requires an API key with a write grant. Moves money: while the key's \"Payments need my OK\" setting is on, it answers 403 approval_required and nothing moves until the account owner approves it in the signed-in console."}},"/api/v1/store-cards/{id}/spend":{"post":{"operationId":"post_storeCards_ById_spend","summary":"First-party closed-loop spend + exactly-once 5% reward (idempotent)","tags":["CNXTStoreCardx store card"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"amountCents":{"type":"integer","exclusiveMinimum":0,"maximum":9000000000000000},"currency":{"type":"string","minLength":3,"maxLength":3},"counterparty":{"type":"string","maxLength":200},"memo":{"type":"string","maxLength":280},"idempotencyKey":{"type":"string","minLength":1,"maxLength":120}},"required":["amountCents","idempotencyKey"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"store_card_spend_result"},"card":{"type":"object","properties":{"object":{"type":"string","const":"store_card"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"userId":{"type":"string"},"address":{"type":"string"},"label":{"type":"string"},"balanceCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rewardCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"status":{"type":"string"},"createdAt":{"type":"string"}},"required":["object","id","userId","address","label","balanceCents","rewardCents","currency","status","createdAt"],"additionalProperties":{}},"spend":{"type":"object","properties":{"object":{"type":"string","const":"store_card_txn"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cardId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"kind":{"type":"string"},"status":{"type":"string"},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"balanceDeltaCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rewardDeltaCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"counterparty":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["object","id","cardId","kind","status","amountCents","balanceDeltaCents","rewardDeltaCents","currency","counterparty","createdAt"],"additionalProperties":{}},"reward":{"anyOf":[{"type":"object","properties":{"object":{"type":"string","const":"store_card_txn"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cardId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"kind":{"type":"string"},"status":{"type":"string"},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"balanceDeltaCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rewardDeltaCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"counterparty":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["object","id","cardId","kind","status","amountCents","balanceDeltaCents","rewardDeltaCents","currency","counterparty","createdAt"],"additionalProperties":{}},{"type":"null"}]},"replayed":{"type":"boolean"}},"required":["object","card","spend","reward","replayed"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"store_card_spend_result"},"card":{"type":"object","properties":{"object":{"type":"string","const":"store_card"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"userId":{"type":"string"},"address":{"type":"string"},"label":{"type":"string"},"balanceCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rewardCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"status":{"type":"string"},"createdAt":{"type":"string"}},"required":["object","id","userId","address","label","balanceCents","rewardCents","currency","status","createdAt"],"additionalProperties":{}},"spend":{"type":"object","properties":{"object":{"type":"string","const":"store_card_txn"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cardId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"kind":{"type":"string"},"status":{"type":"string"},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"balanceDeltaCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rewardDeltaCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"counterparty":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["object","id","cardId","kind","status","amountCents","balanceDeltaCents","rewardDeltaCents","currency","counterparty","createdAt"],"additionalProperties":{}},"reward":{"anyOf":[{"type":"object","properties":{"object":{"type":"string","const":"store_card_txn"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cardId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"kind":{"type":"string"},"status":{"type":"string"},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"balanceDeltaCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rewardDeltaCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"counterparty":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["object","id","cardId","kind","status","amountCents","balanceDeltaCents","rewardDeltaCents","currency","counterparty","createdAt"],"additionalProperties":{}},{"type":"null"}]},"replayed":{"type":"boolean"}},"required":["object","card","spend","reward","replayed"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"403":{"description":"Approval required: this key's payments need the account owner's OK. Nothing moved. Answered when the key's \"Payments need my OK\" setting is on: code approval_required, nothing_moved: true, and a payment_approval (id, summary, amount, destination, expiresAt). Also the other permission refusals.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"store_card_spend","amount":"stated"},"description":"First-party closed-loop spend + exactly-once 5% reward (idempotent). Requires an API key with a write grant. Moves money: while the key's \"Payments need my OK\" setting is on, it answers 403 approval_required and nothing moves until the account owner approves it in the signed-in console."}},"/api/v1/store-cards/{id}/policy-log":{"get":{"operationId":"get_storeCards_ById_policyLog","summary":"Durable deterministic policy-decision log (allow + deny) for one card","tags":["CNXTStoreCardx store card"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"limit","in":"query","required":false,"description":"Max log rows to return (default 50, max 200).","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"store_card_policy_log_row"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cardId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"action":{"type":"string"},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"outcome":{"type":"string"},"reasonCode":{"type":"string"},"rules":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"passed":{"type":"boolean"},"detail":{"type":"string"}},"required":["name","passed","detail"],"additionalProperties":{}}},"riskScore":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"riskLevel":{"anyOf":[{"type":"string"},{"type":"null"}]},"riskReasons":{"anyOf":[{"type":"string"},{"type":"null"}]},"riskEngine":{"anyOf":[{"type":"string"},{"type":"null"}]},"idempotencyKey":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["object","id","cardId","action","amountCents","currency","outcome","reasonCode","rules","riskScore","riskLevel","riskReasons","riskEngine","idempotencyKey","createdAt"],"additionalProperties":{}}},"page":{"type":"object","properties":{"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hasMore":{"type":"boolean"},"nextOffset":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["limit","offset","hasMore","nextOffset"],"additionalProperties":false}},"required":["object","data","page"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/orgs":{"get":{"operationId":"get_orgs","summary":"Org accounts your account belongs to that turned on API read access, each with its own treasury balance (never summed)","tags":["Org accounts (read-only)"],"parameters":[{"name":"limit","in":"query","required":false,"description":"Page size (1–100, default 20).","schema":{"type":"integer"}},{"name":"offset","in":"query","required":false,"description":"Zero-based offset into the collection.","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"org_account"},"handle":{"type":"string"},"name":{"type":"string"},"kind":{"type":"string","enum":["business","enterprise"]},"address":{"type":"string"},"role":{"type":"string","enum":["owner","admin","finance","approver","buyer","viewer"]},"treasury":{"anyOf":[{"type":"object","properties":{"balanceCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"grantedCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["balanceCents","grantedCents","currency"],"additionalProperties":false},{"type":"null"}]}},"required":["object","handle","name","kind","address","role","treasury"],"additionalProperties":false}},"page":{"type":"object","properties":{"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hasMore":{"type":"boolean"},"nextOffset":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["limit","offset","hasMore","nextOffset"],"additionalProperties":false}},"required":["object","data","page"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/orgs/{handle}":{"get":{"operationId":"get_orgs_ByHandle","summary":"One org: your role, limits and spend, the spend policy, and the org's own treasury balance","tags":["Org accounts (read-only)"],"parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"org_account_summary"},"handle":{"type":"string"},"name":{"type":"string"},"kind":{"type":"string","enum":["business","enterprise"]},"address":{"type":"string"},"status":{"type":"string"},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"you":{"type":"object","properties":{"memberId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"role":{"type":"string","enum":["owner","admin","finance","approver","buyer","viewer"]},"limits":{"type":"object","properties":{"orderLimitCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"dailyLimitCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"monthlyLimitCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["orderLimitCents","dailyLimitCents","monthlyLimitCents"],"additionalProperties":false},"spent":{"type":"object","properties":{"todayCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"monthCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["todayCents","monthCents"],"additionalProperties":false}},"required":["memberId","role","limits","spent"],"additionalProperties":false},"policy":{"type":"object","properties":{"defaultOrderLimitCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"defaultDailyLimitCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"defaultMonthlyLimitCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"approvalThresholdCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"monthlyLimitCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"orgMonthSpentCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["defaultOrderLimitCents","defaultDailyLimitCents","defaultMonthlyLimitCents","approvalThresholdCents","monthlyLimitCents","orgMonthSpentCents"],"additionalProperties":false},"treasury":{"anyOf":[{"type":"object","properties":{"balanceCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"grantedCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["balanceCents","grantedCents","currency"],"additionalProperties":false},{"type":"null"}]},"counts":{"type":"object","properties":{"members":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pendingApprovals":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pendingInvites":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["members","pendingApprovals","pendingInvites"],"additionalProperties":false},"consoleCapabilities":{"type":"object","properties":{"pay":{"type":"boolean"},"withdraw":{"type":"boolean"},"approve":{"type":"boolean"},"manageSeats":{"type":"boolean"},"managePolicy":{"type":"boolean"},"readStatement":{"type":"boolean"},"readAudit":{"type":"boolean"}},"required":["pay","withdraw","approve","manageSeats","managePolicy","readStatement","readAudit"],"additionalProperties":false}},"required":["object","handle","name","kind","address","status","you","policy","treasury","counts","consoleCapabilities"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/orgs/{handle}/seats":{"get":{"operationId":"get_orgs_ByHandle_seats","summary":"The org's seats and limits as your role sees them (no names or emails)","tags":["Org accounts (read-only)"],"parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"org_seat"},"memberId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"role":{"type":"string","enum":["owner","admin","finance","approver","buyer","viewer"]},"isYou":{"type":"boolean"},"joinedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"seatLimits":{"anyOf":[{"type":"object","properties":{"orderLimitCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"dailyLimitCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"monthlyLimitCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["orderLimitCents","dailyLimitCents","monthlyLimitCents"],"additionalProperties":false},{"type":"null"}]},"effectiveLimits":{"anyOf":[{"type":"object","properties":{"orderLimitCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"dailyLimitCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"monthlyLimitCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["orderLimitCents","dailyLimitCents","monthlyLimitCents"],"additionalProperties":false},{"type":"null"}]},"spent":{"anyOf":[{"type":"object","properties":{"todayCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"monthCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["todayCents","monthCents"],"additionalProperties":false},{"type":"null"}]}},"required":["object","memberId","role","isYou","seatLimits","effectiveLimits","spent"],"additionalProperties":false}}},"required":["object","data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/orgs/{handle}/statement":{"get":{"operationId":"get_orgs_ByHandle_statement","summary":"The org's treasury statement, newest first, paged like the console (?beforeId=&limit=1–200, default 50; buyers see their own payments)","tags":["Org accounts (read-only)"],"parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string"}},{"name":"beforeId","in":"query","required":false,"description":"Return entries older than this transfer id (from page.nextBeforeId).","schema":{"type":"integer"}},{"name":"limit","in":"query","required":false,"description":"Page size (1–200, default 50).","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"org_statement_entry"},"transferId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"settlementId":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string"},"lifecycle":{"anyOf":[{"type":"string"},{"type":"null"}]},"direction":{"type":"string","enum":["in","out"]},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"grantedCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"memo":{"anyOf":[{"type":"string"},{"type":"null"}]},"counterparty":{"type":"object","properties":{"address":{"anyOf":[{"type":"string"},{"type":"null"}]},"label":{"type":"string"}},"required":["address","label"],"additionalProperties":false},"member":{"anyOf":[{"type":"object","properties":{"memberId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"isYou":{"type":"boolean"}},"required":["memberId","isYou"],"additionalProperties":false},{"type":"null"}]}},"required":["object","transferId","settlementId","status","lifecycle","direction","amountCents","grantedCents","currency","memo","counterparty","member"],"additionalProperties":false}},"scope":{"type":"string","enum":["org","own"]},"page":{"type":"object","properties":{"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"beforeId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"nextBeforeId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"hasMore":{"type":"boolean"}},"required":["limit","beforeId","nextBeforeId","hasMore"],"additionalProperties":false}},"required":["object","data","scope","page"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/orgs/{handle}/approvals":{"get":{"operationId":"get_orgs_ByHandle_approvals","summary":"The org's held payments your role can see, newest 200 (?status=)","tags":["Org accounts (read-only)"],"parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"description":"Filter by status: pending, approved, denied, cancelled, expired.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"org_approval"},"approvalId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requester":{"anyOf":[{"type":"object","properties":{"memberId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"isYou":{"type":"boolean"}},"required":["memberId","isYou"],"additionalProperties":false},{"type":"null"}]},"isYours":{"type":"boolean"},"toAddress":{"anyOf":[{"type":"string"},{"type":"null"}]},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"memo":{"anyOf":[{"type":"string"},{"type":"null"}]},"reasons":{"type":"array","items":{"type":"string","enum":["over_threshold","restricted_payee"]}},"status":{"type":"string","enum":["pending","approved","denied","cancelled","expired"]},"decidedBy":{"anyOf":[{"type":"object","properties":{"memberId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"isYou":{"type":"boolean"}},"required":["memberId","isYou"],"additionalProperties":false},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"decisionNote":{"anyOf":[{"type":"string"},{"type":"null"}]},"executed":{"anyOf":[{"type":"object","properties":{"transferId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"settlementId":{"anyOf":[{"type":"string"},{"type":"null"}]},"executedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["transferId","settlementId"],"additionalProperties":false},{"type":"null"}]},"executionError":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","approvalId","requester","isYours","toAddress","amountCents","memo","reasons","status","decidedBy","decisionNote","executed","executionError"],"additionalProperties":false}},"page":{"type":"object","properties":{"window":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hasMore":{"type":"boolean"}},"required":["window","hasMore"],"additionalProperties":false}},"required":["object","data","page"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/catalog/version":{"get":{"operationId":"get_catalog_version","summary":"Current catalog version, total and per-kind counts (as in the feed manifest), and a changes cursor","tags":["Catalog sync & webhooks"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"catalog_version"},"version":{"type":"string"},"generatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"totalItems":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"kinds":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string"},"label":{"type":"string"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["kind","label","count"],"additionalProperties":false}},"changesCursor":{"type":"string"},"history":{"type":"object","properties":{"state":{"type":"string","enum":["complete","diffing","pending"]},"baseline":{"type":"boolean"},"completedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"added":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"changed":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"removed":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["state","baseline","completedAt","added","changed","removed"],"additionalProperties":false}},"required":["object","version","generatedAt","totalItems","kinds","changesCursor","history"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/catalog/items":{"get":{"operationId":"get_catalog_items","summary":"Walk every catalog item in a stable order, keyset pages (?cursor=&limit=1–1000, default 500): feed ids, listing-page prices and availability","tags":["Catalog sync & webhooks"],"parameters":[{"name":"cursor","in":"query","required":false,"description":"page.nextCursor from the previous page; omit for the first page.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Page size (1–1000, default 500).","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"catalogVersion":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"catalog_item"},"id":{"type":"string"},"kind":{"type":"string"},"edition":{"type":"boolean"},"title":{"type":"string"},"listingTitle":{"anyOf":[{"type":"string"},{"type":"null"}]},"path":{"type":"string"},"checkout":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"mintState":{"anyOf":[{"type":"string","enum":["unminted","minted","unknown"]},{"type":"null"}]},"availability":{"type":"string","enum":["in_stock","out_of_stock","unknown"]},"price":{"anyOf":[{"type":"object","properties":{"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","const":"USD"},"type":{"type":"string","enum":["one_time_mint_fee","fixed_price"]}},"required":["amountCents","currency","type"],"additionalProperties":false},{"type":"null"}]}},"required":["object","id","kind","edition","title","listingTitle","path","checkout","mintState","availability","price"],"additionalProperties":false}},"page":{"type":"object","properties":{"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}]},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]},"hasMore":{"type":"boolean"}},"required":["limit","cursor","nextCursor","hasMore"],"additionalProperties":false},"changesCursor":{"type":"string"}},"required":["object","catalogVersion","data","page"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/catalog/changes":{"get":{"operationId":"get_catalog_changes","summary":"What changed since a cursor: version diffs plus mints, sales and returns (?cursor=&limit=1–200); an expired or unknown cursor answers 410 resync_required","tags":["Catalog sync & webhooks"],"parameters":[{"name":"cursor","in":"query","required":true,"description":"changesCursor from the version call or the walk's first page, or page.nextCursor from the last changes page.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Page size (1–200, default 100).","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"catalogVersion":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"catalog_change"},"id":{"type":"string"},"itemId":{"type":"string"},"kind":{"type":"string"},"change":{"type":"string","enum":["added","changed","removed","minted","sold","returned","released"]},"source":{"type":"string","enum":["catalog_version","live"]},"catalogVersion":{"anyOf":[{"type":"string"},{"type":"null"}]},"occurredAt":{"type":"string"},"recordedAt":{"type":"string"},"item":{"anyOf":[{"type":"object","properties":{"object":{"type":"string","const":"catalog_item"},"id":{"type":"string"},"kind":{"type":"string"},"edition":{"type":"boolean"},"title":{"type":"string"},"listingTitle":{"anyOf":[{"type":"string"},{"type":"null"}]},"path":{"type":"string"},"checkout":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"mintState":{"anyOf":[{"type":"string","enum":["unminted","minted","unknown"]},{"type":"null"}]},"availability":{"type":"string","enum":["in_stock","out_of_stock","unknown"]},"price":{"anyOf":[{"type":"object","properties":{"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","const":"USD"},"type":{"type":"string","enum":["one_time_mint_fee","fixed_price"]}},"required":["amountCents","currency","type"],"additionalProperties":false},{"type":"null"}]}},"required":["object","id","kind","edition","title","listingTitle","path","checkout","mintState","availability","price"],"additionalProperties":false},{"type":"null"}]}},"required":["object","id","itemId","kind","change","source","catalogVersion","occurredAt","recordedAt","item"],"additionalProperties":false}},"page":{"type":"object","properties":{"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}]},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]},"hasMore":{"type":"boolean"}},"required":["limit","cursor","nextCursor","hasMore"],"additionalProperties":false}},"required":["object","catalogVersion","data","page"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/webhooks/event-types":{"get":{"operationId":"get_webhooks_eventTypes","summary":"The closed list of webhook event types and how deliveries are signed and retried","tags":["Catalog sync & webhooks"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["catalog.version.published","catalog.items.changed","payment_approval.requested","payment_approval.approved","payment_approval.denied","payment_approval.lapsed","agent_approval.requested","agent_approval.approved","agent_approval.denied","transfer.settled","payment.settled","org.statement.entry","record.changed"]},"audience":{"type":"string"},"description":{"type":"string"},"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["type","audience","description","data"],"additionalProperties":false}},"delivery":{"type":"object","properties":{"signatureHeader":{"type":"string"},"signatureScheme":{"type":"string"},"eventIdHeader":{"type":"string"},"eventTypeHeader":{"type":"string"},"replayWindowSeconds":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"retryDelaysMs":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"timeoutMs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxResponseBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pauseAfterFailingMs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"secretRotationOverlapMs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"outcomes":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["signatureHeader","signatureScheme","eventIdHeader","eventTypeHeader","replayWindowSeconds","maxAttempts","retryDelaysMs","timeoutMs","maxResponseBytes","pauseAfterFailingMs","secretRotationOverlapMs","outcomes"],"additionalProperties":false}},"required":["object","data","delivery"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/webhooks":{"get":{"operationId":"get_webhooks","summary":"This key's webhook endpoints","tags":["Catalog sync & webhooks"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"webhook_endpoint"},"id":{"type":"string"},"url":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"eventTypes":{"type":"array","items":{"type":"string","enum":["catalog.version.published","catalog.items.changed","payment_approval.requested","payment_approval.approved","payment_approval.denied","payment_approval.lapsed","agent_approval.requested","agent_approval.approved","agent_approval.denied","transfer.settled","payment.settled","org.statement.entry","record.changed"]}},"recordFamilies":{"anyOf":[{"type":"array","items":{"type":"string","enum":["org","isin","sec","cusip","fund"]}},{"type":"null"}]},"recordKeys":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"status":{"type":"string","enum":["active","paused"]},"pausedReason":{"anyOf":[{"type":"string","enum":["manual","failing_3_days","key_revoked"]},{"type":"null"}]},"pausedReasonText":{"anyOf":[{"type":"string"},{"type":"null"}]},"pausedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"apiKeyId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"secretLast4":{"type":"string"},"previousSecretExpiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"failingSince":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastSuccessAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastFailureAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["object","id","url","description","eventTypes","recordFamilies","recordKeys","status","pausedReason","pausedReasonText","pausedAt","apiKeyId","secretLast4","previousSecretExpiresAt","failingSince","lastSuccessAt","lastFailureAt","createdAt","updatedAt"],"additionalProperties":false}},"page":{"type":"object","properties":{"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hasMore":{"type":"boolean"}},"required":["limit","hasMore"],"additionalProperties":false}},"required":["object","data","page"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]},"post":{"operationId":"post_webhooks","summary":"Register an HTTPS endpoint for chosen event types (the signing secret is shown once)","tags":["Catalog sync & webhooks"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"url":{"type":"string","minLength":1,"maxLength":2048},"eventTypes":{"minItems":1,"maxItems":13,"type":"array","items":{"type":"string","enum":["catalog.version.published","catalog.items.changed","payment_approval.requested","payment_approval.approved","payment_approval.denied","payment_approval.lapsed","agent_approval.requested","agent_approval.approved","agent_approval.denied","transfer.settled","payment.settled","org.statement.entry","record.changed"]}},"description":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"recordFamilies":{"anyOf":[{"minItems":1,"maxItems":5,"type":"array","items":{"type":"string","enum":["org","isin","sec","cusip","fund"]}},{"type":"null"}]},"recordKeys":{"anyOf":[{"minItems":1,"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}},{"type":"null"}]}},"required":["url","eventTypes"]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"webhook_endpoint"},"id":{"type":"string"},"url":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"eventTypes":{"type":"array","items":{"type":"string","enum":["catalog.version.published","catalog.items.changed","payment_approval.requested","payment_approval.approved","payment_approval.denied","payment_approval.lapsed","agent_approval.requested","agent_approval.approved","agent_approval.denied","transfer.settled","payment.settled","org.statement.entry","record.changed"]}},"recordFamilies":{"anyOf":[{"type":"array","items":{"type":"string","enum":["org","isin","sec","cusip","fund"]}},{"type":"null"}]},"recordKeys":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"status":{"type":"string","enum":["active","paused"]},"pausedReason":{"anyOf":[{"type":"string","enum":["manual","failing_3_days","key_revoked"]},{"type":"null"}]},"pausedReasonText":{"anyOf":[{"type":"string"},{"type":"null"}]},"pausedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"apiKeyId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"secretLast4":{"type":"string"},"previousSecretExpiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"failingSince":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastSuccessAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastFailureAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"secret":{"type":"string"}},"required":["object","id","url","description","eventTypes","recordFamilies","recordKeys","status","pausedReason","pausedReasonText","pausedAt","apiKeyId","secretLast4","previousSecretExpiresAt","failingSince","lastSuccessAt","lastFailureAt","createdAt","updatedAt","secret"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Register an HTTPS endpoint for chosen event types (the signing secret is shown once). Requires an API key with a write grant."}},"/api/v1/webhooks/{id}":{"get":{"operationId":"get_webhooks_ById","summary":"One webhook endpoint, with why it is paused when it is","tags":["Catalog sync & webhooks"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"webhook_endpoint"},"id":{"type":"string"},"url":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"eventTypes":{"type":"array","items":{"type":"string","enum":["catalog.version.published","catalog.items.changed","payment_approval.requested","payment_approval.approved","payment_approval.denied","payment_approval.lapsed","agent_approval.requested","agent_approval.approved","agent_approval.denied","transfer.settled","payment.settled","org.statement.entry","record.changed"]}},"recordFamilies":{"anyOf":[{"type":"array","items":{"type":"string","enum":["org","isin","sec","cusip","fund"]}},{"type":"null"}]},"recordKeys":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"status":{"type":"string","enum":["active","paused"]},"pausedReason":{"anyOf":[{"type":"string","enum":["manual","failing_3_days","key_revoked"]},{"type":"null"}]},"pausedReasonText":{"anyOf":[{"type":"string"},{"type":"null"}]},"pausedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"apiKeyId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"secretLast4":{"type":"string"},"previousSecretExpiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"failingSince":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastSuccessAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastFailureAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["object","id","url","description","eventTypes","recordFamilies","recordKeys","status","pausedReason","pausedReasonText","pausedAt","apiKeyId","secretLast4","previousSecretExpiresAt","failingSince","lastSuccessAt","lastFailureAt","createdAt","updatedAt"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]},"patch":{"operationId":"patch_webhooks_ById","summary":"Change an endpoint's URL, event types or description, or pause / resume it","tags":["Catalog sync & webhooks"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"url":{"type":"string","minLength":1,"maxLength":2048},"eventTypes":{"minItems":1,"maxItems":13,"type":"array","items":{"type":"string","enum":["catalog.version.published","catalog.items.changed","payment_approval.requested","payment_approval.approved","payment_approval.denied","payment_approval.lapsed","agent_approval.requested","agent_approval.approved","agent_approval.denied","transfer.settled","payment.settled","org.statement.entry","record.changed"]}},"description":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"recordFamilies":{"anyOf":[{"minItems":1,"maxItems":5,"type":"array","items":{"type":"string","enum":["org","isin","sec","cusip","fund"]}},{"type":"null"}]},"recordKeys":{"anyOf":[{"minItems":1,"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}},{"type":"null"}]},"status":{"type":"string","enum":["active","paused"]}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"webhook_endpoint"},"id":{"type":"string"},"url":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"eventTypes":{"type":"array","items":{"type":"string","enum":["catalog.version.published","catalog.items.changed","payment_approval.requested","payment_approval.approved","payment_approval.denied","payment_approval.lapsed","agent_approval.requested","agent_approval.approved","agent_approval.denied","transfer.settled","payment.settled","org.statement.entry","record.changed"]}},"recordFamilies":{"anyOf":[{"type":"array","items":{"type":"string","enum":["org","isin","sec","cusip","fund"]}},{"type":"null"}]},"recordKeys":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"status":{"type":"string","enum":["active","paused"]},"pausedReason":{"anyOf":[{"type":"string","enum":["manual","failing_3_days","key_revoked"]},{"type":"null"}]},"pausedReasonText":{"anyOf":[{"type":"string"},{"type":"null"}]},"pausedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"apiKeyId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"secretLast4":{"type":"string"},"previousSecretExpiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"failingSince":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastSuccessAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastFailureAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["object","id","url","description","eventTypes","recordFamilies","recordKeys","status","pausedReason","pausedReasonText","pausedAt","apiKeyId","secretLast4","previousSecretExpiresAt","failingSince","lastSuccessAt","lastFailureAt","createdAt","updatedAt"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Change an endpoint's URL, event types or description, or pause / resume it. Requires an API key with a write grant."},"delete":{"operationId":"delete_webhooks_ById","summary":"Delete a webhook endpoint (open deliveries are cancelled)","tags":["Catalog sync & webhooks"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"deleted":{"type":"boolean","const":true}},"required":["id","deleted"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Delete a webhook endpoint (open deliveries are cancelled). Requires an API key with a write grant."}},"/api/v1/webhooks/{id}/rotate-secret":{"post":{"operationId":"post_webhooks_ById_rotateSecret","summary":"New signing secret, shown once; the previous one also signs for 24 hours","tags":["Catalog sync & webhooks"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"webhook_endpoint"},"id":{"type":"string"},"url":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"eventTypes":{"type":"array","items":{"type":"string","enum":["catalog.version.published","catalog.items.changed","payment_approval.requested","payment_approval.approved","payment_approval.denied","payment_approval.lapsed","agent_approval.requested","agent_approval.approved","agent_approval.denied","transfer.settled","payment.settled","org.statement.entry","record.changed"]}},"recordFamilies":{"anyOf":[{"type":"array","items":{"type":"string","enum":["org","isin","sec","cusip","fund"]}},{"type":"null"}]},"recordKeys":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"status":{"type":"string","enum":["active","paused"]},"pausedReason":{"anyOf":[{"type":"string","enum":["manual","failing_3_days","key_revoked"]},{"type":"null"}]},"pausedReasonText":{"anyOf":[{"type":"string"},{"type":"null"}]},"pausedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"apiKeyId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"secretLast4":{"type":"string"},"previousSecretExpiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"failingSince":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastSuccessAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastFailureAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"secret":{"type":"string"}},"required":["object","id","url","description","eventTypes","recordFamilies","recordKeys","status","pausedReason","pausedReasonText","pausedAt","apiKeyId","secretLast4","previousSecretExpiresAt","failingSince","lastSuccessAt","lastFailureAt","createdAt","updatedAt","secret"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"New signing secret, shown once; the previous one also signs for 24 hours. Requires an API key with a write grant."}},"/api/v1/webhooks/{id}/test":{"post":{"operationId":"post_webhooks_ById_test","summary":"Send a signed test event now and return its delivery result","tags":["Catalog sync & webhooks"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"webhook_delivery"},"id":{"type":"string"},"eventId":{"type":"string"},"eventType":{"type":"string","enum":["catalog.version.published","catalog.items.changed","payment_approval.requested","payment_approval.approved","payment_approval.denied","payment_approval.lapsed","agent_approval.requested","agent_approval.approved","agent_approval.denied","transfer.settled","payment.settled","org.statement.entry","record.changed","webhook.test"]},"status":{"type":"string","enum":["pending","delivering","succeeded","failed","cancelled"]},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"nextAttemptAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastAttemptAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastOutcome":{"anyOf":[{"type":"string","enum":["delivered","http_error","timeout","connection_failed","blocked_address","redirect_refused","tls_failed","signing_unavailable"]},{"type":"null"}]},"lastHttpStatus":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"lastDurationMs":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"completedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["object","id","eventId","eventType","status","attempts","maxAttempts","nextAttemptAt","lastAttemptAt","lastOutcome","lastHttpStatus","lastDurationMs","completedAt","createdAt"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Send a signed test event now and return its delivery result. Requires an API key with a write grant."}},"/api/v1/webhooks/{id}/deliveries":{"get":{"operationId":"get_webhooks_ById_deliveries","summary":"Recent deliveries to an endpoint and their results, newest first (?limit=&beforeId=)","tags":["Catalog sync & webhooks"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Page size (1–100, default 20).","schema":{"type":"integer"}},{"name":"beforeId","in":"query","required":false,"description":"page.nextBeforeId from the previous page (whd_…).","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"webhook_delivery"},"id":{"type":"string"},"eventId":{"type":"string"},"eventType":{"type":"string","enum":["catalog.version.published","catalog.items.changed","payment_approval.requested","payment_approval.approved","payment_approval.denied","payment_approval.lapsed","agent_approval.requested","agent_approval.approved","agent_approval.denied","transfer.settled","payment.settled","org.statement.entry","record.changed","webhook.test"]},"status":{"type":"string","enum":["pending","delivering","succeeded","failed","cancelled"]},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"nextAttemptAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastAttemptAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastOutcome":{"anyOf":[{"type":"string","enum":["delivered","http_error","timeout","connection_failed","blocked_address","redirect_refused","tls_failed","signing_unavailable"]},{"type":"null"}]},"lastHttpStatus":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"lastDurationMs":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"completedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["object","id","eventId","eventType","status","attempts","maxAttempts","nextAttemptAt","lastAttemptAt","lastOutcome","lastHttpStatus","lastDurationMs","completedAt","createdAt"],"additionalProperties":false}},"page":{"type":"object","properties":{"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"beforeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"nextBeforeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"hasMore":{"type":"boolean"}},"required":["limit","beforeId","nextBeforeId","hasMore"],"additionalProperties":false}},"required":["object","data","page"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/comms":{"get":{"operationId":"get_comms","summary":"Comms rail status — every channel with an honest live / needs_connection / unavailable state","tags":["CNXTLiNx comms"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"comms_rail"},"myAddress":{"type":"string"},"channels":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"status":{"type":"string","enum":["live","needs_connection","unavailable"]}},"required":["id","label","status"],"additionalProperties":{}}}},"required":["object","myAddress","channels"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/comms/conversations":{"get":{"operationId":"get_comms_conversations","summary":"Your conversations (peers as one-way anonymized tags)","tags":["CNXTLiNx comms"],"parameters":[{"name":"limit","in":"query","required":false,"description":"Page size (1–100, default 20).","schema":{"type":"integer"}},{"name":"offset","in":"query","required":false,"description":"Zero-based offset into the collection.","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"comms_conversation"},"peerTag":{"type":"string"}},"required":["object","peerTag"],"additionalProperties":{}}},"page":{"type":"object","properties":{"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hasMore":{"type":"boolean"},"nextOffset":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["limit","offset","hasMore","nextOffset"],"additionalProperties":false}},"required":["object","data","page"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/comms/conversations/{peerTag}/messages":{"get":{"operationId":"get_comms_conversations_ByPeerTag_messages","summary":"Messages in one conversation","tags":["CNXTLiNx comms"],"parameters":[{"name":"peerTag","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Page size (1–100, default 20).","schema":{"type":"integer"}},{"name":"offset","in":"query","required":false,"description":"Zero-based offset into the collection.","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"comms_message"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"body":{"type":"string"},"fromAddress":{"type":"string"},"toAddress":{"type":"string"},"peerTag":{"type":"string"}},"required":["object","id","body","fromAddress","toAddress","peerTag"],"additionalProperties":{}}},"page":{"type":"object","properties":{"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hasMore":{"type":"boolean"},"nextOffset":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["limit","offset","hasMore","nextOffset"],"additionalProperties":false}},"required":["object","data","page"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/comms/messages":{"post":{"operationId":"post_comms_messages","summary":"Send an address-to-address message (plaintext; same routing/ownership rules as the human rail)","tags":["CNXTLiNx comms"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"toAddress":{"type":"string","minLength":1,"maxLength":300},"fromAddress":{"type":"string","minLength":1,"maxLength":300},"body":{"type":"string","minLength":1,"maxLength":4000}},"required":["toAddress","body"]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"comms_message"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"body":{"type":"string"},"fromAddress":{"type":"string"},"toAddress":{"type":"string"},"peerTag":{"type":"string"}},"required":["object","id","body","fromAddress","toAddress","peerTag"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Send an address-to-address message (plaintext; same routing/ownership rules as the human rail). Requires an API key with a write grant."}},"/api/v1/comms/email":{"post":{"operationId":"post_comms_email","summary":"Dispatch one real email through the connected SMTP relay (honest relay verdict; inert until SMTP is connected)","tags":["CNXTLiNx comms"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"to":{"type":"string","maxLength":320,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"subject":{"type":"string","minLength":1,"maxLength":200},"body":{"type":"string","minLength":1,"maxLength":10000},"accountId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["to","subject","body"]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"comms_email_result"},"outcome":{"type":"string","enum":["sent","declined","unknown"]},"messageId":{"anyOf":[{"type":"string"},{"type":"null"}]},"accepted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rejected":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","outcome","messageId","accepted","rejected","error"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Dispatch one real email through the connected SMTP relay (honest relay verdict; inert until SMTP is connected). Requires an API key with a write grant."}},"/api/v1/comms/talk/status":{"get":{"operationId":"get_comms_talk_status","summary":"#://CNXTTaLK desk line status — live or needs_connection with a closed reason, and which call actions machines can ask for (no key)","tags":["CNXTLiNx comms"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"cnxttalk_line"},"service":{"type":"string","const":"#://CNXTTaLK"},"status":{"type":"string","enum":["live","needs_connection"]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"message":{"type":"string"},"inbound":{"type":"object","properties":{"status":{"type":"string","enum":["live","not_live"]},"provenAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["status","provenAt"],"additionalProperties":{}},"actions":{"type":"object","properties":{"callbackRequests":{"type":"string","enum":["available","unavailable"]},"connectCalls":{"type":"string","enum":["available","unavailable"]}},"required":["callbackRequests","connectCalls"],"additionalProperties":{}},"humanInTheLoop":{"type":"string"},"reasons":{"type":"array","items":{"type":"string"}}},"required":["object","service","status","reason","message","inbound","actions","humanInTheLoop","reasons"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[]}},"/api/v1/comms/talk/calls":{"get":{"operationId":"get_comms_talk_calls","summary":"#://CNXTTaLK call journal, newest first (admin keys only)","tags":["CNXTLiNx comms"],"parameters":[{"name":"limit","in":"query","required":false,"description":"Max calls to return (1–50, default 20).","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"cnxttalk_journal"},"line":{"type":"object","properties":{"status":{"type":"string","enum":["live","needs_connection"]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["status","reason"],"additionalProperties":{}},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"calls":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"cnxttalk_call"},"callId":{"type":"string"},"direction":{"type":"string"},"source":{"type":"string"},"requestedVia":{"anyOf":[{"type":"string"},{"type":"null"}]},"number":{"anyOf":[{"type":"string"},{"type":"null"}]},"startedAt":{"type":"string"},"state":{"type":"string"},"outcome":{"anyOf":[{"type":"string"},{"type":"null"}]},"label":{"type":"string"}},"required":["object","callId","direction","source","requestedVia","number","startedAt","state","outcome","label"],"additionalProperties":{}}}},"required":["object","line","limit","calls"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/comms/talk/inbox":{"get":{"operationId":"get_comms_talk_inbox","summary":"#://CNXTTaLK desk inbox — missed calls, voicemails, messages and callback requests (admin keys only)","tags":["CNXTLiNx comms"],"parameters":[{"name":"limit","in":"query","required":false,"description":"Max items to return (1–50, default 20).","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"cnxttalk_desk_inbox"},"line":{"type":"object","properties":{"status":{"type":"string","enum":["live","needs_connection"]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["status","reason"],"additionalProperties":{}},"open":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"untrustedFields":{"type":"array","items":{"type":"string"}},"items":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"cnxttalk_inbox_item"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"kind":{"type":"string"},"source":{"type":"string"},"createdAt":{"type":"string"},"callerNumber":{"anyOf":[{"type":"string"},{"type":"null"}]},"callerName":{"anyOf":[{"type":"string"},{"type":"null"}]},"callBackNumber":{"anyOf":[{"type":"string"},{"type":"null"}]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","source","createdAt","callerNumber","callerName","callBackNumber","reason"],"additionalProperties":{}}}},"required":["object","line","open","limit","untrustedFields","items"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/comms/talk/callbacks":{"post":{"operationId":"post_comms_talk_callbacks","summary":"Ask the desk to call you back on your own verified phone — lands in the desk inbox and never dials (rate-limited per account)","tags":["CNXTLiNx comms"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"bindingId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"note":{"type":"string","maxLength":500}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"cnxttalk_callback_request"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["open","handled"]},"phone":{"type":"string"},"source":{"type":"string"},"note":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"created":{"type":"boolean"},"message":{"type":"string"}},"required":["object","id","status","phone","source","note","createdAt","created","message"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"cnxttalk_callback_request"},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["open","handled"]},"phone":{"type":"string"},"source":{"type":"string"},"note":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"created":{"type":"boolean"},"message":{"type":"string"}},"required":["object","id","status","phone","source","note","createdAt","created","message"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Ask the desk to call you back on your own verified phone — lands in the desk inbox and never dials (rate-limited per account). Requires an API key with a write grant."}},"/api/v1/comms/talk/connect":{"post":{"operationId":"post_comms_talk_connect","summary":"Admin keys: ring your own open /comms page with a call to a number — dialed only after you answer there","tags":["CNXTLiNx comms"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"number":{"type":"string","minLength":1,"maxLength":32}},"required":["number"]}}}},"responses":{"202":{"description":"Accepted (still pending)","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"cnxttalk_connect_request"},"callId":{"type":"string"},"number":{"type":"string"},"requestedVia":{"type":"string","enum":["api","mcp","agent"]},"state":{"type":"string","const":"awaiting_admin"},"ringsUntil":{"type":"string"},"message":{"type":"string"}},"required":["object","callId","number","requestedVia","state","ringsUntil","message"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"description":"Admin keys: ring your own open /comms page with a call to a number — dialed only after you answer there. Requires an API key with a write grant."}},"/api/v1/draftroom":{"get":{"operationId":"get_draftroom","summary":"Draftroom rail status — engine configuration, last real outcomes, and your remaining daily allowance","tags":["Draftroom campaign studio"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"draftroom_rail"},"configured":{"type":"boolean"},"engines":{"type":"object","properties":{},"additionalProperties":{}},"allowance":{"type":"object","properties":{"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"remaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"windowMs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"resetsAt":{"type":"string"},"imageAttemptsPerSlot":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["limit","used","remaining","windowMs","resetsAt","imageAttemptsPerSlot"],"additionalProperties":{}},"policy":{"type":"object","properties":{"rail":{"type":"string","const":"draftroom"},"verb":{"type":"string","const":"execute"},"gate":{"type":"string"}},"required":["rail","verb","gate"],"additionalProperties":{}}},"required":["object","configured","engines","allowance","policy"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/draftroom/campaigns":{"get":{"operationId":"get_draftroom_campaigns","summary":"Your campaigns, newest first","tags":["Draftroom campaign studio"],"parameters":[{"name":"limit","in":"query","required":false,"description":"Page size (1–100, default 20).","schema":{"type":"integer"}},{"name":"offset","in":"query","required":false,"description":"Zero-based offset into the collection.","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"draftroom_campaign"},"id":{"type":"string"},"status":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"copyReadyAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"completedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"brief":{"type":"object","properties":{"brief":{"type":"string","minLength":10,"maxLength":2500},"audience":{"type":"string","minLength":1,"maxLength":1500},"product":{"type":"string","minLength":1,"maxLength":2500},"tone":{"type":"string","minLength":1,"maxLength":160},"channels":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","enum":["Instagram","LinkedIn","X","TikTok","YouTube","Email","Website","Paid ads","SMS","Out of home"]}}},"required":["brief","audience","product","tone","channels"],"additionalProperties":false},"copy":{"anyOf":[{"type":"object","properties":{},"additionalProperties":{}},{"type":"null"}]},"images":{"type":"array","items":{"type":"object","properties":{"slot":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string"},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"attemptsRemaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"path":{"anyOf":[{"type":"string"},{"type":"null"}]},"contentType":{"anyOf":[{"type":"string"},{"type":"null"}]},"sizeBytes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"sha256":{"anyOf":[{"type":"string"},{"type":"null"}]},"errorCode":{"anyOf":[{"type":"string"},{"type":"null"}]},"prompt":{"type":"string"}},"required":["slot","status","attempts","attemptsRemaining","path","contentType","sizeBytes","sha256","errorCode","prompt"],"additionalProperties":{}}},"error":{"anyOf":[{"type":"object","properties":{"code":{"type":"string"},"engine":{"type":"string","enum":["text","image"]}},"required":["code","engine"],"additionalProperties":{}},{"type":"null"}]}},"required":["object","id","status","createdAt","updatedAt","copyReadyAt","completedAt","brief","copy","images","error"],"additionalProperties":{}}},"page":{"type":"object","properties":{"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hasMore":{"type":"boolean"},"nextOffset":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["limit","offset","hasMore","nextOffset"],"additionalProperties":false}},"required":["object","data","page"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]},"post":{"operationId":"post_draftroom_campaigns","summary":"Submit a brief — copy + two renders on the shared engine (PDP-gated, allowance-metered, idempotent: 202 created / 200 replay / 409 conflict)","tags":["Draftroom campaign studio"],"parameters":[{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"idempotencyKey":{"type":"string","minLength":8,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+$"},"brief":{"type":"object","properties":{"brief":{"type":"string","minLength":10,"maxLength":2500},"audience":{"type":"string","minLength":1,"maxLength":1500},"product":{"type":"string","minLength":1,"maxLength":2500},"tone":{"type":"string","minLength":1,"maxLength":160},"channels":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","enum":["Instagram","LinkedIn","X","TikTok","YouTube","Email","Website","Paid ads","SMS","Out of home"]}}},"required":["brief","audience","product","tone","channels"]}},"required":["brief"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"draftroom_campaign"},"id":{"type":"string"},"status":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"copyReadyAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"completedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"brief":{"type":"object","properties":{"brief":{"type":"string","minLength":10,"maxLength":2500},"audience":{"type":"string","minLength":1,"maxLength":1500},"product":{"type":"string","minLength":1,"maxLength":2500},"tone":{"type":"string","minLength":1,"maxLength":160},"channels":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","enum":["Instagram","LinkedIn","X","TikTok","YouTube","Email","Website","Paid ads","SMS","Out of home"]}}},"required":["brief","audience","product","tone","channels"],"additionalProperties":false},"copy":{"anyOf":[{"type":"object","properties":{},"additionalProperties":{}},{"type":"null"}]},"images":{"type":"array","items":{"type":"object","properties":{"slot":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string"},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"attemptsRemaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"path":{"anyOf":[{"type":"string"},{"type":"null"}]},"contentType":{"anyOf":[{"type":"string"},{"type":"null"}]},"sizeBytes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"sha256":{"anyOf":[{"type":"string"},{"type":"null"}]},"errorCode":{"anyOf":[{"type":"string"},{"type":"null"}]},"prompt":{"type":"string"}},"required":["slot","status","attempts","attemptsRemaining","path","contentType","sizeBytes","sha256","errorCode","prompt"],"additionalProperties":{}}},"error":{"anyOf":[{"type":"object","properties":{"code":{"type":"string"},"engine":{"type":"string","enum":["text","image"]}},"required":["code","engine"],"additionalProperties":{}},{"type":"null"}]},"created":{"type":"boolean"}},"required":["object","id","status","createdAt","updatedAt","copyReadyAt","completedAt","brief","copy","images","error","created"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"202":{"description":"Accepted (still pending)","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"draftroom_campaign"},"id":{"type":"string"},"status":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"copyReadyAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"completedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"brief":{"type":"object","properties":{"brief":{"type":"string","minLength":10,"maxLength":2500},"audience":{"type":"string","minLength":1,"maxLength":1500},"product":{"type":"string","minLength":1,"maxLength":2500},"tone":{"type":"string","minLength":1,"maxLength":160},"channels":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","enum":["Instagram","LinkedIn","X","TikTok","YouTube","Email","Website","Paid ads","SMS","Out of home"]}}},"required":["brief","audience","product","tone","channels"],"additionalProperties":false},"copy":{"anyOf":[{"type":"object","properties":{},"additionalProperties":{}},{"type":"null"}]},"images":{"type":"array","items":{"type":"object","properties":{"slot":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string"},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"attemptsRemaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"path":{"anyOf":[{"type":"string"},{"type":"null"}]},"contentType":{"anyOf":[{"type":"string"},{"type":"null"}]},"sizeBytes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"sha256":{"anyOf":[{"type":"string"},{"type":"null"}]},"errorCode":{"anyOf":[{"type":"string"},{"type":"null"}]},"prompt":{"type":"string"}},"required":["slot","status","attempts","attemptsRemaining","path","contentType","sizeBytes","sha256","errorCode","prompt"],"additionalProperties":{}}},"error":{"anyOf":[{"type":"object","properties":{"code":{"type":"string"},"engine":{"type":"string","enum":["text","image"]}},"required":["code","engine"],"additionalProperties":{}},{"type":"null"}]},"created":{"type":"boolean"}},"required":["object","id","status","createdAt","updatedAt","copyReadyAt","completedAt","brief","copy","images","error","created"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"draftroom:campaigns","amount":"unpriced"},"description":"Submit a brief — copy + two renders on the shared engine (PDP-gated, allowance-metered, idempotent: 202 created / 200 replay / 409 conflict). Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."}},"/api/v1/draftroom/campaigns/{id}":{"get":{"operationId":"get_draftroom_campaigns_ById","summary":"One campaign — poll until status is complete / partial / failed","tags":["Draftroom campaign studio"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"draftroom_campaign"},"id":{"type":"string"},"status":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"copyReadyAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"completedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"brief":{"type":"object","properties":{"brief":{"type":"string","minLength":10,"maxLength":2500},"audience":{"type":"string","minLength":1,"maxLength":1500},"product":{"type":"string","minLength":1,"maxLength":2500},"tone":{"type":"string","minLength":1,"maxLength":160},"channels":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","enum":["Instagram","LinkedIn","X","TikTok","YouTube","Email","Website","Paid ads","SMS","Out of home"]}}},"required":["brief","audience","product","tone","channels"],"additionalProperties":false},"copy":{"anyOf":[{"type":"object","properties":{},"additionalProperties":{}},{"type":"null"}]},"images":{"type":"array","items":{"type":"object","properties":{"slot":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string"},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"attemptsRemaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"path":{"anyOf":[{"type":"string"},{"type":"null"}]},"contentType":{"anyOf":[{"type":"string"},{"type":"null"}]},"sizeBytes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"sha256":{"anyOf":[{"type":"string"},{"type":"null"}]},"errorCode":{"anyOf":[{"type":"string"},{"type":"null"}]},"prompt":{"type":"string"}},"required":["slot","status","attempts","attemptsRemaining","path","contentType","sizeBytes","sha256","errorCode","prompt"],"additionalProperties":{}}},"error":{"anyOf":[{"type":"object","properties":{"code":{"type":"string"},"engine":{"type":"string","enum":["text","image"]}},"required":["code","engine"],"additionalProperties":{}},{"type":"null"}]}},"required":["object","id","status","createdAt","updatedAt","copyReadyAt","completedAt","brief","copy","images","error"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/draftroom/campaigns/{id}/images/{slot}/retry":{"post":{"operationId":"post_draftroom_campaigns_ById_images_BySlot_retry","summary":"Regenerate ONE failed image slot (PDP-gated; per-slot attempt cap)","tags":["Draftroom campaign studio"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"slot","in":"path","required":true,"schema":{"type":"integer"}},{"name":"CNXT-Approval-Id","in":"header","required":false,"description":"Only after the account owner approved this held call in the signed-in console: repeat the IDENTICAL call (same method, path, query, body and Idempotency-Key) with the approval id (pa_<n>). It runs once; a changed call, price or terms (currency, destination, or what it charges or captures) moves nothing and needs a new approval.","schema":{"type":"string","pattern":"^pa_[1-9][0-9]*$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"draftroom_campaign"},"id":{"type":"string"},"status":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"copyReadyAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"completedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"brief":{"type":"object","properties":{"brief":{"type":"string","minLength":10,"maxLength":2500},"audience":{"type":"string","minLength":1,"maxLength":1500},"product":{"type":"string","minLength":1,"maxLength":2500},"tone":{"type":"string","minLength":1,"maxLength":160},"channels":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","enum":["Instagram","LinkedIn","X","TikTok","YouTube","Email","Website","Paid ads","SMS","Out of home"]}}},"required":["brief","audience","product","tone","channels"],"additionalProperties":false},"copy":{"anyOf":[{"type":"object","properties":{},"additionalProperties":{}},{"type":"null"}]},"images":{"type":"array","items":{"type":"object","properties":{"slot":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string"},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"attemptsRemaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"path":{"anyOf":[{"type":"string"},{"type":"null"}]},"contentType":{"anyOf":[{"type":"string"},{"type":"null"}]},"sizeBytes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"sha256":{"anyOf":[{"type":"string"},{"type":"null"}]},"errorCode":{"anyOf":[{"type":"string"},{"type":"null"}]},"prompt":{"type":"string"}},"required":["slot","status","attempts","attemptsRemaining","path","contentType","sizeBytes","sha256","errorCode","prompt"],"additionalProperties":{}}},"error":{"anyOf":[{"type":"object","properties":{"code":{"type":"string"},"engine":{"type":"string","enum":["text","image"]}},"required":["code","engine"],"additionalProperties":{}},{"type":"null"}]},"started":{"type":"boolean"}},"required":["object","id","status","createdAt","updatedAt","copyReadyAt","completedAt","brief","copy","images","error","started"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"202":{"description":"Accepted (still pending)","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"draftroom_campaign"},"id":{"type":"string"},"status":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"copyReadyAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"completedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"brief":{"type":"object","properties":{"brief":{"type":"string","minLength":10,"maxLength":2500},"audience":{"type":"string","minLength":1,"maxLength":1500},"product":{"type":"string","minLength":1,"maxLength":2500},"tone":{"type":"string","minLength":1,"maxLength":160},"channels":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","enum":["Instagram","LinkedIn","X","TikTok","YouTube","Email","Website","Paid ads","SMS","Out of home"]}}},"required":["brief","audience","product","tone","channels"],"additionalProperties":false},"copy":{"anyOf":[{"type":"object","properties":{},"additionalProperties":{}},{"type":"null"}]},"images":{"type":"array","items":{"type":"object","properties":{"slot":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string"},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"attemptsRemaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"path":{"anyOf":[{"type":"string"},{"type":"null"}]},"contentType":{"anyOf":[{"type":"string"},{"type":"null"}]},"sizeBytes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"sha256":{"anyOf":[{"type":"string"},{"type":"null"}]},"errorCode":{"anyOf":[{"type":"string"},{"type":"null"}]},"prompt":{"type":"string"}},"required":["slot","status","attempts","attemptsRemaining","path","contentType","sizeBytes","sha256","errorCode","prompt"],"additionalProperties":{}}},"error":{"anyOf":[{"type":"object","properties":{"code":{"type":"string"},"engine":{"type":"string","enum":["text","image"]}},"required":["code","engine"],"additionalProperties":{}},{"type":"null"}]},"started":{"type":"boolean"}},"required":["object","id","status","createdAt","updatedAt","copyReadyAt","completedAt","brief","copy","images","error","started"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"403":{"description":"Permission refusals. This call is never held for approval: while the key's \"Payments need my OK\" setting is on it answers 409 approval_amount_unavailable (\"This call's amount can't be fixed before it runs, so it can't wait for the account owner's OK and is refused while this key's payments need approval. Nothing moved.\") with nothing_moved: true.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["approval_required","approval_pending","approval_id_required","approval_denied","approval_lapsed","approval_mismatch","approval_price_changed","approval_amount_required","approval_amount_unavailable","approval_in_progress","approval_used","approval_outcome_unknown","approval_refused","approval_not_found","approval_decision_blocked","approval_self_decision","approval_unavailable","invalid_approval_id"]},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"},"nothing_moved":{"type":"boolean","const":true},"payment_approval":{"type":"object","properties":{"object":{"type":"string","const":"payment_approval"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","approved","executing","consumed","denied","lapsed","unknown","refused"]},"statusText":{"type":"string"},"outcome":{"type":"string","enum":["nothing_moved","ran_once","unknown"]},"summary":{"type":"string"},"amountCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"type":"string"},"path":{"type":"string"},"decidedVia":{"anyOf":[{"type":"string","enum":["console","rule"]},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["object","id","kind","status","statusText","outcome","summary","amountCents","currency","destination","method","path","decidedVia","reference"],"additionalProperties":{}}},"required":["error","code","type","message","doc_url","nothing_moved"],"additionalProperties":{}},{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}]}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}],"x-cnxt-payment-approval":{"kind":"draftroom:retry","amount":"unpriced"},"description":"Regenerate ONE failed image slot (PDP-gated; per-slot attempt cap). Requires an API key with a write grant. Moves money, and its amount is only known once it runs: while the key's \"Payments need my OK\" setting is on, it is refused with approval_amount_unavailable and nothing moves."}},"/api/v1/draftroom/campaigns/{id}/images/{slot}":{"get":{"operationId":"get_draftroom_campaigns_ById_images_BySlot","summary":"Stream one completed render as image/png (owner-scoped; never a public URL)","tags":["Draftroom campaign studio"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"slot","in":"path","required":true,"schema":{"type":"integer"}},{"name":"download","in":"query","required":false,"description":"Any value adds a Content-Disposition: attachment header.","schema":{"type":"string"}}],"responses":{"200":{"description":"The completed render's PNG bytes, streamed to the OWNER only (any other key sees 404). `?download=1` adds an attachment disposition.","content":{"image/png":{"schema":{"type":"string","format":"binary"}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/reference":{"get":{"operationId":"get_reference","summary":"This catalogue — the live endpoint reference","tags":["Network surface"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"service":{"type":"string"},"version":{"type":"string"},"auth":{"type":"object","properties":{"header":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"note":{"type":"string"}},"required":["header","scopes","note"],"additionalProperties":{}},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"groups":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"endpoints":{"type":"array","items":{"type":"object","properties":{"method":{"type":"string","enum":["GET","POST","PATCH","DELETE"]},"path":{"type":"string"},"desc":{"type":"string"},"scope":{"type":"string","enum":["read","write","public"]}},"required":["method","path","desc","scope"],"additionalProperties":false}}},"required":["id","title","endpoints"],"additionalProperties":false}}},"required":["service","version","auth","total","groups"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[]}},"/api/v1/openapi.json":{"get":{"operationId":"get_openapiJson","summary":"Machine-readable OpenAPI 3.1 contract for the whole /api/v1 surface","tags":["Network surface"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"openapi":{"type":"string"},"info":{"type":"object","properties":{},"additionalProperties":{}},"paths":{"type":"object","properties":{},"additionalProperties":{}}},"required":["openapi","info","paths"],"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[]}},"/api/v1/mcpx/tools":{"get":{"operationId":"get_mcpx_tools","summary":"MCP-shaped tool discovery document (protocol 2024-11-05) over the live protected-resource registry","tags":["Network surface"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mcp_version":{"type":"string"},"server":{"type":"object","properties":{"name":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"}},"required":["name","title","description"],"additionalProperties":{}},"tools":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"inputSchema":{"type":"object","properties":{},"additionalProperties":{}}},"required":["name","description","inputSchema"],"additionalProperties":{}}}},"required":["mcp_version","server","tools"],"additionalProperties":{}}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[]}},"/api/v1/ucp/catalog":{"get":{"operationId":"get_ucp_catalog","summary":"UCP catalog service (vendor-namespaced) — the 1-of-1 edition catalog at real posted mint fees","tags":["Network surface"],"parameters":[{"name":"limit","in":"query","required":false,"description":"Page size (1–100, default 20).","schema":{"type":"integer"}},{"name":"offset","in":"query","required":false,"description":"Zero-based offset into the collection.","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"object":{"type":"string","const":"ucp.catalog"},"service":{"type":"string"},"ucpVersion":{"type":"string"},"disclosure":{"type":"string"},"totals":{"type":"object","properties":{"editions":{"type":"number"},"catalogMintValueCents":{"type":"number"}},"required":["editions","catalogMintValueCents"],"additionalProperties":{}},"page":{"type":"object","properties":{"limit":{"type":"number"},"offset":{"type":"number"},"returned":{"type":"number"},"hasMore":{"type":"boolean"}},"required":["limit","offset","returned","hasMore"],"additionalProperties":{}},"items":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"ucp.item"},"sku":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"handle":{"type":"string"},"address":{"type":"string"},"category":{"type":"string"},"price":{"type":"object","properties":{"amount":{"type":"number"},"currency":{"type":"string"},"unit":{"type":"string"}},"required":["amount","currency","unit"],"additionalProperties":{}},"url":{"type":"string"},"detail":{"type":"string"}},"required":["object","sku","slug","name","handle","address","category","price","url","detail"],"additionalProperties":{}}}},"required":["object","service","ucpVersion","disclosure","totals","page","items"],"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[]}},"/api/v1/network/arin-spec":{"get":{"operationId":"get_network_arinSpec","summary":"#://ARiN × #://CNXTDNS (CTL-401 / CNA96-ARIN) deterministic IPv6 /40 & NRPM 4.10 IPv4 /24 engineering specification","tags":["Network surface"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{},"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error. Every error uses the same envelope: `type` + `code` + `message` (+ `param`, `doc_url`), with legacy `error` kept for compatibility.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","connection_error","api_error"]},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["error","code","type","message","doc_url"],"additionalProperties":{}}}}}},"security":[]}}}}