{"openapi":"3.1.0","jsonSchemaDialect":"https://spec.openapis.org/oas/3.1/dialect/base","info":{"title":"Agent-Native Stablecoin API","version":"2.4.0","description":"Stablecoin lifecycle APIs for agent deployment, compliance, treasury operations, and discovery. Generated from the route contracts. Each operation states its availability: sandbox-only operations are simulator-backed and unavailable operations perform nothing. Each API key may make 100 requests per minute to each operation (basic tier; 1,000 professional, 10,000 enterprise). Each client address may present credentials 600 times per minute. MCP: 100 tool requests per hour per API key or OAuth user (basic tier; 1,000 professional, 10,000 enterprise)."},"servers":[{"url":"/api/v2/agent"}],"tags":[{"name":"meta"},{"name":"deploy"},{"name":"discover"},{"name":"comply"},{"name":"operate"},{"name":"auth"}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API_KEY","description":"Organization-bound API key. Each operation names its required scope in x-required-scope."},"cronSecret":{"type":"apiKey","in":"header","name":"x-cron-secret","description":"Scheduler secret for internal dispatch endpoints."},"sessionCookie":{"type":"apiKey","in":"cookie","name":"sb-<project-ref>-auth-token","description":"Operator session cookie set by the web application sign-in."}},"schemas":{"ErrorResponse":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"$ref":"#/components/schemas/AgentErrorCode"},"message":{"type":"string"},"details":{"type":"object"}},"required":["code","message","details"]}},"required":["error"]},"AgentErrorCode":{"type":"string","description":"Typed error code. Each value lists the HTTP status it is returned with.","oneOf":[{"const":"CARD_INSUFFICIENT_FUNDS","description":"HTTP 409. The card or programme has insufficient funds for the operation."},{"const":"CARD_LEDGER_CONFLICT","description":"HTTP 409. The issuer reported a funding reference that is already posted with a different amount or asset. Nothing new was posted."},{"const":"CARD_LEDGER_WRITE_FAILED","description":"HTTP 500. The issuer accepted the funding but the ledger entry was not written. Retry with the same Idempotency-Key to post it exactly once."},{"const":"CARD_OPERATION_NOT_SUPPORTED","description":"HTTP 501. The connected card issuer does not support this operation."},{"const":"CARD_RECORD_CONFLICT","description":"HTTP 409. The platform record of the card or programme cannot be used safely: the reference matches more than one connection, the connection changed between simulator and real issuer, or the programme has no recorded regime. `details.reason` says which. Nothing was executed."},{"const":"CARD_RECORD_WRITE_FAILED","description":"HTTP 500. The issuer created the programme or card, but the platform record that pins it to its provider connection was not written. Retry with the same Idempotency-Key."},{"const":"CARD_REQUEST_REJECTED","description":"HTTP 422. The card issuer rejected the request, for example an unknown card or a status change the card state does not allow. `details.providerCode` gives the issuer reason."},{"const":"CHAIN_CAPABILITY_DISABLED","description":"HTTP 403. The chain is known but the capability this operation needs is disabled for it at runtime."},{"const":"COMPILATION_ERROR","description":"HTTP 422. The Solidity source does not compile."},{"const":"COMPLIANCE_BLOCKED","description":"HTTP 403. The compliance gate or the provider blocked the operation. Nothing was executed."},{"const":"CUSTODY_STATE_CONFLICT","description":"HTTP 409. The custody request conflicts with its stored state. No replacement send is created."},{"const":"DEPLOYMENT_RUNTIME_UNAVAILABLE","description":"HTTP 503. Agent transaction submission is unavailable. No transaction was sent."},{"const":"FORBIDDEN","description":"HTTP 403. The caller may not perform this operation."},{"const":"IDEMPOTENCY_IN_PROGRESS","description":"HTTP 409. A request with this Idempotency-Key is still running. Retry after the `Retry-After` interval."},{"const":"IDEMPOTENCY_KEY_REQUIRED","description":"HTTP 400. This mutation requires an Idempotency-Key header."},{"const":"IDEMPOTENCY_KEY_REUSED","description":"HTTP 422. The Idempotency-Key was already used with a different request."},{"const":"IDEMPOTENCY_UNAVAILABLE","description":"HTTP 503. Idempotency records are unavailable, so the request was not processed. Retry later with the same Idempotency-Key."},{"const":"INTERNAL_ERROR","description":"HTTP 500. Unexpected server error. `X-Trace-Id` identifies the request."},{"const":"INVALID_INPUT","description":"HTTP 400. A query parameter has an unsupported value."},{"const":"LEGACY_DEPLOYMENT_UNVERIFIED","description":"HTTP 409. A legacy deployment record has no verified chain receipt."},{"const":"MODEL_NOT_CONFIGURED","description":"HTTP 503. The model this operation needs is not configured in this environment. No output is substituted."},{"const":"NOT_FOUND","description":"HTTP 404. The requested record does not exist or is not visible to the caller."},{"const":"PERSISTENCE_ERROR","description":"HTTP 503. The durable launch receipt is unavailable or its write outcome is uncertain. After storage recovers, retry with the same request body and Idempotency-Key."},{"const":"PRECEDENT_UNAVAILABLE","description":"HTTP 503. Precedent retrieval failed. Retry later."},{"const":"PRECHECK_FAILED","description":"HTTP 422. An on-chain read the operation depends on failed or returned an invalid value. `details.check` names it."},{"const":"PROVIDER_AUTHORIZATION_DENIED","description":"HTTP 403. The provider refused the credentials or permissions of the connection."},{"const":"PROVIDER_CONNECTION_AMBIGUOUS","description":"HTTP 409. More than one provider connection serves this operation and none is marked preferred. `details.candidates` lists them; declare the scope of each connection or mark one preferred. Nothing was executed."},{"const":"PROVIDER_EXECUTION_FAILED","description":"HTTP 502. The provider returned an error. Nothing is reported as succeeded."},{"const":"PROVIDER_NOT_CONNECTED","description":"HTTP 424. No reviewed provider connection serves this operation in the requested environment. Connect one; nothing was executed."},{"const":"PROVIDER_RATE_LIMITED","description":"HTTP 429. The provider rate-limited the request."},{"const":"RATE_LIMIT_EXCEEDED","description":"HTTP 429. Too many requests. Retry after the `Retry-After` header."},{"const":"RATE_LIMIT_UNAVAILABLE","description":"HTTP 503. Rate limiting is unavailable, so the request was not processed. Retry later."},{"const":"RESERVE_SOURCE_NOT_CONNECTED","description":"HTTP 424. The operation needs a real reserve ratio: supply it in the request (`details.acceptedInput`) or connect a reserve source (`details.setupPath`). No value is estimated."},{"const":"SANDBOX_ONLY","description":"HTTP 403. This operation serves sandbox keys only; no production source exists for it."},{"const":"SERVER_MISCONFIGURED","description":"HTTP 500. A required server dependency is not configured."},{"const":"SOURCE_NOT_AVAILABLE","description":"HTTP 503. The data source behind this endpoint is not connected or not readable. No values are substituted."},{"const":"STORAGE_UNAVAILABLE","description":"HTTP 503. The outcome could not be confirmed. Retry with the same request body and Idempotency-Key."},{"const":"UNAUTHORIZED","description":"HTTP 401. The bearer key is missing, invalid, or not bound to an organization."},{"const":"UNSUPPORTED_CHAIN","description":"HTTP 400. The chain is not enabled for this capability."},{"const":"VALIDATION_ERROR","description":"HTTP 400. The request body, query or path failed validation. `details.field` names the field when known."}]},"OrganizationErrorResponse":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["APPROVAL_REQUIRED","AUTHORIZATION_UNAVAILABLE","IDEMPOTENCY_CONFLICT","IDEMPOTENCY_REQUIRED","INVALID_REQUEST","ORGANIZATION_ACCESS_DENIED","ORGANIZATION_REQUIRED","ORGANIZATION_SCHEMA_REQUIRED","ORGANIZATION_UNAVAILABLE","POLICY_CHANGED","SESSION_REAUTHENTICATION_REQUIRED","SSO_REQUIRED","STEP_UP_REQUIRED","UNAUTHENTICATED","VERSION_CONFLICT","VERSION_REQUIRED"]}},"required":["error","code"]},"PlainErrorResponse":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},"MarketDataStatus":{"type":"object","properties":{"available":{"type":"boolean"},"source":{"type":["string","null"]},"retrievedAt":{"type":["string","null"]},"snapshotDate":{"type":["string","null"]},"stale":{"type":["boolean","null"]},"freshnessRule":{"type":"string","const":"stale_after_36_hours"},"reason":{"type":["string","null"],"enum":["source_not_available","no_snapshot_match","ambiguous_ticker_match","not_in_directory","no_data","peg_not_usd","no_earlier_snapshot","not_recorded",null]}},"required":["available","source","retrievedAt","snapshotDate","stale","freshnessRule","reason"],"description":"State of the market snapshot store used for supply and price fields."},"MarketSupply":{"type":"object","properties":{"usd":{"type":"string","pattern":"^\\d+(\\.\\d+)?$","description":"Circulating supply in USD, as a decimal string."},"retrievedAt":{"type":"string"},"snapshotDate":{"type":"string"},"source":{"type":"string"},"matchedBy":{"type":"string","enum":["reviewed_mapping","ticker"],"description":"reviewed_mapping links canonical asset ids; ticker is a labelled symbol match."},"stale":{"type":"boolean"}},"required":["usd","retrievedAt","snapshotDate","source","matchedBy","stale"]},"DirectoryProvenance":{"type":"object","properties":{"source":{"type":"string","enum":["stablecoin_issuers","stablecoin_asset","protocols","provider_eligibility"]},"model":{"type":"string","enum":["legacy_compatibility","canonical"]},"reviewed":{"type":"boolean","description":"True for canonical records that passed directory review, and for legacy records whose latest publication decision is published."},"updatedAt":{"type":["string","null"]}},"required":["source","model","reviewed","updatedAt"]},"LegacyIssuer":{"type":"object","properties":{"recordType":{"type":"string","const":"legacy_issuer"},"id":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"ticker":{"type":"string"},"issuerOrganization":{"type":["string","null"]},"description":{"type":["string","null"]},"website":{"type":["string","null"]},"pegCurrency":{"type":"string"},"chains":{"type":"array","items":{"type":"string"}},"jurisdiction":{"type":["string","null"]},"regulatoryStatus":{"type":["string","null"]},"regulatoryFramework":{"type":["string","null"]},"reserveAttestationUrl":{"type":["string","null"]},"lastAttestationDate":{"type":["string","null"]},"redemptionEnabled":{"type":["boolean","null"]},"canonicalAsset":{"type":["object","null"],"properties":{"id":{"type":"string"},"symbol":{"type":"string"},"assetClass":{"type":"string"}},"required":["id","symbol","assetClass"]},"circulatingSupply":{"type":"object","properties":{"value":{"anyOf":[{"$ref":"#/components/schemas/MarketSupply"},{"type":"null"}]},"reason":{"type":["string","null"],"enum":["source_not_available","no_snapshot_match","ambiguous_ticker_match","not_in_directory","no_data","peg_not_usd","no_earlier_snapshot","not_recorded",null]}},"required":["value","reason"]},"provenance":{"$ref":"#/components/schemas/DirectoryProvenance"}},"required":["recordType","id","slug","name","ticker","issuerOrganization","description","website","pegCurrency","chains","jurisdiction","regulatoryStatus","regulatoryFramework","reserveAttestationUrl","lastAttestationDate","redemptionEnabled","canonicalAsset","circulatingSupply","provenance"]},"CanonicalAsset":{"type":"object","properties":{"recordType":{"type":"string","const":"canonical_asset"},"id":{"type":"string"},"symbol":{"type":"string"},"name":{"type":"string"},"assetClass":{"type":"string"},"referenceAsset":{"type":["string","null"]},"decimals":{"type":["integer","null"]},"lifecycleStatus":{"type":"string"},"circulatingSupply":{"type":"object","properties":{"value":{"anyOf":[{"$ref":"#/components/schemas/MarketSupply"},{"type":"null"}]},"reason":{"type":["string","null"],"enum":["source_not_available","no_snapshot_match","ambiguous_ticker_match","not_in_directory","no_data","peg_not_usd","no_earlier_snapshot","not_recorded",null]}},"required":["value","reason"]},"provenance":{"$ref":"#/components/schemas/DirectoryProvenance"}},"required":["recordType","id","symbol","name","assetClass","referenceAsset","decimals","lifecycleStatus","circulatingSupply","provenance"]},"DirectoryIssuer":{"oneOf":[{"$ref":"#/components/schemas/LegacyIssuer"},{"$ref":"#/components/schemas/CanonicalAsset"}]},"Protocol":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"category":{"type":"string"},"subtype":{"type":["string","null"]},"description":{"type":["string","null"]},"website":{"type":["string","null"]},"docs":{"type":["string","null"]},"chains":{"type":"array","items":{"type":"string"}},"audits":{"type":"array","items":{"type":"object","properties":{"auditor":{"type":"string"},"date":{"type":["string","null"]},"reportUrl":{"type":["string","null"]}},"required":["auditor","date","reportUrl"]}},"governanceType":{"type":["string","null"]},"launchDate":{"type":["string","null"]},"provenance":{"$ref":"#/components/schemas/DirectoryProvenance"}},"required":["id","slug","name","category","subtype","description","website","docs","chains","audits","governanceType","launchDate","provenance"]},"CompareEntry":{"type":"object","properties":{"name":{"type":"object","properties":{"value":{"type":["string","null"]},"reason":{"type":["string","null"],"enum":["source_not_available","no_snapshot_match","ambiguous_ticker_match","not_in_directory","no_data","peg_not_usd","no_earlier_snapshot","not_recorded",null]}},"required":["value","reason"]},"issuer":{"type":"object","properties":{"value":{"type":["string","null"]},"reason":{"type":["string","null"],"enum":["source_not_available","no_snapshot_match","ambiguous_ticker_match","not_in_directory","no_data","peg_not_usd","no_earlier_snapshot","not_recorded",null]}},"required":["value","reason"]},"pegCurrency":{"type":"object","properties":{"value":{"type":["string","null"]},"reason":{"type":["string","null"],"enum":["source_not_available","no_snapshot_match","ambiguous_ticker_match","not_in_directory","no_data","peg_not_usd","no_earlier_snapshot","not_recorded",null]}},"required":["value","reason"]},"assetClass":{"type":"object","properties":{"value":{"type":["string","null"]},"reason":{"type":["string","null"],"enum":["source_not_available","no_snapshot_match","ambiguous_ticker_match","not_in_directory","no_data","peg_not_usd","no_earlier_snapshot","not_recorded",null]}},"required":["value","reason"]},"circulatingSupplyUsd":{"type":"object","properties":{"value":{"type":["string","null"]},"reason":{"type":["string","null"],"enum":["source_not_available","no_snapshot_match","ambiguous_ticker_match","not_in_directory","no_data","peg_not_usd","no_earlier_snapshot","not_recorded",null]}},"required":["value","reason"]},"priceUsd":{"type":"object","properties":{"value":{"type":["string","null"]},"reason":{"type":["string","null"],"enum":["source_not_available","no_snapshot_match","ambiguous_ticker_match","not_in_directory","no_data","peg_not_usd","no_earlier_snapshot","not_recorded",null]}},"required":["value","reason"]},"pegDeviationBps":{"type":"object","properties":{"value":{"type":["number","null"]},"reason":{"type":["string","null"],"enum":["source_not_available","no_snapshot_match","ambiguous_ticker_match","not_in_directory","no_data","peg_not_usd","no_earlier_snapshot","not_recorded",null]}},"required":["value","reason"]},"chains":{"type":"object","properties":{"value":{"type":["array","null"],"items":{"type":"string"}},"reason":{"type":["string","null"],"enum":["source_not_available","no_snapshot_match","ambiguous_ticker_match","not_in_directory","no_data","peg_not_usd","no_earlier_snapshot","not_recorded",null]}},"required":["value","reason"]},"jurisdiction":{"type":"object","properties":{"value":{"type":["string","null"]},"reason":{"type":["string","null"],"enum":["source_not_available","no_snapshot_match","ambiguous_ticker_match","not_in_directory","no_data","peg_not_usd","no_earlier_snapshot","not_recorded",null]}},"required":["value","reason"]},"regulatoryStatus":{"type":"object","properties":{"value":{"type":["string","null"]},"reason":{"type":["string","null"],"enum":["source_not_available","no_snapshot_match","ambiguous_ticker_match","not_in_directory","no_data","peg_not_usd","no_earlier_snapshot","not_recorded",null]}},"required":["value","reason"]},"regulatoryFramework":{"type":"object","properties":{"value":{"type":["string","null"]},"reason":{"type":["string","null"],"enum":["source_not_available","no_snapshot_match","ambiguous_ticker_match","not_in_directory","no_data","peg_not_usd","no_earlier_snapshot","not_recorded",null]}},"required":["value","reason"]},"lastAttestationDate":{"type":"object","properties":{"value":{"type":["string","null"]},"reason":{"type":["string","null"],"enum":["source_not_available","no_snapshot_match","ambiguous_ticker_match","not_in_directory","no_data","peg_not_usd","no_earlier_snapshot","not_recorded",null]}},"required":["value","reason"]}},"required":["name","issuer","pegCurrency","assetClass","circulatingSupplyUsd","priceUsd","pegDeviationBps","chains","jurisdiction","regulatoryStatus","regulatoryFramework","lastAttestationDate"]},"CorridorOffering":{"type":"object","properties":{"eligibilityId":{"type":"string"},"offeringId":{"type":"string"},"offeringName":{"type":["string","null"]},"operationalCategory":{"type":["string","null"]},"provider":{"type":["object","null"],"properties":{"id":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"}},"required":["id","slug","name"]},"eligibilityStatus":{"type":"string"},"environments":{"type":"array","items":{"type":"string"}},"assets":{"type":"object","properties":{"scope":{"type":"string"},"symbols":{"type":"array","items":{"type":"string"}}},"required":["scope","symbols"]},"fiat":{"type":"object","properties":{"scope":{"type":"string"},"currencies":{"type":"array","items":{"type":"string"}}},"required":["scope","currencies"]},"rails":{"type":"object","properties":{"scope":{"type":"string"},"keys":{"type":"array","items":{"type":"string"}}},"required":["scope","keys"]},"lastVerifiedAt":{"type":["string","null"]},"validFrom":{"type":["string","null"]},"validTo":{"type":["string","null"]}},"required":["eligibilityId","offeringId","offeringName","operationalCategory","provider","eligibilityStatus","environments","assets","fiat","rails","lastVerifiedAt","validFrom","validTo"]},"DirectoryIssuersResponse":{"type":"object","properties":{"issuers":{"type":"array","items":{"$ref":"#/components/schemas/DirectoryIssuer"}},"total":{"type":"integer"},"pagination":{"type":"object","properties":{"limit":{"type":"integer"},"offset":{"type":"integer"}},"required":["limit","offset"]},"marketData":{"$ref":"#/components/schemas/MarketDataStatus"}},"required":["issuers","total","pagination","marketData"]},"DirectoryIssuerResponse":{"type":"object","properties":{"issuer":{"$ref":"#/components/schemas/DirectoryIssuer"},"marketData":{"$ref":"#/components/schemas/MarketDataStatus"}},"required":["issuer","marketData"]},"DirectoryProtocolsResponse":{"type":"object","properties":{"protocols":{"type":"array","items":{"$ref":"#/components/schemas/Protocol"}},"total":{"type":"integer"},"pagination":{"type":"object","properties":{"limit":{"type":"integer"},"offset":{"type":"integer"}},"required":["limit","offset"]}},"required":["protocols","total","pagination"]},"DirectoryCompareResponse":{"type":"object","properties":{"comparison":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/CompareEntry"}},"dimensions":{"type":"array","items":{"type":"string","enum":["name","issuer","pegCurrency","assetClass","circulatingSupplyUsd","priceUsd","pegDeviationBps","chains","jurisdiction","regulatoryStatus","regulatoryFramework","lastAttestationDate"]}},"notFound":{"type":"array","items":{"type":"string"}},"marketData":{"$ref":"#/components/schemas/MarketDataStatus"}},"required":["comparison","dimensions","notFound","marketData"]},"DirectoryCorridorsResponse":{"type":"object","properties":{"corridors":{"type":"array","items":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"},"offerings":{"type":"array","items":{"$ref":"#/components/schemas/CorridorOffering"}}},"required":["from","to","offerings"]}},"reason":{"type":["string","null"],"enum":["no_corridor_scoped_eligibility",null]},"provenance":{"$ref":"#/components/schemas/DirectoryProvenance"}},"required":["corridors","reason","provenance"]},"DirectoryAnalyticsResponse":{"oneOf":[{"type":"object","properties":{"metric":{"type":"string","const":"total-supply"},"period":{"type":"string"},"chain":{"type":["string","null"]},"totalSupplyUsd":{"type":"string"},"assetCount":{"type":"integer"},"change":{"type":"object","properties":{"value":{"type":["object","null"],"properties":{"fromSnapshotDate":{"type":"string"},"absoluteUsd":{"type":"string"},"percent":{"type":"number"}},"required":["fromSnapshotDate","absoluteUsd","percent"]},"reason":{"type":["string","null"],"enum":["source_not_available","no_snapshot_match","ambiguous_ticker_match","not_in_directory","no_data","peg_not_usd","no_earlier_snapshot","not_recorded",null]}},"required":["value","reason"]},"marketData":{"$ref":"#/components/schemas/MarketDataStatus"}},"required":["metric","period","chain","totalSupplyUsd","assetCount","change","marketData"]},{"type":"object","properties":{"metric":{"type":"string","const":"supply-by-chain"},"period":{"type":"string"},"chain":{"type":["string","null"]},"chains":{"type":"array","items":{"type":"object","properties":{"chain":{"type":"string"},"usd":{"type":"string"},"assetCount":{"type":"integer"}},"required":["chain","usd","assetCount"]}},"marketData":{"$ref":"#/components/schemas/MarketDataStatus"}},"required":["metric","period","chain","chains","marketData"]},{"type":"object","properties":{"metric":{"type":"string","const":"supply-by-peg-type"},"period":{"type":"string"},"chain":{"type":["string","null"]},"pegTypes":{"type":"array","items":{"type":"object","properties":{"pegType":{"type":"string"},"usd":{"type":"string"},"assetCount":{"type":"integer"}},"required":["pegType","usd","assetCount"]}},"marketData":{"$ref":"#/components/schemas/MarketDataStatus"}},"required":["metric","period","chain","pegTypes","marketData"]},{"type":"object","properties":{"metric":{"type":"string","const":"peg-deviations"},"period":{"type":"string"},"chain":{"type":["string","null"]},"samples":{"type":"integer"},"averageDeviationBps":{"type":"object","properties":{"value":{"type":["number","null"]},"reason":{"type":["string","null"],"enum":["source_not_available","no_snapshot_match","ambiguous_ticker_match","not_in_directory","no_data","peg_not_usd","no_earlier_snapshot","not_recorded",null]}},"required":["value","reason"]},"maxDeviationBps":{"type":"object","properties":{"value":{"type":["number","null"]},"reason":{"type":["string","null"],"enum":["source_not_available","no_snapshot_match","ambiguous_ticker_match","not_in_directory","no_data","peg_not_usd","no_earlier_snapshot","not_recorded",null]}},"required":["value","reason"]},"largest":{"type":"array","items":{"type":"object","properties":{"symbol":{"type":"string"},"priceUsd":{"type":"string"},"deviationBps":{"type":"number"}},"required":["symbol","priceUsd","deviationBps"]}},"marketData":{"$ref":"#/components/schemas/MarketDataStatus"}},"required":["metric","period","chain","samples","averageDeviationBps","maxDeviationBps","largest","marketData"]}]},"StablecoinSpec":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]*$","description":"Solidity contract identifier."},"symbol":{"type":"string","minLength":1},"type":{"type":"string","minLength":1},"features":{"type":"array","items":{"type":"string"}},"collateral":{"type":"string"},"initialSupply":{"anyOf":[{"type":"string"},{"type":"number"}]},"accessControl":{"type":"string"}},"required":["name","symbol","type"]},"BankAccount":{"type":"object","properties":{"type":{"type":"string","enum":["us_ach","sepa","fps","pix","wire","generic"]},"holderName":{"type":"string","minLength":1},"holderType":{"type":"string","enum":["individual","business"]},"routingNumber":{"type":"string"},"accountNumber":{"type":"string"},"iban":{"type":"string"},"bic":{"type":"string"},"sortCode":{"type":"string"},"pixKey":{"type":"string"}},"required":["type","holderName","holderType"]},"Person":{"type":"object","properties":{"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"address":{"type":"object","properties":{"line1":{"type":"string"},"line2":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"postalCode":{"type":"string"},"country":{"type":"string"}},"required":["line1","city","postalCode","country"],"description":"Used only when line1, city, postalCode and country are all present."}},"required":["firstName","lastName"]},"ReserveComposition":{"type":"array","items":{"type":"object","properties":{"asset_type":{"type":"string","enum":["currency","central_bank_balance","bank_deposit","treasury","sovereign_debt","repo","reverse_repo","government_money_market_fund","money_market_fund","other_government_asset","corporate_debt","equity","commodity","crypto_asset","other"]},"weight_bps":{"type":"integer","minimum":1,"maximum":10000},"maturity_days":{"type":"integer","minimum":0,"maximum":36500},"issuer_rating":{"type":"string","maxLength":120},"custodian":{"type":"string","maxLength":120},"jurisdiction":{"type":"string","pattern":"^(?:[A-Z]{2}|EU)$"},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"tokenized":{"type":"boolean"}},"required":["asset_type","weight_bps"],"additionalProperties":false},"minItems":1,"maxItems":100},"ReserveValidationReport":{"type":"object","properties":{"validator":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"string"}},"required":["id","version"],"additionalProperties":false},"framework":{"type":"string","enum":["GENIUS_ACT","MICA_EMT","MICA_ART","DABA"]},"mode":{"type":"string","const":"strict"},"valid":{"type":"boolean"},"manualReviewRequired":{"type":"boolean"},"errors":{"type":"array","items":{"type":"object","properties":{"ruleId":{"type":"string"},"severity":{"type":"string","enum":["error","warning"]},"message":{"type":"string"},"entryIndex":{"type":["integer","null"]},"citation":{"type":["string","null"]},"basis":{"type":"string","enum":["statute","platform_policy","fail_closed"]}},"required":["ruleId","severity","message","entryIndex","citation","basis"],"additionalProperties":false}},"warnings":{"type":"array","items":{"type":"object","properties":{"ruleId":{"type":"string"},"severity":{"type":"string","enum":["error","warning"]},"message":{"type":"string"},"entryIndex":{"type":["integer","null"]},"citation":{"type":["string","null"]},"basis":{"type":"string","enum":["statute","platform_policy","fail_closed"]}},"required":["ruleId","severity","message","entryIndex","citation","basis"],"additionalProperties":false}},"evidenceNeeded":{"type":"array","items":{"type":"object","properties":{"ruleId":{"type":"string"},"description":{"type":"string"},"citation":{"type":["string","null"]},"scope":{"type":"string","enum":["portfolio","entries"]},"entryIndexes":{"type":"array","items":{"type":"integer"}}},"required":["ruleId","description","citation","scope","entryIndexes"],"additionalProperties":false}},"rulesEvaluated":{"type":"array","items":{"type":"object","properties":{"ruleId":{"type":"string"},"description":{"type":"string"},"citation":{"type":["string","null"]},"sourceUrl":{"type":["string","null"]},"basis":{"type":"string","enum":["statute","platform_policy","fail_closed"]}},"required":["ruleId","description","citation","sourceUrl","basis"],"additionalProperties":false}},"summary":{"type":"object","properties":{"entryCount":{"type":"integer"},"weightBpsByAssetType":{"type":"object","additionalProperties":{"type":"integer"}}},"required":["entryCount","weightBpsByAssetType"],"additionalProperties":false}},"required":["validator","framework","mode","valid","manualReviewRequired","errors","warnings","evidenceNeeded","rulesEvaluated","summary"],"additionalProperties":false},"CardStatus":{"type":"string","enum":["active","frozen","deactivated"]},"CardLimits":{"type":"object","properties":{"perTransaction":{"type":"string","description":"Decimal string in `asset` units."},"daily":{"type":"string","description":"Decimal string in `asset` units."}}},"CardBalance":{"type":"object","properties":{"asset":{"type":"string","description":"Stablecoin asset key, such as USDC."},"available":{"type":"string","description":"Funds the card can spend now."},"held":{"type":"string","description":"Funds reserved by approved authorizations that have not settled."}},"required":["asset","available","held"]},"Card":{"type":"object","properties":{"cardId":{"type":"string"},"programmeId":{"type":"string"},"cardholderId":{"type":"string"},"status":{"$ref":"#/components/schemas/CardStatus"},"limits":{"$ref":"#/components/schemas/CardLimits"}},"required":["cardId","programmeId","cardholderId","status","limits"]},"CardProvider":{"type":"object","properties":{"slug":{"type":"string"},"simulated":{"type":"boolean"},"label":{"type":"string","description":"Present for the card issuing simulator."}},"required":["slug","simulated"]},"ProviderCallEvidence":{"type":"object","properties":{"requestHash":{"type":"string"},"responseHash":{"type":"string"},"timestamp":{"type":"string"}},"required":["requestHash","responseHash","timestamp"],"description":"Audit record for one provider call. The same call is recorded in provider_operation_events."},"CardTransaction":{"oneOf":[{"type":"object","properties":{"transactionId":{"type":"string"},"cardId":{"type":"string"},"type":{"type":"string","const":"funding"},"amount":{"type":"string","description":"Decimal string in `asset` units."},"asset":{"type":"string","description":"Stablecoin asset key, such as USDC."},"occurredAt":{"type":["string","null"]}},"required":["transactionId","cardId","type","amount","asset","occurredAt"]},{"type":"object","properties":{"transactionId":{"type":"string"},"cardId":{"type":"string"},"type":{"type":"string","const":"authorization"},"decision":{"type":"string","enum":["approved","declined"]},"declineReason":{"type":["string","null"],"enum":["card_deactivated","card_frozen","over_transaction_limit","over_daily_limit","insufficient_balance",null]},"amount":{"type":"string","description":"Decimal string in `asset` units."},"asset":{"type":"string","description":"Stablecoin asset key, such as USDC."},"merchant":{"type":"object","properties":{"name":{"type":"string"},"categoryCode":{"type":"string","description":"ISO 18245 merchant category code, when the issuer reports one."},"country":{"type":"string","description":"ISO 3166-1 alpha-2 code."}},"required":["name"]},"occurredAt":{"type":"string"}},"required":["transactionId","cardId","type","decision","declineReason","amount","asset","merchant","occurredAt"]}]}},"responses":{"AgentError":{"description":"Agent API error. The operation lists its codes in x-error-codes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"OrganizationError":{"description":"Organization command error. The operation lists its codes in x-error-codes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationErrorResponse"}}}},"PlainError":{"description":"Scheduler endpoint error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlainErrorResponse"}}}}}},"security":[{"bearerAuth":[]}],"paths":{"/":{"get":{"operationId":"agent_index","summary":"List agent endpoints","description":"Returns the declared agent endpoints with their availability. Availability: Available. Requires the projects:read API key scope.","tags":["meta"],"security":[{"bearerAuth":[]}],"x-availability":"available","x-request-validation":"enforced","x-required-scope":"projects:read","x-error-codes":{"401":["UNAUTHORIZED"],"403":["FORBIDDEN"],"429":["RATE_LIMIT_EXCEEDED"],"500":["INTERNAL_ERROR"],"503":["RATE_LIMIT_UNAVAILABLE"]},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","description":"JSON object. This response does not yet have a published schema."}}}},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: FORBIDDEN."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: INTERNAL_ERROR."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_UNAVAILABLE."}}}},"/openapi":{"get":{"operationId":"agent_openapi","summary":"Agent API OpenAPI document","description":"The OpenAPI 3.1 document generated from the route contracts. Public; no key required. Availability: Available.","tags":["meta"],"security":[],"x-availability":"available","x-request-validation":"enforced","x-error-codes":{},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","additionalProperties":{},"description":"This OpenAPI 3.1 document."}}}}}}},"/api/organizations/{organizationId}/audit":{"get":{"operationId":"organization_audit_history","summary":"Organization audit history","description":"Read a page of organization audit events. Requires a production credential with analytics:read and current organization audit.read permission. All supplied filters apply together. Availability: Available. Requires the analytics:read API key scope.","tags":["auth"],"security":[{"bearerAuth":[]}],"x-availability":"available","x-request-validation":"enforced","x-required-scope":"analytics:read","x-error-codes":{"400":["INVALID_INPUT","VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["FORBIDDEN"],"404":["NOT_FOUND"],"429":["RATE_LIMIT_EXCEEDED"],"500":["INTERNAL_ERROR"],"503":["RATE_LIMIT_UNAVAILABLE"]},"servers":[{"url":"/"}],"parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"}},{"name":"commandId","in":"query","required":false,"schema":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"}},{"name":"resourceId","in":"query","required":false,"schema":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"}},{"name":"action","in":"query","required":false,"schema":{"type":"string","pattern":"^[a-z][a-z0-9_.:-]{0,119}$"}},{"name":"from","in":"query","required":false,"schema":{"type":"string","minLength":20,"maxLength":32},"description":"Inclusive start timestamp with UTC offset; at most six fractional second digits."},{"name":"until","in":"query","required":false,"schema":{"type":"string","minLength":20,"maxLength":32},"description":"Exclusive end timestamp with UTC offset, after the start."},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":512,"pattern":"^[A-Za-z0-9_-]+$"}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","required":["events","nextCursor"],"additionalProperties":true,"properties":{"events":{"type":"array","maxItems":50,"items":{"type":"object","required":["id","principal_id","actor_user_id","action","resource_type","resource_id","previous_revision","resulting_revision","policy_revision","command_id","outcome","details","created_at"],"properties":{"id":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"},"principal_id":{"type":["string","null"]},"actor_user_id":{"type":["string","null"]},"action":{"type":"string"},"resource_type":{"type":"string"},"resource_id":{"type":["string","null"]},"previous_revision":{"type":["integer","null"]},"resulting_revision":{"type":["integer","null"]},"policy_revision":{"type":["integer","null"]},"command_id":{"type":["string","null"]},"outcome":{"type":"string"},"details":{"type":"object","additionalProperties":true},"created_at":{"type":"string","minLength":20,"maxLength":32}},"additionalProperties":true}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: INVALID_INPUT, VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: FORBIDDEN."},"404":{"$ref":"#/components/responses/AgentError","description":"Error codes: NOT_FOUND."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: INTERNAL_ERROR."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_UNAVAILABLE."}}}},"/api/compliance/workspace":{"get":{"operationId":"compliance_workspace","summary":"Get compliance workspace","description":"Read the organization work queue, recorded license deadlines, captured changes, and jurisdiction coverage. Requires compliance:read and active membership in the requested organization. Availability: Available. Requires the compliance:read API key scope.","tags":["comply"],"security":[{"bearerAuth":[]}],"x-availability":"available","x-request-validation":"enforced","x-required-scope":"compliance:read","x-error-codes":{"400":["INVALID_INPUT","VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["FORBIDDEN"],"404":["NOT_FOUND"],"429":["RATE_LIMIT_EXCEEDED"],"500":["INTERNAL_ERROR"],"503":["RATE_LIMIT_UNAVAILABLE"]},"servers":[{"url":"/"}],"parameters":[{"name":"organizationId","in":"query","required":true,"schema":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"type":"string"},"generatedAt":{"type":"string"},"basis":{"const":"organization_records"},"limitations":{"type":"array","items":{"type":"string"}},"approvalsAccess":{"enum":["included","not_permitted"]},"metrics":{"type":"object","properties":{"licenses":{"type":"integer","minimum":0},"activeRecords":{"type":"integer","minimum":0},"pastExpiry":{"type":"integer","minimum":0},"openConditions":{"type":"integer","minimum":0},"unreviewedChanges":{"type":"integer","minimum":0},"pendingApprovals":{"type":["integer","null"],"minimum":0},"jurisdictionsWithLicenses":{"type":"integer","minimum":0},"jurisdictions":{"type":"integer","minimum":0},"jurisdictionsWithSources":{"type":"integer","minimum":0}},"required":["licenses","activeRecords","pastExpiry","openConditions","unreviewedChanges","pendingApprovals","jurisdictionsWithLicenses","jurisdictions","jurisdictionsWithSources"],"additionalProperties":true},"tasks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string"},"title":{"type":"string"},"detail":{"type":"string"},"jurisdiction":{"type":["string","null"]},"owner":{"type":["string","null"]},"dueDate":{"type":["string","null"]},"urgency":{"type":"string"},"href":{"type":"string"}},"required":["id","kind","title","detail","jurisdiction","owner","dueDate","urgency","href"],"additionalProperties":true}},"jurisdictions":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"},"kind":{"type":"string"},"coverage":{"type":"string"},"verification":{"type":"string"},"lastVerifiedAt":{"type":["string","null"]},"sourceCount":{"type":"integer","minimum":0},"frameworkCount":{"type":"integer","minimum":0},"workflowCount":{"type":"integer","minimum":0},"licenseCount":{"type":"integer","minimum":0},"openChangeCount":{"type":"integer","minimum":0}},"required":["code","name","kind","coverage","verification","lastVerifiedAt","sourceCount","frameworkCount","workflowCount","licenseCount","openChangeCount"],"additionalProperties":true}},"licenses":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"organizationId":{"type":"string"},"jurisdictionCode":{"type":"string"},"frameworkId":{"type":"string"},"applicant":{"type":"string"},"licenseType":{"type":"string"},"status":{"type":"string"},"owner":{"type":"string"},"expiryDate":{"type":["string","null"]},"nextRenewalDate":{"type":["string","null"]},"nextFilingDate":{"type":["string","null"]},"conditions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"description":{"type":"string"},"status":{"type":"string"},"dueDate":{"type":["string","null"]}},"required":["id","description","status","dueDate"],"additionalProperties":true}}},"required":["id","organizationId","jurisdictionCode","frameworkId","applicant","licenseType","status","owner","expiryDate","nextRenewalDate","nextFilingDate","conditions"],"additionalProperties":true}},"changes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"summary":{"type":"string"},"status":{"type":"string"},"impact":{"type":"string"},"publishedDate":{"type":"string"},"sourceUrl":{"type":["string","null"]},"sourceName":{"type":"string"},"reviewedAt":{"type":["string","null"]},"jurisdictions":{"type":"array","items":{"type":"string"}},"frameworks":{"type":"array","items":{"type":"string"}}},"required":["id","title","summary","status","impact","publishedDate","sourceUrl","sourceName","reviewedAt","jurisdictions","frameworks"],"additionalProperties":true}}},"required":["organizationId","generatedAt","basis","limitations","approvalsAccess","metrics","tasks","jurisdictions","licenses","changes"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: INVALID_INPUT, VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: FORBIDDEN."},"404":{"$ref":"#/components/responses/AgentError","description":"Error codes: NOT_FOUND."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: INTERNAL_ERROR."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_UNAVAILABLE."}}}},"/api/compliance/workspace/jurisdictions":{"get":{"operationId":"compliance_jurisdictions","summary":"Explore compliance jurisdictions","description":"Search global jurisdiction records and inspect source coverage, review dates, license records, and workflow availability. Requires compliance:read and active membership in the requested organization. Availability: Available. Requires the compliance:read API key scope.","tags":["comply"],"security":[{"bearerAuth":[]}],"x-availability":"available","x-request-validation":"enforced","x-required-scope":"compliance:read","x-error-codes":{"400":["INVALID_INPUT","VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["FORBIDDEN"],"404":["NOT_FOUND"],"429":["RATE_LIMIT_EXCEEDED"],"500":["INTERNAL_ERROR"],"503":["RATE_LIMIT_UNAVAILABLE"]},"servers":[{"url":"/"}],"parameters":[{"name":"organizationId","in":"query","required":true,"schema":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"}},{"name":"jurisdiction","in":"query","required":false,"schema":{"type":"string","pattern":"^[A-Z0-9_-]{2,16}$"}},{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":200}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":10000}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"type":"string"},"generatedAt":{"type":"string"},"basis":{"const":"organization_records"},"limitations":{"type":"array","items":{"type":"string"}},"data":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"},"kind":{"type":"string"},"coverage":{"type":"string"},"verification":{"type":"string"},"lastVerifiedAt":{"type":["string","null"]},"sourceCount":{"type":"integer","minimum":0},"frameworkCount":{"type":"integer","minimum":0},"workflowCount":{"type":"integer","minimum":0},"licenseCount":{"type":"integer","minimum":0},"openChangeCount":{"type":"integer","minimum":0}},"required":["code","name","kind","coverage","verification","lastVerifiedAt","sourceCount","frameworkCount","workflowCount","licenseCount","openChangeCount"],"additionalProperties":true}},"pagination":{"type":"object","properties":{"total":{"type":"integer","minimum":0},"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":0},"nextOffset":{"type":["integer","null"],"minimum":0}},"required":["total","offset","limit","nextOffset"],"additionalProperties":true}},"required":["organizationId","generatedAt","basis","limitations","data","pagination"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: INVALID_INPUT, VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: FORBIDDEN."},"404":{"$ref":"#/components/responses/AgentError","description":"Error codes: NOT_FOUND."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: INTERNAL_ERROR."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_UNAVAILABLE."}}}},"/api/compliance/workspace/licenses":{"get":{"operationId":"compliance_licenses","summary":"Read compliance license records","description":"Read recorded licenses by jurisdiction, legal entity, and owner, including conditions and deadlines. Requires compliance:read and active membership in the requested organization. Availability: Available. Requires the compliance:read API key scope.","tags":["comply"],"security":[{"bearerAuth":[]}],"x-availability":"available","x-request-validation":"enforced","x-required-scope":"compliance:read","x-error-codes":{"400":["INVALID_INPUT","VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["FORBIDDEN"],"404":["NOT_FOUND"],"429":["RATE_LIMIT_EXCEEDED"],"500":["INTERNAL_ERROR"],"503":["RATE_LIMIT_UNAVAILABLE"]},"servers":[{"url":"/"}],"parameters":[{"name":"organizationId","in":"query","required":true,"schema":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"}},{"name":"jurisdiction","in":"query","required":false,"schema":{"type":"string","pattern":"^[A-Z0-9_-]{2,16}$"}},{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":200}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":10000}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"type":"string"},"generatedAt":{"type":"string"},"basis":{"const":"organization_records"},"limitations":{"type":"array","items":{"type":"string"}},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"organizationId":{"type":"string"},"jurisdictionCode":{"type":"string"},"frameworkId":{"type":"string"},"applicant":{"type":"string"},"licenseType":{"type":"string"},"status":{"type":"string"},"owner":{"type":"string"},"expiryDate":{"type":["string","null"]},"nextRenewalDate":{"type":["string","null"]},"nextFilingDate":{"type":["string","null"]},"conditions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"description":{"type":"string"},"status":{"type":"string"},"dueDate":{"type":["string","null"]}},"required":["id","description","status","dueDate"],"additionalProperties":true}}},"required":["id","organizationId","jurisdictionCode","frameworkId","applicant","licenseType","status","owner","expiryDate","nextRenewalDate","nextFilingDate","conditions"],"additionalProperties":true}},"pagination":{"type":"object","properties":{"total":{"type":"integer","minimum":0},"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":0},"nextOffset":{"type":["integer","null"],"minimum":0}},"required":["total","offset","limit","nextOffset"],"additionalProperties":true}},"required":["organizationId","generatedAt","basis","limitations","data","pagination"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: INVALID_INPUT, VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: FORBIDDEN."},"404":{"$ref":"#/components/responses/AgentError","description":"Error codes: NOT_FOUND."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: INTERNAL_ERROR."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_UNAVAILABLE."}}}},"/api/compliance/workspace/changes":{"get":{"operationId":"compliance_changes","summary":"Read captured regulatory changes","description":"Read captured organization regulatory changes with source links, publication dates, and review states. Requires compliance:read and active membership in the requested organization. Availability: Available. Requires the compliance:read API key scope.","tags":["comply"],"security":[{"bearerAuth":[]}],"x-availability":"available","x-request-validation":"enforced","x-required-scope":"compliance:read","x-error-codes":{"400":["INVALID_INPUT","VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["FORBIDDEN"],"404":["NOT_FOUND"],"429":["RATE_LIMIT_EXCEEDED"],"500":["INTERNAL_ERROR"],"503":["RATE_LIMIT_UNAVAILABLE"]},"servers":[{"url":"/"}],"parameters":[{"name":"organizationId","in":"query","required":true,"schema":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"}},{"name":"jurisdiction","in":"query","required":false,"schema":{"type":"string","pattern":"^[A-Z0-9_-]{2,16}$"}},{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":200}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":10000}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"type":"string"},"generatedAt":{"type":"string"},"basis":{"const":"organization_records"},"limitations":{"type":"array","items":{"type":"string"}},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"summary":{"type":"string"},"status":{"type":"string"},"impact":{"type":"string"},"publishedDate":{"type":"string"},"sourceUrl":{"type":["string","null"]},"sourceName":{"type":"string"},"reviewedAt":{"type":["string","null"]},"jurisdictions":{"type":"array","items":{"type":"string"}},"frameworks":{"type":"array","items":{"type":"string"}}},"required":["id","title","summary","status","impact","publishedDate","sourceUrl","sourceName","reviewedAt","jurisdictions","frameworks"],"additionalProperties":true}},"pagination":{"type":"object","properties":{"total":{"type":"integer","minimum":0},"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":0},"nextOffset":{"type":["integer","null"],"minimum":0}},"required":["total","offset","limit","nextOffset"],"additionalProperties":true}},"required":["organizationId","generatedAt","basis","limitations","data","pagination"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: INVALID_INPUT, VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: FORBIDDEN."},"404":{"$ref":"#/components/responses/AgentError","description":"Error codes: NOT_FOUND."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: INTERNAL_ERROR."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_UNAVAILABLE."}}}},"/contracts/generate":{"post":{"operationId":"contracts_generate","summary":"Generate Solidity source from stablecoin spec","description":"Structured contract generation for stablecoin builders. Output is a draft for human review. Availability: Available. Uses the configured model when available, otherwise a deterministic template. Requires the projects:write API key scope.","tags":["deploy"],"security":[{"bearerAuth":[]}],"x-availability":"available","x-availability-note":"Uses the configured model when available, otherwise a deterministic template.","x-request-validation":"documented","x-required-scope":"projects:write","x-error-codes":{"400":["VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["FORBIDDEN"],"409":["IDEMPOTENCY_IN_PROGRESS"],"422":["IDEMPOTENCY_KEY_REUSED"],"429":["RATE_LIMIT_EXCEEDED"],"500":["INTERNAL_ERROR"],"503":["IDEMPOTENCY_UNAVAILABLE","RATE_LIMIT_UNAVAILABLE"]},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional. When supplied, replays return the original response.","schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","description":"JSON object. This response does not yet have a published schema."}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: FORBIDDEN."},"409":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_IN_PROGRESS."},"422":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_KEY_REUSED."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: INTERNAL_ERROR."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_UNAVAILABLE, RATE_LIMIT_UNAVAILABLE."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"spec":{"$ref":"#/components/schemas/StablecoinSpec"},"style":{"type":"string","enum":["minimal","production","auditable"]}},"required":["spec"]}}}}}},"/contracts/validate":{"post":{"operationId":"contracts_validate","summary":"Validate source and security controls","description":"Runs pattern checks and stablecoin control checks with an optional model overlay. Availability: Available. securityScore is a heuristic from pattern checks, not the automated-checks ruleset at /api/security/analyze/v2. Requires the projects:write API key scope.","tags":["deploy"],"security":[{"bearerAuth":[]}],"x-availability":"available","x-availability-note":"securityScore is a heuristic from pattern checks, not the automated-checks ruleset at /api/security/analyze/v2.","x-request-validation":"documented","x-required-scope":"projects:write","x-error-codes":{"400":["VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["FORBIDDEN"],"409":["IDEMPOTENCY_IN_PROGRESS"],"422":["IDEMPOTENCY_KEY_REUSED"],"429":["RATE_LIMIT_EXCEEDED"],"500":["INTERNAL_ERROR"],"503":["IDEMPOTENCY_UNAVAILABLE","RATE_LIMIT_UNAVAILABLE"]},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional. When supplied, replays return the original response.","schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","description":"JSON object. This response does not yet have a published schema."}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: FORBIDDEN."},"409":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_IN_PROGRESS."},"422":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_KEY_REUSED."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: INTERNAL_ERROR."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_UNAVAILABLE, RATE_LIMIT_UNAVAILABLE."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"source":{"type":"string","minLength":1},"contractName":{"type":"string"},"minimumSecurityScore":{"type":"number"}},"required":["source"]}}}}}},"/contracts/simulate":{"post":{"operationId":"contracts_simulate","summary":"Simulate deployment and estimate gas","description":"Produces predicted address, gas estimate, and constructor diagnostics. Availability: Available. gasCostUsd falls back to a fixed value when no chain fee estimate is available. Requires the projects:write API key scope.","tags":["deploy"],"security":[{"bearerAuth":[]}],"x-availability":"available","x-availability-note":"gasCostUsd falls back to a fixed value when no chain fee estimate is available.","x-request-validation":"documented","x-required-scope":"projects:write","x-error-codes":{"400":["VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["FORBIDDEN"],"409":["IDEMPOTENCY_IN_PROGRESS"],"422":["COMPILATION_ERROR","IDEMPOTENCY_KEY_REUSED"],"429":["RATE_LIMIT_EXCEEDED"],"500":["INTERNAL_ERROR"],"503":["IDEMPOTENCY_UNAVAILABLE","RATE_LIMIT_UNAVAILABLE"]},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional. When supplied, replays return the original response.","schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","description":"JSON object. This response does not yet have a published schema."}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: FORBIDDEN."},"409":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_IN_PROGRESS."},"422":{"$ref":"#/components/responses/AgentError","description":"Error codes: COMPILATION_ERROR, IDEMPOTENCY_KEY_REUSED."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: INTERNAL_ERROR."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_UNAVAILABLE, RATE_LIMIT_UNAVAILABLE."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"source":{"type":"string","minLength":1},"contractName":{"type":"string"},"constructorArgs":{"type":"array","items":{}},"deploymentType":{"type":"string","enum":["CREATE","CREATE2"]},"salt":{"type":"string"},"chain":{"type":"string","description":"Chain key enabled for this capability at runtime, for example base-sepolia."},"deployerAddress":{"type":"string"}},"required":["source"]}}}}}},"/contracts/compile":{"post":{"operationId":"contracts_compile","summary":"Compile Solidity source","description":"Returns ABI, bytecode, deployed bytecode, and compiler metadata. Availability: Available. Requires the projects:write API key scope.","tags":["deploy"],"security":[{"bearerAuth":[]}],"x-availability":"available","x-request-validation":"documented","x-required-scope":"projects:write","x-error-codes":{"400":["VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["FORBIDDEN"],"409":["IDEMPOTENCY_IN_PROGRESS"],"422":["COMPILATION_ERROR","IDEMPOTENCY_KEY_REUSED"],"429":["RATE_LIMIT_EXCEEDED"],"500":["INTERNAL_ERROR"],"503":["IDEMPOTENCY_UNAVAILABLE","RATE_LIMIT_UNAVAILABLE"]},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional. When supplied, replays return the original response.","schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","description":"JSON object. This response does not yet have a published schema."}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: FORBIDDEN."},"409":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_IN_PROGRESS."},"422":{"$ref":"#/components/responses/AgentError","description":"Error codes: COMPILATION_ERROR, IDEMPOTENCY_KEY_REUSED."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: INTERNAL_ERROR."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_UNAVAILABLE, RATE_LIMIT_UNAVAILABLE."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"source":{"type":"string","minLength":1},"contractName":{"type":"string"},"compilerVersion":{"type":"string"},"optimizerRuns":{"type":"integer","minimum":0}},"required":["source"]}}}}}},"/contracts/deploy":{"post":{"operationId":"contracts_deploy","summary":"Deploy contract (unavailable)","description":"Agent transaction submission is unavailable. Use the organization-scoped Build deployment flow. Availability: Unavailable. Validates the request, then answers 503 DEPLOYMENT_RUNTIME_UNAVAILABLE. No transaction is sent. Requires the projects:write API key scope.","tags":["deploy"],"security":[{"bearerAuth":[]}],"x-availability":"unavailable","x-availability-note":"Validates the request, then answers 503 DEPLOYMENT_RUNTIME_UNAVAILABLE. No transaction is sent.","x-request-validation":"documented","x-required-scope":"projects:write","x-error-codes":{"400":["IDEMPOTENCY_KEY_REQUIRED","VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["FORBIDDEN"],"409":["IDEMPOTENCY_IN_PROGRESS"],"422":["IDEMPOTENCY_KEY_REUSED"],"429":["RATE_LIMIT_EXCEEDED"],"500":["INTERNAL_ERROR"],"503":["DEPLOYMENT_RUNTIME_UNAVAILABLE","IDEMPOTENCY_UNAVAILABLE","RATE_LIMIT_UNAVAILABLE"]},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required. Replays return the original response; reuse with a different body is rejected.","schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"202":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","description":"JSON object. This response does not yet have a published schema."}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_KEY_REQUIRED, VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: FORBIDDEN."},"409":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_IN_PROGRESS."},"422":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_KEY_REUSED."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: INTERNAL_ERROR."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: DEPLOYMENT_RUNTIME_UNAVAILABLE, IDEMPOTENCY_UNAVAILABLE, RATE_LIMIT_UNAVAILABLE."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"abi":{"type":"array","items":{}},"bytecode":{"type":"string","pattern":"^0x"},"constructorArgs":{"type":"array","items":{}},"chain":{"type":"string","description":"Chain key enabled for this capability at runtime, for example base-sepolia."},"deploymentType":{"type":"string","enum":["CREATE","CREATE2"]},"deployerAddress":{"type":"string"},"signedTransaction":{"type":"string"},"useServerKey":{"type":"boolean"},"source":{"type":"string"},"compilerVersion":{"type":"string"},"optimizerRuns":{"type":"number"},"webhookUrl":{"type":"string"},"webhookSecret":{"type":"string"}},"required":["abi","bytecode"]}}}}}},"/contracts/deploy/{deploymentId}":{"get":{"operationId":"contracts_deploy_status","summary":"Poll deployment status","description":"Returns deployment progression for a recorded deployment. Availability: Available. Legacy records without a verified chain receipt answer 409 LEGACY_DEPLOYMENT_UNVERIFIED. Requires the projects:read API key scope.","tags":["deploy"],"security":[{"bearerAuth":[]}],"x-availability":"available","x-availability-note":"Legacy records without a verified chain receipt answer 409 LEGACY_DEPLOYMENT_UNVERIFIED.","x-request-validation":"documented","x-required-scope":"projects:read","x-error-codes":{"401":["UNAUTHORIZED"],"403":["FORBIDDEN"],"404":["NOT_FOUND"],"409":["LEGACY_DEPLOYMENT_UNVERIFIED"],"429":["RATE_LIMIT_EXCEEDED"],"500":["INTERNAL_ERROR"],"503":["RATE_LIMIT_UNAVAILABLE"]},"parameters":[{"name":"deploymentId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","description":"JSON object. This response does not yet have a published schema."}}}},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: FORBIDDEN."},"404":{"$ref":"#/components/responses/AgentError","description":"Error codes: NOT_FOUND."},"409":{"$ref":"#/components/responses/AgentError","description":"Error codes: LEGACY_DEPLOYMENT_UNVERIFIED."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: INTERNAL_ERROR."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_UNAVAILABLE."}}}},"/contracts/verify":{"post":{"operationId":"contracts_verify","summary":"Record contract verification metadata","description":"Records explorer verification metadata for a deployment. Availability: Available. Does not submit source to an explorer. A status of \"verified\" is not explorer confirmation. Requires the projects:write API key scope.","tags":["deploy"],"security":[{"bearerAuth":[]}],"x-availability":"available","x-availability-note":"Does not submit source to an explorer. A status of \"verified\" is not explorer confirmation.","x-request-validation":"documented","x-required-scope":"projects:write","x-error-codes":{"400":["IDEMPOTENCY_KEY_REQUIRED","VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["FORBIDDEN"],"404":["NOT_FOUND"],"409":["IDEMPOTENCY_IN_PROGRESS"],"422":["IDEMPOTENCY_KEY_REUSED"],"429":["RATE_LIMIT_EXCEEDED"],"500":["INTERNAL_ERROR"],"503":["IDEMPOTENCY_UNAVAILABLE","RATE_LIMIT_UNAVAILABLE"]},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required. Replays return the original response; reuse with a different body is rejected.","schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","description":"JSON object. This response does not yet have a published schema."}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_KEY_REQUIRED, VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: FORBIDDEN."},"404":{"$ref":"#/components/responses/AgentError","description":"Error codes: NOT_FOUND."},"409":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_IN_PROGRESS."},"422":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_KEY_REUSED."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: INTERNAL_ERROR."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_UNAVAILABLE, RATE_LIMIT_UNAVAILABLE."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"deploymentId":{"type":"string"},"contractAddress":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"chain":{"type":"string","description":"Chain key enabled for this capability at runtime, for example base-sepolia."},"source":{"type":"string","minLength":1},"contractName":{"type":"string","minLength":1},"constructorArgs":{"type":"array","items":{}},"compilerVersion":{"type":"string"},"optimizerRuns":{"type":"number"}},"required":["contractAddress","source","contractName"]}}}}}},"/contracts/launch":{"post":{"operationId":"contracts_launch","summary":"Run generate, validate, compile and simulate","description":"Sequential generate -> validate -> compile -> simulate pipeline. Availability: Available. deploy: true answers 503 DEPLOYMENT_RUNTIME_UNAVAILABLE. Requires the projects:write API key scope.","tags":["deploy"],"security":[{"bearerAuth":[]}],"x-availability":"available","x-availability-note":"deploy: true answers 503 DEPLOYMENT_RUNTIME_UNAVAILABLE.","x-request-validation":"documented","x-required-scope":"projects:write","x-error-codes":{"400":["IDEMPOTENCY_KEY_REQUIRED","VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["FORBIDDEN"],"409":["IDEMPOTENCY_IN_PROGRESS"],"422":["IDEMPOTENCY_KEY_REUSED"],"429":["RATE_LIMIT_EXCEEDED"],"500":["INTERNAL_ERROR"],"503":["DEPLOYMENT_RUNTIME_UNAVAILABLE","IDEMPOTENCY_UNAVAILABLE","PERSISTENCE_ERROR","RATE_LIMIT_UNAVAILABLE"]},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required. Replays return the original response; reuse with a different body is rejected.","schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","description":"JSON object. This response does not yet have a published schema."}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_KEY_REQUIRED, VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: FORBIDDEN."},"409":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_IN_PROGRESS."},"422":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_KEY_REUSED."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: INTERNAL_ERROR."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: DEPLOYMENT_RUNTIME_UNAVAILABLE, IDEMPOTENCY_UNAVAILABLE, PERSISTENCE_ERROR, RATE_LIMIT_UNAVAILABLE."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"spec":{"$ref":"#/components/schemas/StablecoinSpec"},"style":{"type":"string","enum":["minimal","production","auditable"]},"constructorArgs":{"type":"array","items":{}},"deploymentType":{"type":"string","enum":["CREATE","CREATE2"]},"chain":{"type":"string","description":"Chain key enabled for this capability at runtime, for example base-sepolia."},"deploy":{"type":"boolean","description":"true answers 503 DEPLOYMENT_RUNTIME_UNAVAILABLE."},"minimumSecurityScore":{"type":"number"},"signedTransaction":{"type":"string"},"useServerKey":{"type":"boolean"},"webhookUrl":{"type":"string"},"webhookSecret":{"type":"string"}},"required":["spec"]}}}}}},"/contracts/webhooks/dispatch":{"post":{"operationId":"contracts_webhooks_dispatch","summary":"Dispatch deployment webhooks","description":"Scheduler endpoint that delivers queued deployment webhooks. Availability: Available.","tags":["deploy"],"security":[{"cronSecret":[]}],"x-availability":"available","x-request-validation":"documented","x-internal":true,"x-error-codes":{"401":[],"500":[]},"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","description":"JSON object. This response does not yet have a published schema."}}}},"401":{"$ref":"#/components/responses/PlainError","description":"Missing or wrong scheduler secret."},"500":{"$ref":"#/components/responses/PlainError","description":"The dispatch run failed."}}}},"/directory/issuers":{"get":{"operationId":"directory_issuers","summary":"List stablecoin issuers and assets","description":"Legacy issuer directory records (without seeded market figures) and effectively public canonical stablecoin assets. Circulating supply comes from the market snapshot with its retrieval time, or is null with a reason. Availability: Available. Requires the analytics:read API key scope.","tags":["discover"],"security":[{"bearerAuth":[]}],"x-availability":"available","x-request-validation":"enforced","x-required-scope":"analytics:read","x-error-codes":{"400":["VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["FORBIDDEN"],"429":["RATE_LIMIT_EXCEEDED"],"500":["INTERNAL_ERROR"],"503":["RATE_LIMIT_UNAVAILABLE","SOURCE_NOT_AVAILABLE"]},"parameters":[{"name":"ticker","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":32},"description":"Exact ticker or canonical symbol, case-insensitive."},{"name":"chain","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":64},"description":"Chain name the issuer lists, case-insensitive."},{"name":"jurisdiction","in":"query","required":false,"schema":{"type":"string","pattern":"^[A-Za-z]{2}$"},"description":"ISO 3166-1 alpha-2 domicile country."},{"name":"regulatoryStatus","in":"query","required":false,"schema":{"type":"string","enum":["regulated","unverified","pending","non_regulated"]}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","enum":["name","ticker","circulatingSupply"],"default":"name"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","enum":["asc","desc"]},"description":"Sort direction. Defaults to ascending for text and descending for supply."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20},"description":"Page size, 1 to 100."},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":10000,"default":0},"description":"Items to skip."}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","properties":{"issuers":{"type":"array","items":{"$ref":"#/components/schemas/DirectoryIssuer"}},"total":{"type":"integer"},"pagination":{"type":"object","properties":{"limit":{"type":"integer"},"offset":{"type":"integer"}},"required":["limit","offset"]},"marketData":{"$ref":"#/components/schemas/MarketDataStatus"}},"required":["issuers","total","pagination","marketData"]}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: FORBIDDEN."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: INTERNAL_ERROR."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_UNAVAILABLE, SOURCE_NOT_AVAILABLE."}}}},"/directory/issuers/{id}":{"get":{"operationId":"directory_issuer","summary":"Get one issuer or asset","description":"One directory record by legacy issuer id or slug, or canonical asset id. Availability: Available. Requires the analytics:read API key scope.","tags":["discover"],"security":[{"bearerAuth":[]}],"x-availability":"available","x-request-validation":"enforced","x-required-scope":"analytics:read","x-error-codes":{"400":["VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["FORBIDDEN"],"404":["NOT_FOUND"],"429":["RATE_LIMIT_EXCEEDED"],"500":["INTERNAL_ERROR"],"503":["RATE_LIMIT_UNAVAILABLE","SOURCE_NOT_AVAILABLE"]},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200},"description":"Legacy issuer id or slug, or canonical stablecoin asset id."}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","properties":{"issuer":{"$ref":"#/components/schemas/DirectoryIssuer"},"marketData":{"$ref":"#/components/schemas/MarketDataStatus"}},"required":["issuer","marketData"]}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: FORBIDDEN."},"404":{"$ref":"#/components/responses/AgentError","description":"Error codes: NOT_FOUND."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: INTERNAL_ERROR."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_UNAVAILABLE, SOURCE_NOT_AVAILABLE."}}}},"/directory/protocols":{"get":{"operationId":"directory_protocols","summary":"List stablecoin-adjacent protocols","description":"Protocol directory records by category and chain. Seeded TVL, yield and score columns are not served. Availability: Available. Requires the analytics:read API key scope.","tags":["discover"],"security":[{"bearerAuth":[]}],"x-availability":"available","x-request-validation":"enforced","x-required-scope":"analytics:read","x-error-codes":{"400":["VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["FORBIDDEN"],"429":["RATE_LIMIT_EXCEEDED"],"500":["INTERNAL_ERROR"],"503":["RATE_LIMIT_UNAVAILABLE","SOURCE_NOT_AVAILABLE"]},"parameters":[{"name":"category","in":"query","required":false,"schema":{"type":"string","enum":["yield","lending","dex","bridge","issuance","compliance","aggregator","infrastructure","orchestration","fx_bridge","rwa"]}},{"name":"chain","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":64}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20},"description":"Page size, 1 to 100."},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":10000,"default":0},"description":"Items to skip."}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","properties":{"protocols":{"type":"array","items":{"$ref":"#/components/schemas/Protocol"}},"total":{"type":"integer"},"pagination":{"type":"object","properties":{"limit":{"type":"integer"},"offset":{"type":"integer"}},"required":["limit","offset"]}},"required":["protocols","total","pagination"]}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: FORBIDDEN."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: INTERNAL_ERROR."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_UNAVAILABLE, SOURCE_NOT_AVAILABLE."}}}},"/directory/corridors":{"get":{"operationId":"directory_corridors","summary":"List corridors with reviewed eligibility","description":"Corridors from reviewed, effectively public provider eligibility with corridor scope. An empty list carries a reason. Availability: Available. Requires the analytics:read API key scope.","tags":["discover"],"security":[{"bearerAuth":[]}],"x-availability":"available","x-request-validation":"enforced","x-required-scope":"analytics:read","x-error-codes":{"400":["VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["FORBIDDEN"],"429":["RATE_LIMIT_EXCEEDED"],"500":["INTERNAL_ERROR"],"503":["RATE_LIMIT_UNAVAILABLE","SOURCE_NOT_AVAILABLE"]},"parameters":[{"name":"fromCountry","in":"query","required":false,"schema":{"type":"string","pattern":"^[A-Za-z]{2}$"},"description":"Source jurisdiction code."},{"name":"toCountry","in":"query","required":false,"schema":{"type":"string","pattern":"^[A-Za-z]{2}$"},"description":"Destination jurisdiction code."},{"name":"environment","in":"query","required":false,"schema":{"type":"string","enum":["sandbox","production"]}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","properties":{"corridors":{"type":"array","items":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"},"offerings":{"type":"array","items":{"$ref":"#/components/schemas/CorridorOffering"}}},"required":["from","to","offerings"]}},"reason":{"type":["string","null"],"enum":["no_corridor_scoped_eligibility",null]},"provenance":{"$ref":"#/components/schemas/DirectoryProvenance"}},"required":["corridors","reason","provenance"]}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: FORBIDDEN."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: INTERNAL_ERROR."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_UNAVAILABLE, SOURCE_NOT_AVAILABLE."}}}},"/directory/compare":{"get":{"operationId":"directory_compare","summary":"Compare stablecoins side by side","description":"Recorded fields and market snapshot values for 2 to 5 tickers. Dimensions without data are null with a reason. Availability: Available. Requires the analytics:read API key scope.","tags":["discover"],"security":[{"bearerAuth":[]}],"x-availability":"available","x-request-validation":"enforced","x-required-scope":"analytics:read","x-error-codes":{"400":["VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["FORBIDDEN"],"429":["RATE_LIMIT_EXCEEDED"],"500":["INTERNAL_ERROR"],"503":["RATE_LIMIT_UNAVAILABLE","SOURCE_NOT_AVAILABLE"]},"parameters":[{"name":"tickers","in":"query","required":true,"schema":{"type":"string"},"description":"2 to 5 unique comma-separated tickers."}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","properties":{"comparison":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/CompareEntry"}},"dimensions":{"type":"array","items":{"type":"string","enum":["name","issuer","pegCurrency","assetClass","circulatingSupplyUsd","priceUsd","pegDeviationBps","chains","jurisdiction","regulatoryStatus","regulatoryFramework","lastAttestationDate"]}},"notFound":{"type":"array","items":{"type":"string"}},"marketData":{"$ref":"#/components/schemas/MarketDataStatus"}},"required":["comparison","dimensions","notFound","marketData"]}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: FORBIDDEN."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: INTERNAL_ERROR."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_UNAVAILABLE, SOURCE_NOT_AVAILABLE."}}}},"/directory/analytics":{"get":{"operationId":"directory_analytics","summary":"Market aggregates from the snapshot","description":"Aggregates over the market snapshot. Without a snapshot the endpoint answers 503 SOURCE_NOT_AVAILABLE. Availability: Available. Requires the analytics:read API key scope.","tags":["discover"],"security":[{"bearerAuth":[]}],"x-availability":"available","x-request-validation":"enforced","x-required-scope":"analytics:read","x-error-codes":{"400":["VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["FORBIDDEN"],"429":["RATE_LIMIT_EXCEEDED"],"500":["INTERNAL_ERROR"],"503":["RATE_LIMIT_UNAVAILABLE","SOURCE_NOT_AVAILABLE"]},"parameters":[{"name":"metric","in":"query","required":false,"schema":{"type":"string","enum":["total-supply","total-market-cap","supply-by-chain","supply-by-peg-type","peg-deviations","volume","reserve-ratios"],"default":"total-supply"},"description":"total-market-cap is an alias of total-supply. volume and reserve-ratios have no connected source and return 503 SOURCE_NOT_AVAILABLE."},{"name":"period","in":"query","required":false,"schema":{"type":"string","enum":["24h","1d","7d","30d"],"default":"1d"},"description":"Comparison window for total-supply change. 24h is an alias of 1d."},{"name":"chain","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":64},"description":"Restrict supply to one chain as named by the source."}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"metric":{"type":"string","const":"total-supply"},"period":{"type":"string"},"chain":{"type":["string","null"]},"totalSupplyUsd":{"type":"string"},"assetCount":{"type":"integer"},"change":{"type":"object","properties":{"value":{"type":["object","null"],"properties":{"fromSnapshotDate":{"type":"string"},"absoluteUsd":{"type":"string"},"percent":{"type":"number"}},"required":["fromSnapshotDate","absoluteUsd","percent"]},"reason":{"type":["string","null"],"enum":["source_not_available","no_snapshot_match","ambiguous_ticker_match","not_in_directory","no_data","peg_not_usd","no_earlier_snapshot","not_recorded",null]}},"required":["value","reason"]},"marketData":{"$ref":"#/components/schemas/MarketDataStatus"}},"required":["metric","period","chain","totalSupplyUsd","assetCount","change","marketData"]},{"type":"object","properties":{"metric":{"type":"string","const":"supply-by-chain"},"period":{"type":"string"},"chain":{"type":["string","null"]},"chains":{"type":"array","items":{"type":"object","properties":{"chain":{"type":"string"},"usd":{"type":"string"},"assetCount":{"type":"integer"}},"required":["chain","usd","assetCount"]}},"marketData":{"$ref":"#/components/schemas/MarketDataStatus"}},"required":["metric","period","chain","chains","marketData"]},{"type":"object","properties":{"metric":{"type":"string","const":"supply-by-peg-type"},"period":{"type":"string"},"chain":{"type":["string","null"]},"pegTypes":{"type":"array","items":{"type":"object","properties":{"pegType":{"type":"string"},"usd":{"type":"string"},"assetCount":{"type":"integer"}},"required":["pegType","usd","assetCount"]}},"marketData":{"$ref":"#/components/schemas/MarketDataStatus"}},"required":["metric","period","chain","pegTypes","marketData"]},{"type":"object","properties":{"metric":{"type":"string","const":"peg-deviations"},"period":{"type":"string"},"chain":{"type":["string","null"]},"samples":{"type":"integer"},"averageDeviationBps":{"type":"object","properties":{"value":{"type":["number","null"]},"reason":{"type":["string","null"],"enum":["source_not_available","no_snapshot_match","ambiguous_ticker_match","not_in_directory","no_data","peg_not_usd","no_earlier_snapshot","not_recorded",null]}},"required":["value","reason"]},"maxDeviationBps":{"type":"object","properties":{"value":{"type":["number","null"]},"reason":{"type":["string","null"],"enum":["source_not_available","no_snapshot_match","ambiguous_ticker_match","not_in_directory","no_data","peg_not_usd","no_earlier_snapshot","not_recorded",null]}},"required":["value","reason"]},"largest":{"type":"array","items":{"type":"object","properties":{"symbol":{"type":"string"},"priceUsd":{"type":"string"},"deviationBps":{"type":"number"}},"required":["symbol","priceUsd","deviationBps"]}},"marketData":{"$ref":"#/components/schemas/MarketDataStatus"}},"required":["metric","period","chain","samples","averageDeviationBps","maxDeviationBps","largest","marketData"]}]}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: FORBIDDEN."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: INTERNAL_ERROR."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_UNAVAILABLE, SOURCE_NOT_AVAILABLE."}}}},"/providers/registry":{"get":{"operationId":"providers_registry","summary":"List the runtime adapter registry","description":"Code-owned runtime adapter manifests, including sandbox simulators, with declared operations and distribution references. This is the runtime registry, not the provider directory. Availability: Available. Requires the providers:read API key scope.","tags":["discover"],"security":[{"bearerAuth":[]}],"x-availability":"available","x-request-validation":"enforced","x-required-scope":"providers:read","x-error-codes":{"400":["INVALID_INPUT","VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["FORBIDDEN"],"404":["NOT_FOUND"],"429":["RATE_LIMIT_EXCEEDED"],"500":["INTERNAL_ERROR"],"503":["RATE_LIMIT_UNAVAILABLE"]},"parameters":[{"name":"category","in":"query","required":false,"schema":{"type":"string","enum":["kyc_verification","kyb_verification","document_verification","sanctions_screening","transaction_monitoring","travel_rule","bank_account_linking","bank_transfer_initiation","bank_transfer_reception","virtual_account","wallet_custody","key_management","asset_segregation","token_issuance","tokenized_asset_catalog","token_redemption","reserve_management","payment_processing","payout_disbursement","cross_border_settlement","card_issuance","blockchain_rpc","cross_chain_messaging","governance_data","lending_market_data","exchange_market_data","insurance_market_data","protocol_metadata","reference_data","trading_account","oracle_feeds","smart_contract_audit"]}},{"name":"environment","in":"query","required":false,"schema":{"type":"string","enum":["sandbox","production"]}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","required":["providers","categories","skills","agentProfiles","plugins","provenance"],"properties":{"providers":{"type":"array","items":{"type":"object","required":["providerSlug","category","environments","operations","skillRefs","agentProfileRef","pluginRef","scorecard","trustSignal"],"properties":{"simulator":{"type":"boolean"},"providerSlug":{"type":"string","minLength":1},"category":{"type":"string"},"environments":{"type":"array","minItems":1,"items":{"type":"string"}},"operations":{"type":"array","items":{"type":"object","required":["operation","label","description","kind","sideEffectClass","lifecycle","idempotency","approvalPolicy","requiredScopes","availability","toolRef"],"properties":{"operation":{"type":"string","minLength":1},"label":{"type":"string","minLength":1},"description":{"type":"string","minLength":1},"kind":{"type":"string"},"sideEffectClass":{"type":"string"},"lifecycle":{"type":"string"},"idempotency":{"type":"string"},"approvalPolicy":{"type":"string"},"requiredScopes":{"type":"array","items":{"type":"string"}},"availability":{"type":"string"},"supportsDryRun":{"type":"boolean"},"evidenceTypes":{"type":"array","items":{"type":"string"}},"webhookEvents":{"type":"array","items":{"type":"string"}},"toolRef":{"type":"string","minLength":1}},"additionalProperties":true}},"skillRefs":{"type":"array","items":{"type":"string"}},"agentProfileRef":{"type":"string","minLength":1},"pluginRef":{"type":"string","minLength":1},"scorecard":{"anyOf":[{"type":"null"},{"type":"object","required":["providerSlug","operationalCategory","environment","corridor","provenance","score","tier","confidence","reasons","operationCount","successRate","p50LatencyMs","p95LatencyMs","windowDays","computedAt","lastEventAt"],"properties":{"providerSlug":{"type":"string","minLength":1},"operationalCategory":{"type":"string"},"environment":{"type":"string"},"corridor":{"type":["string","null"]},"provenance":{"type":"string"},"score":{"type":["number","null"]},"tier":{"type":"string"},"confidence":{"type":"string"},"reasons":{"type":"array","items":{"type":"string"}},"operationCount":{"type":"integer","minimum":0},"successRate":{"type":["number","null"]},"p50LatencyMs":{"type":["number","null"]},"p95LatencyMs":{"type":["number","null"]},"windowDays":{"type":"integer","minimum":1},"computedAt":{"type":"string","minLength":1},"lastEventAt":{"type":["string","null"]}},"additionalProperties":true}]},"trustSignal":{"type":"string"}},"additionalProperties":true}},"availability":{"type":"array","items":{"type":"object","required":["category","operation","catalogAvailability","sandbox","production","summary"],"properties":{"category":{"type":"string"},"operation":{"type":"string","minLength":1},"catalogAvailability":{},"sandbox":{"type":"object","required":["status","providerSlugs"],"properties":{"status":{},"providerSlugs":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"production":{"type":"object","required":["status","providerSlugs"],"properties":{"status":{},"providerSlugs":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"summary":{}},"additionalProperties":true}},"categories":{"type":"array","items":{"type":"object","required":["category","domain","label","description","maturity","operations","skillKeys","agentProfileKey","pluginKey"],"properties":{"category":{"type":"string"},"domain":{"type":"string"},"label":{"type":"string","minLength":1},"description":{"type":"string","minLength":1},"maturity":{"type":"string"},"operations":{"type":"array","items":{"type":"object","required":["operation","label","description","kind","sideEffectClass","lifecycle","idempotency","approvalPolicy","requiredScopes","availability"],"properties":{"operation":{"type":"string","minLength":1},"label":{"type":"string","minLength":1},"description":{"type":"string","minLength":1},"kind":{"type":"string"},"sideEffectClass":{"type":"string"},"lifecycle":{"type":"string"},"idempotency":{"type":"string"},"approvalPolicy":{"type":"string"},"requiredScopes":{"type":"array","items":{"type":"string"}},"availability":{"type":"string"},"supportsDryRun":{"type":"boolean"},"evidenceTypes":{"type":"array","items":{"type":"string"}},"webhookEvents":{"type":"array","items":{"type":"string"}}},"additionalProperties":true}},"skillKeys":{"type":"array","items":{"type":"string"}},"agentProfileKey":{"type":"string","minLength":1},"pluginKey":{"type":"string","minLength":1}},"additionalProperties":true}},"skills":{"type":"array","items":{"type":"object","required":["skillKey","name","description","requiredCategories","requiredOperations","inputSchema","outputSchema","sideEffectClass","idempotency","approvalPolicy","requiredScopes","supportedEnvironments","evidenceTypes","version"],"properties":{"skillKey":{"type":"string","minLength":1},"providerSlug":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"description":{"type":"string","minLength":1},"requiredCategories":{"type":"array","items":{"type":"string"}},"requiredOperations":{"type":"array","items":{"type":"string","minLength":1}},"inputSchema":{"type":"object","additionalProperties":true},"outputSchema":{"type":"object","additionalProperties":true},"sideEffectClass":{"type":"string"},"idempotency":{"type":"string"},"approvalPolicy":{"type":"string"},"requiredScopes":{"type":"array","items":{"type":"string","minLength":1}},"supportedEnvironments":{"type":"array","items":{"type":"string"}},"evidenceTypes":{"type":"array","items":{"type":"string","minLength":1}},"version":{"type":"string","minLength":1}},"additionalProperties":true}},"agentProfiles":{"type":"array","items":{"type":"object","required":["profileKey","name","description","domains","categories","skillRefs","requiredScopes","autonomyDefault","version"],"properties":{"profileKey":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"description":{"type":"string","minLength":1},"domains":{"type":"array","items":{"type":"string"}},"categories":{"type":"array","items":{"type":"string"}},"skillRefs":{"type":"array","items":{"type":"string","minLength":1}},"requiredScopes":{"type":"array","items":{"type":"string","minLength":1}},"autonomyDefault":{"type":"string"},"version":{"type":"string","minLength":1}},"additionalProperties":true}},"plugins":{"type":"array","items":{"type":"object","required":["pluginKey","name","description","version","domains","categories","skillRefs","agentProfileRefs","targets","authMode"],"properties":{"pluginKey":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"description":{"type":"string","minLength":1},"version":{"type":"string","minLength":1},"providerSlug":{"type":"string","minLength":1},"domains":{"type":"array","items":{"type":"string"}},"categories":{"type":"array","items":{"type":"string"}},"skillRefs":{"type":"array","items":{"type":"string","minLength":1}},"agentProfileRefs":{"type":"array","items":{"type":"string","minLength":1}},"targets":{"type":"array","items":{"type":"string"}},"authMode":{"type":"string"}},"additionalProperties":true}},"provenance":{"type":"object","required":["providerCapabilities","performance","regimeFit"],"properties":{"providerCapabilities":{"type":"string"},"performance":{"type":"string"},"regimeFit":{"type":"string"}},"additionalProperties":true}},"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: INVALID_INPUT, VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: FORBIDDEN."},"404":{"$ref":"#/components/responses/AgentError","description":"Error codes: NOT_FOUND."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: INTERNAL_ERROR."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_UNAVAILABLE."}}}},"/providers/eligible":{"get":{"operationId":"providers_eligible","summary":"Find runtime adapters for a category","description":"Filters runtime adapter manifests by category and environment. Reports that jurisdiction, licence, asset and corridor eligibility were not evaluated, which candidates are simulators, and the ranking applied. Availability: Available. Requires the providers:read API key scope.","tags":["discover"],"security":[{"bearerAuth":[]}],"x-availability":"available","x-request-validation":"enforced","x-required-scope":"providers:read","x-error-codes":{"400":["INVALID_INPUT","VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["FORBIDDEN"],"404":["NOT_FOUND"],"429":["RATE_LIMIT_EXCEEDED"],"500":["INTERNAL_ERROR"],"503":["RATE_LIMIT_UNAVAILABLE"]},"parameters":[{"name":"category","in":"query","required":true,"schema":{"type":"string","enum":["kyc_verification","kyb_verification","document_verification","sanctions_screening","transaction_monitoring","travel_rule","bank_account_linking","bank_transfer_initiation","bank_transfer_reception","virtual_account","wallet_custody","key_management","asset_segregation","token_issuance","tokenized_asset_catalog","token_redemption","reserve_management","payment_processing","payout_disbursement","cross_border_settlement","card_issuance","blockchain_rpc","cross_chain_messaging","governance_data","lending_market_data","exchange_market_data","insurance_market_data","protocol_metadata","reference_data","trading_account","oracle_feeds","smart_contract_audit"]}},{"name":"environment","in":"query","required":false,"schema":{"type":"string","enum":["sandbox","production"]}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","required":["category","environment","candidates","warnings","provenance"],"properties":{"eligibility":{"type":"object","required":["evaluated","notEvaluated"],"properties":{"evaluated":{"const":false},"notEvaluated":{"type":"array","items":{}}},"additionalProperties":true},"category":{"type":"string"},"environment":{"type":"string"},"candidates":{"type":"array","items":{"type":"object","required":["providerSlug","category","environments","operations","skillRefs","agentProfileRef","pluginRef","scorecard","trustSignal","rank","regimeFit"],"properties":{"simulator":{"type":"boolean"},"providerSlug":{"type":"string","minLength":1},"category":{"type":"string"},"environments":{"type":"array","minItems":1,"items":{"type":"string"}},"operations":{"type":"array","items":{"type":"object","required":["operation","label","description","kind","sideEffectClass","lifecycle","idempotency","approvalPolicy","requiredScopes","availability","toolRef"],"properties":{"operation":{"type":"string","minLength":1},"label":{"type":"string","minLength":1},"description":{"type":"string","minLength":1},"kind":{"type":"string"},"sideEffectClass":{"type":"string"},"lifecycle":{"type":"string"},"idempotency":{"type":"string"},"approvalPolicy":{"type":"string"},"requiredScopes":{"type":"array","items":{"type":"string"}},"availability":{"type":"string"},"supportsDryRun":{"type":"boolean"},"evidenceTypes":{"type":"array","items":{"type":"string"}},"webhookEvents":{"type":"array","items":{"type":"string"}},"toolRef":{"type":"string","minLength":1}},"additionalProperties":true}},"skillRefs":{"type":"array","items":{"type":"string"}},"agentProfileRef":{"type":"string","minLength":1},"pluginRef":{"type":"string","minLength":1},"scorecard":{"anyOf":[{"type":"null"},{"type":"object","required":["providerSlug","operationalCategory","environment","corridor","provenance","score","tier","confidence","reasons","operationCount","successRate","p50LatencyMs","p95LatencyMs","windowDays","computedAt","lastEventAt"],"properties":{"providerSlug":{"type":"string","minLength":1},"operationalCategory":{"type":"string"},"environment":{"type":"string"},"corridor":{"type":["string","null"]},"provenance":{"type":"string"},"score":{"type":["number","null"]},"tier":{"type":"string"},"confidence":{"type":"string"},"reasons":{"type":"array","items":{"type":"string"}},"operationCount":{"type":"integer","minimum":0},"successRate":{"type":["number","null"]},"p50LatencyMs":{"type":["number","null"]},"p95LatencyMs":{"type":["number","null"]},"windowDays":{"type":"integer","minimum":1},"computedAt":{"type":"string","minLength":1},"lastEventAt":{"type":["string","null"]}},"additionalProperties":true}]},"trustSignal":{"type":"string"},"rank":{"type":"integer","minimum":1},"regimeFit":{"type":"string"}},"additionalProperties":true}},"warnings":{"type":"array","minItems":1,"items":{"type":"string","minLength":1}},"provenance":{"type":"object","required":["capability","ranking","regimeFit"],"properties":{"capability":{"type":"string"},"ranking":{},"scorecards":{},"regimeFit":{"type":"string"}},"additionalProperties":true}},"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: INVALID_INPUT, VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: FORBIDDEN."},"404":{"$ref":"#/components/responses/AgentError","description":"Error codes: NOT_FOUND."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: INTERNAL_ERROR."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_UNAVAILABLE."}}}},"/providers/invoke":{"post":{"operationId":"providers_invoke","summary":"Invoke an approved provider operation","description":"Executes a declared provider operation through the connection-scoped adapter runtime and enforces a current selection receipt when the offering has reviewed dependencies. Idempotency-Key is required when the operation declares requires_key or an approval policy. Availability: Available.","tags":["operate"],"security":[{"bearerAuth":[]}],"x-availability":"available","x-request-validation":"enforced","x-error-codes":{"400":["IDEMPOTENCY_KEY_REQUIRED","INVALID_INPUT","VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["FORBIDDEN"],"404":["NOT_FOUND"],"409":["IDEMPOTENCY_IN_PROGRESS"],"422":["IDEMPOTENCY_KEY_REUSED"],"429":["RATE_LIMIT_EXCEEDED"],"500":["INTERNAL_ERROR","SERVER_MISCONFIGURED"],"502":["PROVIDER_EXECUTION_FAILED"],"503":["IDEMPOTENCY_UNAVAILABLE","RATE_LIMIT_UNAVAILABLE"]},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional. When supplied, replays return the original response.","schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","description":"JSON object. This response does not yet have a published schema."}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_KEY_REQUIRED, INVALID_INPUT, VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: FORBIDDEN."},"404":{"$ref":"#/components/responses/AgentError","description":"Error codes: NOT_FOUND."},"409":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_IN_PROGRESS."},"422":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_KEY_REUSED."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: INTERNAL_ERROR, SERVER_MISCONFIGURED."},"502":{"$ref":"#/components/responses/AgentError","description":"Error codes: PROVIDER_EXECUTION_FAILED."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_UNAVAILABLE, RATE_LIMIT_UNAVAILABLE."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"providerSlug":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"selectionReceiptId":{"type":"string","format":"uuid"},"approvalRequestId":{"type":"string","format":"uuid"},"category":{"type":"string","enum":["kyc_verification","kyb_verification","document_verification","sanctions_screening","transaction_monitoring","travel_rule","bank_account_linking","bank_transfer_initiation","bank_transfer_reception","virtual_account","wallet_custody","key_management","asset_segregation","token_issuance","tokenized_asset_catalog","token_redemption","reserve_management","payment_processing","payout_disbursement","cross_border_settlement","card_issuance","blockchain_rpc","cross_chain_messaging","governance_data","lending_market_data","exchange_market_data","insurance_market_data","protocol_metadata","reference_data","trading_account","oracle_feeds","smart_contract_audit"]},"operation":{"type":"string","minLength":1},"input":{},"regime":{"type":"object","properties":{"operatorJurisdiction":{"type":"string"},"senderJurisdiction":{"type":"string"},"receiverJurisdiction":{"type":"string"},"asset":{"type":"string"},"fiatCurrency":{"type":"string"},"estimatedValueUsd":{"type":"number","minimum":0}},"additionalProperties":false}},"required":["providerSlug","category","operation"],"additionalProperties":false}}}}}},"/compliance/screen":{"post":{"operationId":"compliance_screen","summary":"Run compliance screening","description":"Evaluates sanctions, travel-rule, and velocity policies. Availability: Sandbox only (simulator-backed). Sanctions screening defaults to the mock-sanctions simulator. Resolves through a sandbox simulator when no reviewed provider connection serves the request; simulated responses are not provider results. Requires the compliance:write API key scope. Also served at /api/v2/agent/comply/screen (alias, not separately documented).","tags":["comply"],"security":[{"bearerAuth":[]}],"x-availability":"sandbox_only","x-availability-note":"Sanctions screening defaults to the mock-sanctions simulator. Resolves through a sandbox simulator when no reviewed provider connection serves the request; simulated responses are not provider results.","x-request-validation":"enforced","x-required-scope":"compliance:write","x-aliases":["/api/v2/agent/comply/screen"],"x-error-codes":{"400":["VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["FORBIDDEN"],"409":["IDEMPOTENCY_IN_PROGRESS"],"422":["IDEMPOTENCY_KEY_REUSED"],"429":["RATE_LIMIT_EXCEEDED"],"500":["INTERNAL_ERROR"],"502":["PROVIDER_EXECUTION_FAILED"],"503":["IDEMPOTENCY_UNAVAILABLE","RATE_LIMIT_UNAVAILABLE"]},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional. When supplied, replays return the original response.","schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","description":"JSON object. This response does not yet have a published schema."}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: FORBIDDEN."},"409":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_IN_PROGRESS."},"422":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_KEY_REUSED."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: INTERNAL_ERROR."},"502":{"$ref":"#/components/responses/AgentError","description":"Error codes: PROVIDER_EXECUTION_FAILED."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_UNAVAILABLE, RATE_LIMIT_UNAVAILABLE."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["transaction","address","stablecoin"]},"subject":{"type":"object","additionalProperties":{}},"jurisdiction":{"type":"array","items":{"type":"string"},"description":"Jurisdiction codes in scope."},"organizationId":{"type":"string","description":"Must match the organization bound to the API key."},"policies":{"type":"array","items":{"type":"string"}}},"required":["type","subject"]}}}}}},"/compliance/kyc":{"post":{"operationId":"compliance_kyc_initiate","summary":"Start a KYC verification flow","description":"Initiates identity verification for an individual applicant. Availability: Sandbox only (simulator-backed). Resolves through a sandbox simulator when no reviewed provider connection serves the request; simulated responses are not provider results. Requires the compliance:write API key scope. Also served at /api/v2/agent/comply/kyc (alias, not separately documented).","tags":["comply"],"security":[{"bearerAuth":[]}],"x-availability":"sandbox_only","x-availability-note":"Resolves through a sandbox simulator when no reviewed provider connection serves the request; simulated responses are not provider results.","x-request-validation":"enforced","x-required-scope":"compliance:write","x-aliases":["/api/v2/agent/comply/kyc"],"x-error-codes":{"400":["IDEMPOTENCY_KEY_REQUIRED","VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["FORBIDDEN"],"409":["IDEMPOTENCY_IN_PROGRESS"],"422":["IDEMPOTENCY_KEY_REUSED"],"429":["RATE_LIMIT_EXCEEDED"],"500":["INTERNAL_ERROR"],"502":["PROVIDER_EXECUTION_FAILED"],"503":["IDEMPOTENCY_UNAVAILABLE","RATE_LIMIT_UNAVAILABLE"]},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required. Replays return the original response; reuse with a different body is rejected.","schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","description":"JSON object. This response does not yet have a published schema."}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_KEY_REQUIRED, VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: FORBIDDEN."},"409":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_IN_PROGRESS."},"422":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_KEY_REUSED."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: INTERNAL_ERROR."},"502":{"$ref":"#/components/responses/AgentError","description":"Error codes: PROVIDER_EXECUTION_FAILED."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_UNAVAILABLE, RATE_LIMIT_UNAVAILABLE."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"person":{"$ref":"#/components/schemas/Person"},"level":{"type":"string","enum":["basic","standard","enhanced"]},"externalReference":{"type":"string"},"redirectUrl":{"type":"string"},"jurisdiction":{"type":"array","items":{"type":"string"},"description":"Jurisdiction codes in scope."},"organizationId":{"type":"string","description":"Must match the organization bound to the API key."}},"required":["person"]}}}}}},"/compliance/kyc/status":{"post":{"operationId":"compliance_kyc_status","summary":"Fetch KYC verification status","description":"Retrieves the latest KYC decision and checks. Availability: Sandbox only (simulator-backed). Resolves through a sandbox simulator when no reviewed provider connection serves the request; simulated responses are not provider results. Requires the compliance:write API key scope. Also served at /api/v2/agent/comply/kyc/status (alias, not separately documented).","tags":["comply"],"security":[{"bearerAuth":[]}],"x-availability":"sandbox_only","x-availability-note":"Resolves through a sandbox simulator when no reviewed provider connection serves the request; simulated responses are not provider results.","x-request-validation":"enforced","x-required-scope":"compliance:write","x-aliases":["/api/v2/agent/comply/kyc/status"],"x-error-codes":{"400":["VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["FORBIDDEN"],"409":["IDEMPOTENCY_IN_PROGRESS"],"422":["IDEMPOTENCY_KEY_REUSED"],"429":["RATE_LIMIT_EXCEEDED"],"500":["INTERNAL_ERROR"],"502":["PROVIDER_EXECUTION_FAILED"],"503":["IDEMPOTENCY_UNAVAILABLE","RATE_LIMIT_UNAVAILABLE"]},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional. When supplied, replays return the original response.","schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","description":"JSON object. This response does not yet have a published schema."}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: FORBIDDEN."},"409":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_IN_PROGRESS."},"422":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_KEY_REUSED."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: INTERNAL_ERROR."},"502":{"$ref":"#/components/responses/AgentError","description":"Error codes: PROVIDER_EXECUTION_FAILED."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_UNAVAILABLE, RATE_LIMIT_UNAVAILABLE."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"verificationId":{"type":"string","minLength":1},"jurisdiction":{"type":"array","items":{"type":"string"},"description":"Jurisdiction codes in scope."},"organizationId":{"type":"string","description":"Must match the organization bound to the API key."}},"required":["verificationId"]}}}}}},"/compliance/kyc/cancel":{"post":{"operationId":"compliance_kyc_cancel","summary":"Cancel a KYC verification flow","description":"Cancels a previously started KYC verification. Availability: Sandbox only (simulator-backed). Resolves through a sandbox simulator when no reviewed provider connection serves the request; simulated responses are not provider results. Requires the compliance:write API key scope. Also served at /api/v2/agent/comply/kyc/cancel (alias, not separately documented).","tags":["comply"],"security":[{"bearerAuth":[]}],"x-availability":"sandbox_only","x-availability-note":"Resolves through a sandbox simulator when no reviewed provider connection serves the request; simulated responses are not provider results.","x-request-validation":"enforced","x-required-scope":"compliance:write","x-aliases":["/api/v2/agent/comply/kyc/cancel"],"x-error-codes":{"400":["IDEMPOTENCY_KEY_REQUIRED","VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["FORBIDDEN"],"409":["IDEMPOTENCY_IN_PROGRESS"],"422":["IDEMPOTENCY_KEY_REUSED"],"429":["RATE_LIMIT_EXCEEDED"],"500":["INTERNAL_ERROR"],"502":["PROVIDER_EXECUTION_FAILED"],"503":["IDEMPOTENCY_UNAVAILABLE","RATE_LIMIT_UNAVAILABLE"]},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required. Replays return the original response; reuse with a different body is rejected.","schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","description":"JSON object. This response does not yet have a published schema."}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_KEY_REQUIRED, VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: FORBIDDEN."},"409":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_IN_PROGRESS."},"422":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_KEY_REUSED."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: INTERNAL_ERROR."},"502":{"$ref":"#/components/responses/AgentError","description":"Error codes: PROVIDER_EXECUTION_FAILED."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_UNAVAILABLE, RATE_LIMIT_UNAVAILABLE."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"verificationId":{"type":"string","minLength":1},"jurisdiction":{"type":"array","items":{"type":"string"},"description":"Jurisdiction codes in scope."},"organizationId":{"type":"string","description":"Must match the organization bound to the API key."}},"required":["verificationId"]}}}}}},"/compliance/precedent":{"post":{"operationId":"compliance_precedent","summary":"Search synthetic precedent traces","description":"Searches synthetic decision traces for rehearsal. Every item is labeled synthetic; it is not a precedent corpus. Availability: Sandbox only (simulator-backed). Sandbox keys only: production keys receive 403 SANDBOX_ONLY because no real precedent corpus exists. Requires the compliance:write API key scope. Also served at /api/v2/agent/comply/precedent (alias, not separately documented).","tags":["comply"],"security":[{"bearerAuth":[]}],"x-availability":"sandbox_only","x-availability-note":"Sandbox keys only: production keys receive 403 SANDBOX_ONLY because no real precedent corpus exists.","x-request-validation":"enforced","x-required-scope":"compliance:write","x-aliases":["/api/v2/agent/comply/precedent"],"x-error-codes":{"400":["VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["FORBIDDEN","SANDBOX_ONLY"],"409":["IDEMPOTENCY_IN_PROGRESS"],"422":["IDEMPOTENCY_KEY_REUSED"],"429":["RATE_LIMIT_EXCEEDED"],"500":["INTERNAL_ERROR"],"503":["IDEMPOTENCY_UNAVAILABLE","MODEL_NOT_CONFIGURED","PRECEDENT_UNAVAILABLE","RATE_LIMIT_UNAVAILABLE"]},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional. When supplied, replays return the original response.","schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"integer","const":2},"synthetic":{"type":"boolean","const":true},"label":{"type":"string","const":"Synthetic decision traces for rehearsal"},"corpus":{"type":"object","properties":{"id":{"type":"string"},"traceCount":{"type":"integer"},"origin":{"type":"string","const":"synthetic"},"coverage":{"type":"string"}},"required":["id","traceCount","origin","coverage"],"additionalProperties":false},"rehearsalOutcome":{"type":["string","null"]},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"scenario":{"type":"string"},"outcome":{"type":"string"},"similarity":{"type":"number"},"synthetic":{"type":"boolean","const":true},"label":{"type":"string","const":"Synthetic decision traces for rehearsal"}},"required":["id","scenario","outcome","similarity","synthetic","label"],"additionalProperties":false}},"policyRefs":{"type":"array","items":{"type":"object","properties":{"framework":{"type":"string"},"article":{"type":["string","null"]},"section":{"type":["string","null"]},"synthetic":{"type":"boolean","const":true},"label":{"type":"string","const":"Synthetic decision traces for rehearsal"}},"required":["framework","article","section","synthetic","label"],"additionalProperties":false}},"warnings":{"type":"array","items":{"type":"string"}},"suggestedActions":{"type":"array","items":{"type":"string"}}},"required":["version","synthetic","label","corpus","rehearsalOutcome","items","policyRefs","warnings","suggestedActions"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: FORBIDDEN, SANDBOX_ONLY."},"409":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_IN_PROGRESS."},"422":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_KEY_REUSED."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: INTERNAL_ERROR."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_UNAVAILABLE, MODEL_NOT_CONFIGURED, PRECEDENT_UNAVAILABLE, RATE_LIMIT_UNAVAILABLE."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"question":{"type":"string","minLength":1,"maxLength":2000},"stablecoinType":{"type":"string","maxLength":100},"jurisdictions":{"type":"array","items":{"type":"string","maxLength":10},"maxItems":20},"reserveAssets":{"type":"array","items":{"type":"string","maxLength":200},"maxItems":50},"minConfidence":{"type":"number","minimum":0,"maximum":1}},"required":["question"]}}}}}},"/compliance/design-requirements":{"post":{"operationId":"compliance_design_requirements","summary":"List design requirements per jurisdiction","description":"Returns the regime pack requirements for each target jurisdiction as a checklist (version 2). A supplied reserve composition runs the reserve validator; every other requirement is marked evidence_needed. No feasibility verdict. Availability: Available. Requires the compliance:write API key scope.","tags":["comply"],"security":[{"bearerAuth":[]}],"x-availability":"available","x-request-validation":"enforced","x-required-scope":"compliance:write","x-error-codes":{"400":["VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["FORBIDDEN"],"409":["IDEMPOTENCY_IN_PROGRESS"],"422":["IDEMPOTENCY_KEY_REUSED"],"429":["RATE_LIMIT_EXCEEDED"],"500":["INTERNAL_ERROR"],"503":["IDEMPOTENCY_UNAVAILABLE","RATE_LIMIT_UNAVAILABLE"]},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional. When supplied, replays return the original response.","schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"integer","const":2},"kind":{"type":"string","const":"requirements_checklist"},"notice":{"type":"string"},"jurisdictions":{"type":"array","items":{"type":"object","properties":{"jurisdiction":{"type":"string"},"coverage":{"type":"string","enum":["regime_pack","manual_review","no_regime_pack"]},"framework":{"type":["string","null"],"enum":["GENIUS_ACT","MICA_EMT","MICA_ART","DABA",null]},"regimePack":{"type":["object","null"],"properties":{"id":{"type":"string"},"version":{"type":"string"},"title":{"type":"string"},"reviewStatus":{"type":["string","null"],"enum":["draft_unreviewed","reviewed",null]},"banner":{"type":["string","null"]}},"required":["id","version","title","reviewStatus","banner"],"additionalProperties":false},"note":{"type":["string","null"]},"reserve":{"type":"object","properties":{"status":{"type":"string","enum":["checked","not_provided","manual_review_required"]},"validation":{"anyOf":[{"$ref":"#/components/schemas/ReserveValidationReport"},{"type":"null"}]}},"required":["status","validation"],"additionalProperties":false},"requirements":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"citation":{"type":["string","null"]},"sourceUrl":{"type":["string","null"]},"legalStatus":{"type":["string","null"],"enum":["enacted","in_application","pending_rulemaking","specified_by_technical_standards",null]},"empoweringSection":{"type":["string","null"]},"appliesWhen":{"type":["string","null"]},"checkable":{"type":"string","enum":["automatic","evidence","counsel"]},"status":{"type":"string","enum":["automatically_checked","evidence_needed"]},"result":{"type":["string","null"],"enum":["pass","fail",null]},"failedRuleIds":{"type":"array","items":{"type":"string"}},"factsNeeded":{"type":"array","items":{"type":"string"}}},"required":["id","label","citation","sourceUrl","legalStatus","empoweringSection","appliesWhen","checkable","status","result","failedRuleIds","factsNeeded"],"additionalProperties":false}},"summary":{"type":"object","properties":{"total":{"type":"integer"},"automaticallyChecked":{"type":"integer"},"evidenceNeeded":{"type":"integer"},"counselNeeded":{"type":"integer"}},"required":["total","automaticallyChecked","evidenceNeeded","counselNeeded"],"additionalProperties":false}},"required":["jurisdiction","coverage","framework","regimePack","note","reserve","requirements","summary"],"additionalProperties":false}},"ignoredFields":{"type":"array","items":{"type":"string"}}},"required":["version","kind","notice","jurisdictions","ignoredFields"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: FORBIDDEN."},"409":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_IN_PROGRESS."},"422":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_KEY_REUSED."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: INTERNAL_ERROR."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_UNAVAILABLE, RATE_LIMIT_UNAVAILABLE."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"design":{"type":"object","properties":{"type":{"type":"string","minLength":1,"maxLength":100},"targetJurisdictions":{"type":"array","items":{"type":"string","minLength":2,"maxLength":10},"maxItems":20,"default":[]},"reserveComposition":{"$ref":"#/components/schemas/ReserveComposition"},"referenceCurrency":{"type":"string","pattern":"^[A-Z]{3}$"},"governanceModel":{"type":"string","maxLength":200},"features":{"type":"array","items":{"type":"string","maxLength":200},"maxItems":50,"default":[]},"expectedVolume":{"type":"string","maxLength":200},"issuerType":{"type":"string","maxLength":200},"reserveAssets":{"type":"array","items":{"type":"string","maxLength":200},"maxItems":50}},"required":["type"],"additionalProperties":false}},"required":["design"],"additionalProperties":false}}}}}},"/compliance/evaluate-design":{"post":{"operationId":"compliance_evaluate_design","summary":"Evaluate a design (deprecated version 1 shape)","description":"Deprecated. Accepts the version 1 request and returns the version 1 fields (overallFeasibility, jurisdictionResults, crossJurisdictionConflicts, estimatedTimeToCompliance), each derived from the requirements checklist, which is returned as checklist. overallFeasibility is \"conditional\" or null, never \"likely\"; conflicts and time to compliance are null with a reason. Use /api/v2/agent/compliance/design-requirements. Availability: Available. Deprecated on 2026-10-01; may be removed after 2027-03-31. Responses carry Deprecation, Sunset and Link headers. Requires the compliance:write API key scope. Also served at /api/v2/agent/comply/evaluate-design (alias, not separately documented).","tags":["comply"],"security":[{"bearerAuth":[]}],"x-availability":"available","x-availability-note":"Deprecated on 2026-10-01; may be removed after 2027-03-31. Responses carry Deprecation, Sunset and Link headers.","x-request-validation":"enforced","x-required-scope":"compliance:write","x-aliases":["/api/v2/agent/comply/evaluate-design"],"deprecated":true,"x-deprecated-at":"2026-10-01T00:00:00Z","x-sunset":"2027-03-31T23:59:59Z","x-successor":"/api/v2/agent/compliance/design-requirements","x-error-codes":{"400":["VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["FORBIDDEN"],"409":["IDEMPOTENCY_IN_PROGRESS"],"422":["IDEMPOTENCY_KEY_REUSED"],"429":["RATE_LIMIT_EXCEEDED"],"500":["INTERNAL_ERROR"],"503":["IDEMPOTENCY_UNAVAILABLE","RATE_LIMIT_UNAVAILABLE"]},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional. When supplied, replays return the original response.","schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"Successful response.","headers":{"Deprecation":{"description":"RFC 9745: when the operation was deprecated, as @<unix seconds>.","schema":{"type":"string"}},"Sunset":{"description":"RFC 8594: the HTTP date after which the operation may be removed.","schema":{"type":"string"}},"Link":{"description":"RFC 5829: the successor operation, with rel=\"successor-version\".","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"integer","const":1},"deprecated":{"type":"boolean","const":true},"deprecation":{"type":"object","properties":{"successor":{"type":"string","const":"/api/v2/agent/compliance/design-requirements"},"deprecatedAt":{"type":"string","const":"2026-10-01T00:00:00Z"},"sunsetAt":{"type":"string","const":"2027-03-31T23:59:59Z"},"notice":{"type":"string"}},"required":["successor","deprecatedAt","sunsetAt","notice"],"additionalProperties":false},"overallFeasibility":{"type":["string","null"],"const":"conditional"},"jurisdictionResults":{"type":"array","items":{"type":"object","properties":{"jurisdiction":{"type":"string"},"framework":{"type":["string","null"]},"status":{"type":["string","null"],"const":"conditional"},"requirements":{"type":"array","items":{"type":"object","properties":{"requirement":{"type":"string"},"severity":{"type":"string","enum":["mandatory","recommended"]},"met":{"anyOf":[{"type":"boolean"},{"type":"string","const":"unknown"}]}},"required":["requirement","severity","met"],"additionalProperties":false}},"blockers":{"type":"array","items":{"type":"string"}},"recommendations":{"type":"array","items":{"type":"string"}}},"required":["jurisdiction","framework","status","requirements","blockers","recommendations"],"additionalProperties":false}},"crossJurisdictionConflicts":{"type":"null"},"estimatedTimeToCompliance":{"type":"null"},"unavailableFields":{"type":"object","additionalProperties":{"type":"object","properties":{"reason":{"type":"string","enum":["no_jurisdictions","not_determined","not_evaluated","not_estimated"]},"detail":{"type":"string"}},"required":["reason","detail"],"additionalProperties":false}},"checklist":{"type":"object","properties":{"version":{"type":"integer","const":2},"kind":{"type":"string","const":"requirements_checklist"},"notice":{"type":"string"},"jurisdictions":{"type":"array","items":{"type":"object","properties":{"jurisdiction":{"type":"string"},"coverage":{"type":"string","enum":["regime_pack","manual_review","no_regime_pack"]},"framework":{"type":["string","null"],"enum":["GENIUS_ACT","MICA_EMT","MICA_ART","DABA",null]},"regimePack":{"type":["object","null"],"properties":{"id":{"type":"string"},"version":{"type":"string"},"title":{"type":"string"},"reviewStatus":{"type":["string","null"],"enum":["draft_unreviewed","reviewed",null]},"banner":{"type":["string","null"]}},"required":["id","version","title","reviewStatus","banner"],"additionalProperties":false},"note":{"type":["string","null"]},"reserve":{"type":"object","properties":{"status":{"type":"string","enum":["checked","not_provided","manual_review_required"]},"validation":{"anyOf":[{"$ref":"#/components/schemas/ReserveValidationReport"},{"type":"null"}]}},"required":["status","validation"],"additionalProperties":false},"requirements":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"citation":{"type":["string","null"]},"sourceUrl":{"type":["string","null"]},"legalStatus":{"type":["string","null"],"enum":["enacted","in_application","pending_rulemaking","specified_by_technical_standards",null]},"empoweringSection":{"type":["string","null"]},"appliesWhen":{"type":["string","null"]},"checkable":{"type":"string","enum":["automatic","evidence","counsel"]},"status":{"type":"string","enum":["automatically_checked","evidence_needed"]},"result":{"type":["string","null"],"enum":["pass","fail",null]},"failedRuleIds":{"type":"array","items":{"type":"string"}},"factsNeeded":{"type":"array","items":{"type":"string"}}},"required":["id","label","citation","sourceUrl","legalStatus","empoweringSection","appliesWhen","checkable","status","result","failedRuleIds","factsNeeded"],"additionalProperties":false}},"summary":{"type":"object","properties":{"total":{"type":"integer"},"automaticallyChecked":{"type":"integer"},"evidenceNeeded":{"type":"integer"},"counselNeeded":{"type":"integer"}},"required":["total","automaticallyChecked","evidenceNeeded","counselNeeded"],"additionalProperties":false}},"required":["jurisdiction","coverage","framework","regimePack","note","reserve","requirements","summary"],"additionalProperties":false}},"ignoredFields":{"type":"array","items":{"type":"string"}}},"required":["version","kind","notice","jurisdictions","ignoredFields"],"additionalProperties":false}},"required":["version","deprecated","deprecation","overallFeasibility","jurisdictionResults","crossJurisdictionConflicts","estimatedTimeToCompliance","unavailableFields","checklist"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: FORBIDDEN."},"409":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_IN_PROGRESS."},"422":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_KEY_REUSED."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: INTERNAL_ERROR."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_UNAVAILABLE, RATE_LIMIT_UNAVAILABLE."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"design":{"type":"object","properties":{"type":{"type":"string","minLength":1,"maxLength":100},"targetJurisdictions":{"type":"array","items":{"type":"string","minLength":2,"maxLength":10},"maxItems":20,"default":[]},"reserveComposition":{"$ref":"#/components/schemas/ReserveComposition"},"referenceCurrency":{"type":"string","pattern":"^[A-Z]{3}$"},"governanceModel":{"type":"string","maxLength":200},"features":{"type":"array","items":{"type":"string","maxLength":200},"maxItems":50,"default":[]},"expectedVolume":{"type":"string","maxLength":200},"issuerType":{"type":"string","maxLength":200},"reserveAssets":{"type":"array","items":{"type":"string","maxLength":200},"maxItems":50}},"required":["type"]}},"required":["design"]}}}}}},"/compliance/generate-sar":{"post":{"operationId":"compliance_generate_sar","summary":"Generate SAR draft","description":"Creates a template SAR narrative draft. Human review is always required. Availability: Available. Requires the compliance:write API key scope. Also served at /api/v2/agent/comply/generate-sar (alias, not separately documented).","tags":["comply"],"security":[{"bearerAuth":[]}],"x-availability":"available","x-request-validation":"enforced","x-required-scope":"compliance:write","x-aliases":["/api/v2/agent/comply/generate-sar"],"x-error-codes":{"400":["VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["FORBIDDEN"],"409":["IDEMPOTENCY_IN_PROGRESS"],"422":["IDEMPOTENCY_KEY_REUSED"],"429":["RATE_LIMIT_EXCEEDED"],"500":["INTERNAL_ERROR"],"503":["IDEMPOTENCY_UNAVAILABLE","RATE_LIMIT_UNAVAILABLE"]},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional. When supplied, replays return the original response.","schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"integer","const":2},"sarDraft":{"type":"object","properties":{"narrative":{"type":"string"},"narrativeOrigin":{"type":"string","const":"template"},"draftLabel":{"type":"string"},"typology":{"type":"string"},"totalAmount":{"type":"string"},"transactionCount":{"type":"integer"},"period":{"type":"object","properties":{"first":{"type":["string","null"]},"last":{"type":["string","null"]}},"required":["first","last"],"additionalProperties":false},"subjectInfo":{"type":"object","properties":{"addresses":{"type":"array","items":{"type":"string"}}},"required":["addresses"],"additionalProperties":false},"supportingEvidence":{"type":"array","items":{"type":"object","properties":{"txHash":{"type":"string"},"amount":{"type":"string"},"timestamp":{"type":"string"}},"required":["txHash","amount","timestamp"],"additionalProperties":false}},"analystSections":{"type":"array","items":{"type":"string"}}},"required":["narrative","narrativeOrigin","draftLabel","typology","totalAmount","transactionCount","period","subjectInfo","supportingEvidence","analystSections"],"additionalProperties":false},"humanReviewRequired":{"type":"boolean","const":true},"reviewStatus":{"type":"string","const":"draft"},"warnings":{"type":"array","items":{"type":"string"}}},"required":["version","sarDraft","humanReviewRequired","reviewStatus","warnings"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: FORBIDDEN."},"409":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_IN_PROGRESS."},"422":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_KEY_REUSED."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: INTERNAL_ERROR."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_UNAVAILABLE, RATE_LIMIT_UNAVAILABLE."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"transactions":{"type":"array","items":{"type":"object","properties":{"txHash":{"type":"string","minLength":1,"maxLength":200},"from":{"type":"string","minLength":1,"maxLength":200},"to":{"type":"string","minLength":1,"maxLength":200},"amount":{"type":"string","minLength":1,"maxLength":100},"timestamp":{"type":"string","minLength":1,"maxLength":100}},"required":["txHash","from","to","amount","timestamp"]},"minItems":1,"maxItems":1000},"suspectedTypology":{"type":"string","minLength":1,"maxLength":200},"jurisdiction":{"type":"string","minLength":1,"maxLength":20},"filerInfo":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"ein":{"type":"string","maxLength":50}}}},"required":["transactions","suspectedTypology","jurisdiction"]}}}}}},"/compliance/reserves/validate":{"post":{"operationId":"compliance_reserves_validate","summary":"Validate a reserve composition","description":"Validates a structured reserve composition against GENIUS, MiCA EMT, MiCA ART (fail-closed) or Bermuda DABA rules and returns the versioned validator report. Reads only its input; requires compliance:read. Availability: Available. Requires the compliance:read API key scope. Also served at /api/v2/agent/comply/reserves/validate (alias, not separately documented).","tags":["comply"],"security":[{"bearerAuth":[]}],"x-availability":"available","x-request-validation":"enforced","x-required-scope":"compliance:read","x-aliases":["/api/v2/agent/comply/reserves/validate"],"x-error-codes":{"400":["VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["FORBIDDEN"],"409":["IDEMPOTENCY_IN_PROGRESS"],"422":["IDEMPOTENCY_KEY_REUSED"],"429":["RATE_LIMIT_EXCEEDED"],"500":["INTERNAL_ERROR"],"503":["IDEMPOTENCY_UNAVAILABLE","RATE_LIMIT_UNAVAILABLE"]},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional. When supplied, replays return the original response.","schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"integer","const":1},"framework":{"type":"string","enum":["GENIUS_ACT","MICA_EMT","MICA_ART","DABA"]},"validation":{"$ref":"#/components/schemas/ReserveValidationReport"}},"required":["version","framework","validation"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: FORBIDDEN."},"409":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_IN_PROGRESS."},"422":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_KEY_REUSED."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: INTERNAL_ERROR."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_UNAVAILABLE, RATE_LIMIT_UNAVAILABLE."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"framework":{"type":"string","enum":["GENIUS_ACT","MICA_EMT","MICA_ART","DABA"]},"composition":{"$ref":"#/components/schemas/ReserveComposition"},"referenceCurrency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["framework","composition"],"additionalProperties":false}}}}}},"/payments/bank-transfer":{"post":{"operationId":"payments_bank_transfer_initiate","summary":"Initiate a bank transfer","description":"Starts an outbound bank transfer over ACH, SEPA, FPS, PIX, or wire rails. Availability: Sandbox only (simulator-backed). Resolves through a sandbox simulator when no reviewed provider connection serves the request; simulated responses are not provider results. Requires the payments:write API key scope.","tags":["operate"],"security":[{"bearerAuth":[]}],"x-availability":"sandbox_only","x-availability-note":"Resolves through a sandbox simulator when no reviewed provider connection serves the request; simulated responses are not provider results.","x-request-validation":"enforced","x-required-scope":"payments:write","x-error-codes":{"400":["IDEMPOTENCY_KEY_REQUIRED","VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["FORBIDDEN"],"409":["IDEMPOTENCY_IN_PROGRESS"],"422":["IDEMPOTENCY_KEY_REUSED"],"429":["RATE_LIMIT_EXCEEDED"],"500":["INTERNAL_ERROR"],"502":["PROVIDER_EXECUTION_FAILED"],"503":["IDEMPOTENCY_UNAVAILABLE","RATE_LIMIT_UNAVAILABLE","STORAGE_UNAVAILABLE"]},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required. Replays return the original response; reuse with a different body is rejected.","schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","description":"JSON object. This response does not yet have a published schema."}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_KEY_REQUIRED, VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: FORBIDDEN."},"409":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_IN_PROGRESS."},"422":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_KEY_REUSED."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: INTERNAL_ERROR."},"502":{"$ref":"#/components/responses/AgentError","description":"Error codes: PROVIDER_EXECUTION_FAILED."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_UNAVAILABLE, RATE_LIMIT_UNAVAILABLE, STORAGE_UNAVAILABLE."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"amount":{"type":"string","minLength":1,"description":"Decimal string."},"currency":{"type":"string","minLength":1},"source":{"$ref":"#/components/schemas/BankAccount"},"destination":{"$ref":"#/components/schemas/BankAccount"},"rail":{"type":"string"},"purposeCode":{"type":"string"},"reference":{"type":"string"},"jurisdiction":{"type":"array","items":{"type":"string"},"description":"Jurisdiction codes in scope."},"operatorJurisdiction":{"type":"string"},"senderJurisdiction":{"type":"string","minLength":1,"description":"Required for payment compliance context."},"receiverJurisdiction":{"type":"string","minLength":1,"description":"Required for payment compliance context."},"organizationId":{"type":"string","description":"Must match the organization bound to the API key."}},"required":["amount","currency","source","destination","senderJurisdiction","receiverJurisdiction"]}}}}}},"/payments/bank-transfer/status":{"post":{"operationId":"payments_bank_transfer_status","summary":"Fetch bank transfer status","description":"Retrieves the latest status for a previously initiated bank transfer. Availability: Sandbox only (simulator-backed). Resolves through a sandbox simulator when no reviewed provider connection serves the request; simulated responses are not provider results. Requires the payments:write API key scope.","tags":["operate"],"security":[{"bearerAuth":[]}],"x-availability":"sandbox_only","x-availability-note":"Resolves through a sandbox simulator when no reviewed provider connection serves the request; simulated responses are not provider results.","x-request-validation":"documented","x-required-scope":"payments:write","x-error-codes":{"400":["VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["FORBIDDEN"],"409":["IDEMPOTENCY_IN_PROGRESS"],"422":["IDEMPOTENCY_KEY_REUSED"],"429":["RATE_LIMIT_EXCEEDED"],"500":["INTERNAL_ERROR"],"502":["PROVIDER_EXECUTION_FAILED"],"503":["IDEMPOTENCY_UNAVAILABLE","RATE_LIMIT_UNAVAILABLE"]},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional. When supplied, replays return the original response.","schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","description":"JSON object. This response does not yet have a published schema."}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: FORBIDDEN."},"409":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_IN_PROGRESS."},"422":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_KEY_REUSED."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: INTERNAL_ERROR."},"502":{"$ref":"#/components/responses/AgentError","description":"Error codes: PROVIDER_EXECUTION_FAILED."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_UNAVAILABLE, RATE_LIMIT_UNAVAILABLE."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"transferId":{"type":"string","minLength":1},"jurisdiction":{"type":"array","items":{"type":"string"},"description":"Jurisdiction codes in scope."},"operatorJurisdiction":{"type":"string"},"senderJurisdiction":{"type":"string","minLength":1,"description":"Required for payment compliance context."},"receiverJurisdiction":{"type":"string","minLength":1,"description":"Required for payment compliance context."},"organizationId":{"type":"string","description":"Must match the organization bound to the API key."}},"required":["transferId","senderJurisdiction","receiverJurisdiction"]}}}}}},"/payments/bank-transfer/cancel":{"post":{"operationId":"payments_bank_transfer_cancel","summary":"Cancel a bank transfer","description":"Attempts to cancel a bank transfer before it settles. Availability: Sandbox only (simulator-backed). Resolves through a sandbox simulator when no reviewed provider connection serves the request; simulated responses are not provider results. Requires the payments:write API key scope.","tags":["operate"],"security":[{"bearerAuth":[]}],"x-availability":"sandbox_only","x-availability-note":"Resolves through a sandbox simulator when no reviewed provider connection serves the request; simulated responses are not provider results.","x-request-validation":"enforced","x-required-scope":"payments:write","x-error-codes":{"400":["IDEMPOTENCY_KEY_REQUIRED","VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["FORBIDDEN"],"409":["IDEMPOTENCY_IN_PROGRESS"],"422":["IDEMPOTENCY_KEY_REUSED"],"429":["RATE_LIMIT_EXCEEDED"],"500":["INTERNAL_ERROR"],"502":["PROVIDER_EXECUTION_FAILED"],"503":["IDEMPOTENCY_UNAVAILABLE","RATE_LIMIT_UNAVAILABLE","STORAGE_UNAVAILABLE"]},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required. Replays return the original response; reuse with a different body is rejected.","schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","description":"JSON object. This response does not yet have a published schema."}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_KEY_REQUIRED, VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: FORBIDDEN."},"409":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_IN_PROGRESS."},"422":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_KEY_REUSED."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: INTERNAL_ERROR."},"502":{"$ref":"#/components/responses/AgentError","description":"Error codes: PROVIDER_EXECUTION_FAILED."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_UNAVAILABLE, RATE_LIMIT_UNAVAILABLE, STORAGE_UNAVAILABLE."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"transferId":{"type":"string","minLength":1},"jurisdiction":{"type":"array","items":{"type":"string"},"description":"Jurisdiction codes in scope."},"operatorJurisdiction":{"type":"string"},"senderJurisdiction":{"type":"string","minLength":1,"description":"Required for payment compliance context."},"receiverJurisdiction":{"type":"string","minLength":1,"description":"Required for payment compliance context."},"organizationId":{"type":"string","description":"Must match the organization bound to the API key."}},"required":["transferId","senderJurisdiction","receiverJurisdiction"]}}}}}},"/custody/wallets":{"post":{"operationId":"custody_wallet_create","summary":"Create a custody wallet","description":"Records a custody wallet request and returns its approval body. Provisioning requires an approved provider-operation approval. Availability: Sandbox only (simulator-backed). Custody fails closed with 424 when no reviewed provider connection serves the request. A simulator runs only when explicitly connected. A custody write requires an approved provider-operation approval. Requires the wallets:write API key scope.","tags":["operate"],"security":[{"bearerAuth":[]}],"x-availability":"sandbox_only","x-availability-note":"Custody fails closed with 424 when no reviewed provider connection serves the request. A simulator runs only when explicitly connected. A custody write requires an approved provider-operation approval.","x-request-validation":"enforced","x-required-scope":"wallets:write","x-error-codes":{"400":["IDEMPOTENCY_KEY_REQUIRED","VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["FORBIDDEN"],"409":["CUSTODY_STATE_CONFLICT","IDEMPOTENCY_IN_PROGRESS"],"422":["IDEMPOTENCY_KEY_REUSED"],"424":["PROVIDER_NOT_CONNECTED"],"429":["RATE_LIMIT_EXCEEDED"],"500":["INTERNAL_ERROR"],"502":["PROVIDER_EXECUTION_FAILED"],"503":["IDEMPOTENCY_UNAVAILABLE","RATE_LIMIT_UNAVAILABLE","SOURCE_NOT_AVAILABLE"]},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required. Replays return the original response; reuse with a different body is rejected.","schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","description":"JSON object. This response does not yet have a published schema."}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_KEY_REQUIRED, VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: FORBIDDEN."},"409":{"$ref":"#/components/responses/AgentError","description":"Error codes: CUSTODY_STATE_CONFLICT, IDEMPOTENCY_IN_PROGRESS."},"422":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_KEY_REUSED."},"424":{"$ref":"#/components/responses/AgentError","description":"Error codes: PROVIDER_NOT_CONNECTED."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: INTERNAL_ERROR."},"502":{"$ref":"#/components/responses/AgentError","description":"Error codes: PROVIDER_EXECUTION_FAILED."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_UNAVAILABLE, RATE_LIMIT_UNAVAILABLE, SOURCE_NOT_AVAILABLE."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"label":{"type":"string","minLength":2,"maxLength":64},"chain":{"type":"string"},"type":{"type":"string","enum":["hot","warm","cold"]},"policy":{},"jurisdiction":{"type":"array","items":{"type":"string"}},"operatorJurisdiction":{"type":"string"},"organizationId":{"type":"string","format":"uuid"}},"required":["label","chain","type"],"additionalProperties":false},{"type":"object","properties":{"custodyWalletId":{"type":"string","format":"uuid"},"approvalRequestId":{"type":"string","format":"uuid"},"organizationId":{"type":"string","format":"uuid"}},"required":["custodyWalletId","approvalRequestId"],"additionalProperties":false}]}}}}}},"/custody/wallets/balance":{"post":{"operationId":"custody_wallet_balance","summary":"Fetch custody wallet balances","description":"Reads custody wallet balances through the connected provider. This operation does not create a wallet. Availability: Sandbox only (simulator-backed). Custody fails closed with 424 when no reviewed provider connection serves the request. A simulator runs only when explicitly connected. A custody write requires an approved provider-operation approval. Requires the wallets:write API key scope.","tags":["operate"],"security":[{"bearerAuth":[]}],"x-availability":"sandbox_only","x-availability-note":"Custody fails closed with 424 when no reviewed provider connection serves the request. A simulator runs only when explicitly connected. A custody write requires an approved provider-operation approval.","x-request-validation":"documented","x-required-scope":"wallets:write","x-error-codes":{"400":["VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["FORBIDDEN"],"409":["IDEMPOTENCY_IN_PROGRESS"],"422":["IDEMPOTENCY_KEY_REUSED"],"429":["RATE_LIMIT_EXCEEDED"],"500":["INTERNAL_ERROR"],"502":["PROVIDER_EXECUTION_FAILED"],"503":["IDEMPOTENCY_UNAVAILABLE","RATE_LIMIT_UNAVAILABLE"]},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional. When supplied, replays return the original response.","schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","description":"JSON object. This response does not yet have a published schema."}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: FORBIDDEN."},"409":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_IN_PROGRESS."},"422":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_KEY_REUSED."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: INTERNAL_ERROR."},"502":{"$ref":"#/components/responses/AgentError","description":"Error codes: PROVIDER_EXECUTION_FAILED."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_UNAVAILABLE, RATE_LIMIT_UNAVAILABLE."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"walletId":{"type":"string","minLength":1},"asset":{"type":"string"},"jurisdiction":{"type":"array","items":{"type":"string"},"description":"Jurisdiction codes in scope."},"operatorJurisdiction":{"type":"string"},"organizationId":{"type":"string","description":"Must match the organization bound to the API key."}},"required":["walletId"]}}}}}},"/custody/transfers":{"post":{"operationId":"custody_transfer_initiate","summary":"Initiate a custody transfer","description":"Records a custody transfer request and returns its approval body. Submission requires an approved provider-operation approval. Availability: Sandbox only (simulator-backed). Custody fails closed with 424 when no reviewed provider connection serves the request. A simulator runs only when explicitly connected. A custody write requires an approved provider-operation approval. Requires the wallets:write API key scope.","tags":["operate"],"security":[{"bearerAuth":[]}],"x-availability":"sandbox_only","x-availability-note":"Custody fails closed with 424 when no reviewed provider connection serves the request. A simulator runs only when explicitly connected. A custody write requires an approved provider-operation approval.","x-request-validation":"enforced","x-required-scope":"wallets:write","x-error-codes":{"400":["IDEMPOTENCY_KEY_REQUIRED","VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["FORBIDDEN"],"409":["CUSTODY_STATE_CONFLICT","IDEMPOTENCY_IN_PROGRESS"],"422":["IDEMPOTENCY_KEY_REUSED"],"424":["PROVIDER_NOT_CONNECTED"],"429":["RATE_LIMIT_EXCEEDED"],"500":["INTERNAL_ERROR"],"502":["PROVIDER_EXECUTION_FAILED"],"503":["IDEMPOTENCY_UNAVAILABLE","RATE_LIMIT_UNAVAILABLE","SOURCE_NOT_AVAILABLE"]},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required. Replays return the original response; reuse with a different body is rejected.","schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","description":"JSON object. This response does not yet have a published schema."}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_KEY_REQUIRED, VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: FORBIDDEN."},"409":{"$ref":"#/components/responses/AgentError","description":"Error codes: CUSTODY_STATE_CONFLICT, IDEMPOTENCY_IN_PROGRESS."},"422":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_KEY_REUSED."},"424":{"$ref":"#/components/responses/AgentError","description":"Error codes: PROVIDER_NOT_CONNECTED."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: INTERNAL_ERROR."},"502":{"$ref":"#/components/responses/AgentError","description":"Error codes: PROVIDER_EXECUTION_FAILED."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_UNAVAILABLE, RATE_LIMIT_UNAVAILABLE, SOURCE_NOT_AVAILABLE."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"walletId":{"type":"string","minLength":1},"destination":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"asset":{"type":"string"},"amountMinor":{"type":"string","pattern":"^[1-9][0-9]{0,77}$"},"amount":{},"note":{"type":"string","maxLength":500},"jurisdiction":{"type":"array","items":{"type":"string"}},"operatorJurisdiction":{"type":"string"},"senderJurisdiction":{"type":"string"},"receiverJurisdiction":{"type":"string"},"organizationId":{"type":"string","format":"uuid"}},"required":["walletId","destination","asset","amountMinor"],"additionalProperties":false},{"type":"object","properties":{"custodyTransferId":{"type":"string","format":"uuid"},"approvalRequestId":{"type":"string","format":"uuid"},"organizationId":{"type":"string","format":"uuid"}},"required":["custodyTransferId","approvalRequestId"],"additionalProperties":false},{"type":"object","properties":{"custodyTransferId":{"type":"string","format":"uuid"},"expectedVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"organizationId":{"type":"string","format":"uuid"}},"required":["custodyTransferId","expectedVersion"],"additionalProperties":false}]}}}}}},"/custody/transfers/status":{"post":{"operationId":"custody_transfer_status","summary":"Fetch custody transfer status","description":"Reads the latest custody transfer status through the connected provider or the stored custody record. This operation does not send a transfer. Availability: Sandbox only (simulator-backed). Custody fails closed with 424 when no reviewed provider connection serves the request. A simulator runs only when explicitly connected. A custody write requires an approved provider-operation approval. Requires the wallets:read API key scope.","tags":["operate"],"security":[{"bearerAuth":[]}],"x-availability":"sandbox_only","x-availability-note":"Custody fails closed with 424 when no reviewed provider connection serves the request. A simulator runs only when explicitly connected. A custody write requires an approved provider-operation approval.","x-request-validation":"enforced","x-required-scope":"wallets:read","x-error-codes":{"400":["VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["FORBIDDEN"],"409":["CUSTODY_STATE_CONFLICT","IDEMPOTENCY_IN_PROGRESS"],"422":["IDEMPOTENCY_KEY_REUSED"],"429":["RATE_LIMIT_EXCEEDED"],"500":["INTERNAL_ERROR"],"502":["PROVIDER_EXECUTION_FAILED"],"503":["IDEMPOTENCY_UNAVAILABLE","RATE_LIMIT_UNAVAILABLE","SOURCE_NOT_AVAILABLE"]},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional. When supplied, replays return the original response.","schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","description":"JSON object. This response does not yet have a published schema."}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: FORBIDDEN."},"409":{"$ref":"#/components/responses/AgentError","description":"Error codes: CUSTODY_STATE_CONFLICT, IDEMPOTENCY_IN_PROGRESS."},"422":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_KEY_REUSED."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: INTERNAL_ERROR."},"502":{"$ref":"#/components/responses/AgentError","description":"Error codes: PROVIDER_EXECUTION_FAILED."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_UNAVAILABLE, RATE_LIMIT_UNAVAILABLE, SOURCE_NOT_AVAILABLE."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"custodyTransferId":{"type":"string","format":"uuid"},"organizationId":{"type":"string","format":"uuid"}},"required":["custodyTransferId"],"additionalProperties":false},{"type":"object","properties":{"transferId":{"type":"string","minLength":1},"jurisdiction":{"type":"array","items":{"type":"string"}},"operatorJurisdiction":{"type":"string"},"organizationId":{"type":"string","format":"uuid"}},"required":["transferId"],"additionalProperties":false}]}}}}}},"/payments/corridor/simulate":{"post":{"operationId":"payments_corridor_simulate","summary":"Simulate a corridor flow","description":"Runs custody, KYC, sanctions, and bank transfer steps to assess corridor readiness in one request. Availability: Sandbox only (simulator-backed). A rehearsal surface: steps without a reviewed provider connection use simulators or local fallbacks. Requires the payments:write API key scope.","tags":["operate"],"security":[{"bearerAuth":[]}],"x-availability":"sandbox_only","x-availability-note":"A rehearsal surface: steps without a reviewed provider connection use simulators or local fallbacks.","x-request-validation":"enforced","x-required-scope":"payments:write","x-error-codes":{"400":["IDEMPOTENCY_KEY_REQUIRED","VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["FORBIDDEN"],"409":["IDEMPOTENCY_IN_PROGRESS"],"422":["IDEMPOTENCY_KEY_REUSED"],"429":["RATE_LIMIT_EXCEEDED"],"500":["INTERNAL_ERROR"],"502":["PROVIDER_EXECUTION_FAILED"],"503":["IDEMPOTENCY_UNAVAILABLE","RATE_LIMIT_UNAVAILABLE","STORAGE_UNAVAILABLE"]},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required. Replays return the original response; reuse with a different body is rejected.","schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","description":"JSON object. This response does not yet have a published schema."}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_KEY_REQUIRED, VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: FORBIDDEN."},"409":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_IN_PROGRESS."},"422":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_KEY_REUSED."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: INTERNAL_ERROR."},"502":{"$ref":"#/components/responses/AgentError","description":"Error codes: PROVIDER_EXECUTION_FAILED."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_UNAVAILABLE, RATE_LIMIT_UNAVAILABLE, STORAGE_UNAVAILABLE."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"person":{"$ref":"#/components/schemas/Person"},"source":{"$ref":"#/components/schemas/BankAccount"},"destination":{"$ref":"#/components/schemas/BankAccount"},"amount":{"type":"string","minLength":1},"currency":{"type":"string","minLength":1},"custody":{"type":"object","properties":{"label":{"type":"string","minLength":1},"chain":{"type":"string"},"type":{"type":"string","enum":["hot","warm","cold"]}},"required":["label","chain","type"]},"destinationAddress":{"type":"string"},"rail":{"type":"string"},"reference":{"type":"string"},"jurisdiction":{"type":"array","items":{"type":"string"},"description":"Jurisdiction codes in scope."},"senderJurisdiction":{"type":"string","minLength":1},"receiverJurisdiction":{"type":"string","minLength":1},"organizationId":{"type":"string","description":"Must match the organization bound to the API key."},"executionMode":{"type":"string","enum":["sync","async_provider","async_executor"]}},"required":["person","source","destination","amount","currency","custody","senderJurisdiction","receiverJurisdiction"]}}}}}},"/payments/corridor/workflows/{workflowRunId}":{"get":{"operationId":"payments_corridor_workflow_status","summary":"Fetch corridor workflow status","description":"Returns the durable run and step state for a previously started corridor simulation workflow. Availability: Available. Requires the payments:read API key scope.","tags":["operate"],"security":[{"bearerAuth":[]}],"x-availability":"available","x-request-validation":"enforced","x-required-scope":"payments:read","x-error-codes":{"400":["INVALID_INPUT","VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["FORBIDDEN"],"404":["NOT_FOUND"],"429":["RATE_LIMIT_EXCEEDED"],"500":["INTERNAL_ERROR"],"503":["RATE_LIMIT_UNAVAILABLE"]},"parameters":[{"name":"workflowRunId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$"}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","required":["run","steps"],"properties":{"run":{"type":"object","required":["id","status","currentStepKey","traceId","errorCode","startedAt","blockedAt","completedAt","createdAt","updatedAt"],"properties":{"id":{"type":"string","minLength":1},"status":{"type":"string"},"currentStepKey":{"type":["string","null"]},"traceId":{"type":["string","null"]},"errorCode":{"type":["string","null"]},"startedAt":{"type":["string","null"]},"blockedAt":{"type":["string","null"]},"completedAt":{"type":["string","null"]},"createdAt":{"type":"string","minLength":1},"updatedAt":{"type":"string","minLength":1}},"additionalProperties":true},"steps":{"type":"array","items":{"type":"object","required":["stepKey","title","stepOrder","status","attemptCount","maxAttempts","nextAttemptAt","errorCode","startedAt","blockedAt","completedAt","createdAt","updatedAt"],"properties":{"stepKey":{"type":"string","minLength":1},"title":{"type":"string","minLength":1},"stepOrder":{"type":"integer","minimum":0},"status":{"type":"string"},"attemptCount":{"type":"integer","minimum":0},"maxAttempts":{"type":"integer","minimum":1},"nextAttemptAt":{"type":["string","null"]},"errorCode":{"type":["string","null"]},"startedAt":{"type":["string","null"]},"blockedAt":{"type":["string","null"]},"completedAt":{"type":["string","null"]},"createdAt":{"type":"string","minLength":1},"updatedAt":{"type":"string","minLength":1}},"additionalProperties":true}}},"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: INVALID_INPUT, VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: FORBIDDEN."},"404":{"$ref":"#/components/responses/AgentError","description":"Error codes: NOT_FOUND."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: INTERNAL_ERROR."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_UNAVAILABLE."}}}},"/payments/corridor/workflows/dispatch":{"post":{"operationId":"payments_corridor_workflows_dispatch","summary":"Dispatch queued corridor workflows","description":"Scheduler endpoint that advances queued corridor workflow runs. Availability: Available.","tags":["operate"],"security":[{"cronSecret":[]}],"x-availability":"available","x-request-validation":"documented","x-internal":true,"x-error-codes":{"401":[],"500":[]},"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","description":"JSON object. This response does not yet have a published schema."}}}},"401":{"$ref":"#/components/responses/PlainError","description":"Missing or wrong scheduler secret."},"500":{"$ref":"#/components/responses/PlainError","description":"The dispatch run failed."}}}},"/treasury/mint":{"post":{"operationId":"treasury_mint","summary":"Request an issuer mint","description":"Creates an issuance request that a second person approves in the workspace. No transaction is prepared or sent. Amounts are in the token's smallest unit. Availability: Sandbox only (simulator-backed). Creates a sandbox issuance request for approval by a second person in the workspace. No transaction is prepared or sent. Requires the wallets:write API key scope.","tags":["operate"],"security":[{"bearerAuth":[]}],"x-availability":"sandbox_only","x-availability-note":"Creates a sandbox issuance request for approval by a second person in the workspace. No transaction is prepared or sent.","x-request-validation":"enforced","x-required-scope":"wallets:write","x-error-codes":{"400":["IDEMPOTENCY_KEY_REQUIRED","VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["CHAIN_CAPABILITY_DISABLED","FORBIDDEN"],"404":["NOT_FOUND"],"409":["IDEMPOTENCY_IN_PROGRESS"],"422":["IDEMPOTENCY_KEY_REUSED","PRECHECK_FAILED"],"429":["RATE_LIMIT_EXCEEDED"],"500":["INTERNAL_ERROR"],"503":["IDEMPOTENCY_UNAVAILABLE","RATE_LIMIT_UNAVAILABLE","STORAGE_UNAVAILABLE"]},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required. Replays return the original response; reuse with a different body is rejected.","schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"202":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","properties":{"intentId":{"type":"string","format":"uuid"},"issuerId":{"type":"string","format":"uuid"},"operation":{"type":"string","enum":["mint","burn"]},"status":{"type":"string","enum":["draft","pending_approval","approved","submitted","confirmed","failed","expired","cancelled","needs_review","resolved_no_effect"]},"approvalsRequired":{"type":"integer","minimum":1,"maximum":5},"chain":{"type":"string"},"chainId":{"type":"integer","exclusiveMinimum":0,"minimum":-9007199254740991,"maximum":9007199254740991},"contractAddress":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"amountMinor":{"type":"string"},"amountTokens":{"type":"string","pattern":"^(0|[1-9][0-9]*)(?:\\.[0-9]*[1-9])?$"},"decimals":{"type":"integer","minimum":0,"maximum":18},"wallet":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"signerAddress":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"next":{"type":"string","const":"approve_in_workspace"},"auditLogged":{"type":"boolean"}},"required":["intentId","issuerId","operation","status","approvalsRequired","chain","chainId","contractAddress","amountMinor","amountTokens","decimals","wallet","signerAddress","next","auditLogged"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_KEY_REQUIRED, VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: CHAIN_CAPABILITY_DISABLED, FORBIDDEN."},"404":{"$ref":"#/components/responses/AgentError","description":"Error codes: NOT_FOUND."},"409":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_IN_PROGRESS."},"422":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_KEY_REUSED, PRECHECK_FAILED."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: INTERNAL_ERROR."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_UNAVAILABLE, RATE_LIMIT_UNAVAILABLE, STORAGE_UNAVAILABLE."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"issuerId":{"type":"string","format":"uuid"},"amountMinor":{"type":"string"},"signerAddress":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"reason":{"type":"string","minLength":1,"maxLength":500},"organizationId":{"type":"string","format":"uuid"},"to":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}},"required":["issuerId","amountMinor","signerAddress","to"],"additionalProperties":false}}}}}},"/treasury/burn":{"post":{"operationId":"treasury_burn","summary":"Request an issuer burn","description":"Creates an issuance request that a second person approves in the workspace. No transaction is prepared or sent. Amounts are in the token's smallest unit. Availability: Sandbox only (simulator-backed). Creates a sandbox issuance request for approval by a second person in the workspace. No transaction is prepared or sent. Requires the wallets:write API key scope.","tags":["operate"],"security":[{"bearerAuth":[]}],"x-availability":"sandbox_only","x-availability-note":"Creates a sandbox issuance request for approval by a second person in the workspace. No transaction is prepared or sent.","x-request-validation":"enforced","x-required-scope":"wallets:write","x-error-codes":{"400":["IDEMPOTENCY_KEY_REQUIRED","VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["CHAIN_CAPABILITY_DISABLED","FORBIDDEN"],"404":["NOT_FOUND"],"409":["IDEMPOTENCY_IN_PROGRESS"],"422":["IDEMPOTENCY_KEY_REUSED","PRECHECK_FAILED"],"429":["RATE_LIMIT_EXCEEDED"],"500":["INTERNAL_ERROR"],"503":["IDEMPOTENCY_UNAVAILABLE","RATE_LIMIT_UNAVAILABLE","STORAGE_UNAVAILABLE"]},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required. Replays return the original response; reuse with a different body is rejected.","schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"202":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","properties":{"intentId":{"type":"string","format":"uuid"},"issuerId":{"type":"string","format":"uuid"},"operation":{"type":"string","enum":["mint","burn"]},"status":{"type":"string","enum":["draft","pending_approval","approved","submitted","confirmed","failed","expired","cancelled","needs_review","resolved_no_effect"]},"approvalsRequired":{"type":"integer","minimum":1,"maximum":5},"chain":{"type":"string"},"chainId":{"type":"integer","exclusiveMinimum":0,"minimum":-9007199254740991,"maximum":9007199254740991},"contractAddress":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"amountMinor":{"type":"string"},"amountTokens":{"type":"string","pattern":"^(0|[1-9][0-9]*)(?:\\.[0-9]*[1-9])?$"},"decimals":{"type":"integer","minimum":0,"maximum":18},"wallet":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"signerAddress":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"next":{"type":"string","const":"approve_in_workspace"},"auditLogged":{"type":"boolean"}},"required":["intentId","issuerId","operation","status","approvalsRequired","chain","chainId","contractAddress","amountMinor","amountTokens","decimals","wallet","signerAddress","next","auditLogged"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_KEY_REQUIRED, VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: CHAIN_CAPABILITY_DISABLED, FORBIDDEN."},"404":{"$ref":"#/components/responses/AgentError","description":"Error codes: NOT_FOUND."},"409":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_IN_PROGRESS."},"422":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_KEY_REUSED, PRECHECK_FAILED."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: INTERNAL_ERROR."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_UNAVAILABLE, RATE_LIMIT_UNAVAILABLE, STORAGE_UNAVAILABLE."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"issuerId":{"type":"string","format":"uuid"},"amountMinor":{"type":"string"},"signerAddress":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"reason":{"type":"string","minLength":1,"maxLength":500},"organizationId":{"type":"string","format":"uuid"},"from":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}},"required":["issuerId","amountMinor","signerAddress","from"],"additionalProperties":false}}}}}},"/treasury/status":{"post":{"operationId":"treasury_status","summary":"Get treasury status","description":"Returns on-chain total supply with reserve and peg fields. recentOperations lists issuance requests with amountMinor (smallest unit), amountTokens and status. Availability: Available. Total supply is read on-chain. Circulating supply, reserve ratio and peg price come from a connected source; without one they are null with a reason (source_not_connected), never estimated. Requires the wallets:write API key scope.","tags":["operate"],"security":[{"bearerAuth":[]}],"x-availability":"available","x-availability-note":"Total supply is read on-chain. Circulating supply, reserve ratio and peg price come from a connected source; without one they are null with a reason (source_not_connected), never estimated.","x-request-validation":"documented","x-required-scope":"wallets:write","x-error-codes":{"400":["VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["FORBIDDEN"],"409":["IDEMPOTENCY_IN_PROGRESS"],"422":["IDEMPOTENCY_KEY_REUSED"],"429":["RATE_LIMIT_EXCEEDED"],"500":["INTERNAL_ERROR"],"503":["IDEMPOTENCY_UNAVAILABLE","RATE_LIMIT_UNAVAILABLE"]},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional. When supplied, replays return the original response.","schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","properties":{"recentOperations":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["mint","burn","freeze","unfreeze","pause","resume","transfer","redemption","custom","create_mint"]},"amountMinor":{"type":["string","null"],"pattern":"^[1-9][0-9]*$"},"amountTokens":{"type":["string","null"],"pattern":"^(0|[1-9][0-9]*)(?:\\.[0-9]*[1-9])?$"},"status":{"type":"string","enum":["draft","pending_approval","approved","submitted","confirmed","failed","expired","cancelled","needs_review","resolved_no_effect"]},"timestamp":{"type":"string","format":"date-time"}},"required":["type","amountMinor","amountTokens","status","timestamp"],"additionalProperties":false}}},"required":["recentOperations"]}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: FORBIDDEN."},"409":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_IN_PROGRESS."},"422":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_KEY_REUSED."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: INTERNAL_ERROR."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_UNAVAILABLE, RATE_LIMIT_UNAVAILABLE."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contractAddress":{"type":"string","minLength":1},"chain":{"type":"string","description":"Chain key enabled for this capability at runtime, for example base-sepolia."},"asset":{"type":"string"},"organizationId":{"type":"string","description":"Must match the organization bound to the API key."}},"required":["contractAddress"]}}}}}},"/treasury/stress-test":{"post":{"operationId":"treasury_stress_test","summary":"Run treasury stress scenario","description":"Applies a redemption shock to the on-chain total supply and a reserve ratio, and returns post-shock reserves, solvency and the liquidity gap. Availability: Available. Total supply is read on-chain. The reserve ratio is scenario.reserveRatio when supplied, otherwise the ratio a connected reserve source (token_issuance connection) reports; with neither the endpoint answers 424 RESERVE_SOURCE_NOT_CONNECTED and never estimates one. inputs.reserveRatioSource names the source, and simulated is true only when a sandbox simulator supplied the ratio. Peg price is not used. Requires the wallets:write API key scope.","tags":["operate"],"security":[{"bearerAuth":[]}],"x-availability":"available","x-availability-note":"Total supply is read on-chain. The reserve ratio is scenario.reserveRatio when supplied, otherwise the ratio a connected reserve source (token_issuance connection) reports; with neither the endpoint answers 424 RESERVE_SOURCE_NOT_CONNECTED and never estimates one. inputs.reserveRatioSource names the source, and simulated is true only when a sandbox simulator supplied the ratio. Peg price is not used.","x-request-validation":"documented","x-required-scope":"wallets:write","x-error-codes":{"400":["UNSUPPORTED_CHAIN","VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["CHAIN_CAPABILITY_DISABLED","FORBIDDEN"],"409":["IDEMPOTENCY_IN_PROGRESS"],"422":["IDEMPOTENCY_KEY_REUSED","PRECHECK_FAILED"],"424":["RESERVE_SOURCE_NOT_CONNECTED"],"429":["RATE_LIMIT_EXCEEDED"],"500":["INTERNAL_ERROR"],"503":["IDEMPOTENCY_UNAVAILABLE","RATE_LIMIT_UNAVAILABLE"]},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional. When supplied, replays return the original response.","schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","properties":{"postShockReserves":{"type":"string","description":"Whole units after the shock."},"postShockRatio":{"type":"number"},"solvent":{"type":"boolean","description":"Post-shock reserve ratio at or above 0.5."},"liquidityGap":{"type":"string","description":"Whole units of redemptions not covered by starting reserves."},"timeToInsolvency":{"type":["string","null"],"description":"Null when solvent, or when the time horizon cannot be parsed (see unavailableFields)."},"timeToInsolvencyBasis":{"type":"string","const":"linear_redemption_over_time_horizon"},"recommendations":{"type":"array","items":{"type":"string"}},"breakdown":{"type":"object","properties":{"byComponent":{"type":["array","null"],"items":{"type":"object","properties":{"type":{"type":"string"},"amount":{"type":"string"}},"required":["type","amount"],"additionalProperties":false},"description":"Redemptions allocated across the composition a connected reserve source reports. Null with a scenario reserve ratio."},"remainingBufferPct":{"type":"number"}},"required":["byComponent","remainingBufferPct"],"additionalProperties":false},"inputs":{"type":"object","properties":{"totalSupply":{"type":"string","description":"On-chain total supply in whole units."},"reserveRatio":{"type":"number"},"reserveRatioSource":{"type":"string","enum":["scenario_input","provider_runtime"]},"redemptionShock":{"type":"number"},"timeHorizon":{"type":"string"},"reserveLiquidityDiscount":{"type":"number"}},"required":["totalSupply","reserveRatio","reserveRatioSource","redemptionShock","timeHorizon","reserveLiquidityDiscount"],"additionalProperties":false},"providerConnectionId":{"type":["string","null"],"description":"The reserve source connection when it supplied the ratio."},"simulated":{"type":"boolean","description":"True only when a sandbox simulator supplied the reserve ratio."},"unavailableFields":{"type":"object","additionalProperties":{"type":"object","properties":{"reason":{"type":"string","enum":["source_not_connected","source_unavailable","reserve_amount_not_provided","supply_is_zero","time_horizon_not_parseable"]},"detail":{"type":"string"}},"required":["reason","detail"],"additionalProperties":false}}},"required":["postShockReserves","postShockRatio","solvent","liquidityGap","timeToInsolvency","recommendations","breakdown","inputs","providerConnectionId","simulated","unavailableFields"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNSUPPORTED_CHAIN, VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: CHAIN_CAPABILITY_DISABLED, FORBIDDEN."},"409":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_IN_PROGRESS."},"422":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_KEY_REUSED, PRECHECK_FAILED."},"424":{"$ref":"#/components/responses/AgentError","description":"Error codes: RESERVE_SOURCE_NOT_CONNECTED."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: INTERNAL_ERROR."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_UNAVAILABLE, RATE_LIMIT_UNAVAILABLE."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contractAddress":{"type":"string","minLength":1,"description":"ERC-20 token contract whose total supply is read on-chain."},"chain":{"type":"string","description":"Chain key enabled for the treasury capability at runtime. Defaults to base-sepolia."},"asset":{"type":"string","description":"Asset code the reserve source reports on. Defaults to USDC."},"organizationId":{"type":"string","description":"Must match the organization bound to the API key."},"scenario":{"type":"object","properties":{"redemptionShock":{"type":"number","description":"Share of total supply redeemed, from 0 to 1. Values outside that range are clamped."},"timeHorizon":{"type":"string","description":"Horizon such as 90m, 24h, 7d or 2w, used for time to insolvency. Defaults to 24h."},"reserveRatio":{"type":"number","minimum":0,"description":"Reserve ratio to test, where 1 is fully reserved. Takes precedence over a connected reserve source. Required when no reserve source (token_issuance connection) is connected; without either the route answers 424 RESERVE_SOURCE_NOT_CONNECTED."},"assumptions":{"type":"object","properties":{"reserveLiquidityDiscount":{"type":"number","description":"Discount applied to redeemed reserves, from 0 to 1. Defaults to 0.02."},"marketImpact":{"type":"string"}}}},"required":["redemptionShock"]}},"required":["contractAddress","scenario"]}}}}}},"/cards/programmes":{"post":{"operationId":"cards_programme_create","summary":"Create a card programme","description":"Creates a card programme with the connected card issuer: network, BIN sponsor, jurisdictions and funding asset. Availability: Sandbox only (simulator-backed). The card issuing simulator is the only card_issuance adapter. Responses carry simulated: true; in production without a reviewed card issuer connection the endpoint answers 424 PROVIDER_NOT_CONNECTED. Requires an organization-bound key. Requires the cards:write API key scope.","tags":["operate"],"security":[{"bearerAuth":[]}],"x-availability":"sandbox_only","x-availability-note":"The card issuing simulator is the only card_issuance adapter. Responses carry simulated: true; in production without a reviewed card issuer connection the endpoint answers 424 PROVIDER_NOT_CONNECTED. Requires an organization-bound key.","x-request-validation":"enforced","x-required-scope":"cards:write","x-error-codes":{"400":["IDEMPOTENCY_KEY_REQUIRED","VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["COMPLIANCE_BLOCKED","FORBIDDEN","PROVIDER_AUTHORIZATION_DENIED"],"404":["NOT_FOUND"],"409":["CARD_INSUFFICIENT_FUNDS","CARD_RECORD_CONFLICT","IDEMPOTENCY_IN_PROGRESS"],"422":["CARD_REQUEST_REJECTED","IDEMPOTENCY_KEY_REUSED"],"424":["PROVIDER_NOT_CONNECTED"],"429":["PROVIDER_RATE_LIMITED","RATE_LIMIT_EXCEEDED"],"500":["CARD_RECORD_WRITE_FAILED","INTERNAL_ERROR"],"501":["CARD_OPERATION_NOT_SUPPORTED"],"502":["PROVIDER_EXECUTION_FAILED"],"503":["IDEMPOTENCY_UNAVAILABLE","RATE_LIMIT_UNAVAILABLE"]},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required. Replays return the original response; reuse with a different body is rejected.","schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"201":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","properties":{"simulated":{"type":"boolean","description":"True when the card issuing simulator produced the result. Simulated results are not issuer results."},"environment":{"type":"string","enum":["sandbox","production"]},"provider":{"$ref":"#/components/schemas/CardProvider"},"evidence":{"type":"array","items":{"$ref":"#/components/schemas/ProviderCallEvidence"}},"programme":{"type":"object","properties":{"programmeId":{"type":"string"},"status":{"type":"string","enum":["active","pending_review"]},"name":{"type":"string"},"network":{"type":"string","enum":["visa","mastercard"]},"binSponsor":{"type":"string","description":"Issuer-reported BIN sponsor. The platform does not verify sponsorship."},"jurisdictions":{"type":"array","items":{"type":"string","description":"ISO 3166-1 alpha-2 code."}},"fundingAsset":{"type":"string","description":"Stablecoin asset key, such as USDC."},"fundingModel":{"type":"string","enum":["prefunded","just_in_time"]}},"required":["programmeId","status","name","network","binSponsor","jurisdictions","fundingAsset","fundingModel"]}},"required":["simulated","environment","provider","evidence","programme"]}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_KEY_REQUIRED, VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: COMPLIANCE_BLOCKED, FORBIDDEN, PROVIDER_AUTHORIZATION_DENIED."},"404":{"$ref":"#/components/responses/AgentError","description":"Error codes: NOT_FOUND."},"409":{"$ref":"#/components/responses/AgentError","description":"Error codes: CARD_INSUFFICIENT_FUNDS, CARD_RECORD_CONFLICT, IDEMPOTENCY_IN_PROGRESS."},"422":{"$ref":"#/components/responses/AgentError","description":"Error codes: CARD_REQUEST_REJECTED, IDEMPOTENCY_KEY_REUSED."},"424":{"$ref":"#/components/responses/AgentError","description":"Error codes: PROVIDER_NOT_CONNECTED."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: PROVIDER_RATE_LIMITED, RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: CARD_RECORD_WRITE_FAILED, INTERNAL_ERROR."},"501":{"$ref":"#/components/responses/AgentError","description":"Error codes: CARD_OPERATION_NOT_SUPPORTED."},"502":{"$ref":"#/components/responses/AgentError","description":"Error codes: PROVIDER_EXECUTION_FAILED."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_UNAVAILABLE, RATE_LIMIT_UNAVAILABLE."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"network":{"type":"string","enum":["visa","mastercard"]},"binSponsor":{"type":"string","minLength":1,"maxLength":200},"jurisdictions":{"type":"array","items":{"type":"string","pattern":"^[A-Z]{2}$"},"minItems":1,"maxItems":50},"fundingAsset":{"type":"string","pattern":"^[A-Z0-9]{2,12}$"},"fundingModel":{"type":"string","enum":["prefunded","just_in_time"]}},"required":["name","network","binSponsor","jurisdictions","fundingAsset","fundingModel"],"additionalProperties":false}}}}}},"/cards/issue":{"post":{"operationId":"cards_issue","summary":"Issue a card","description":"Issues a card under a programme, creating the cardholder first when one is supplied inline. Availability: Sandbox only (simulator-backed). The card issuing simulator is the only card_issuance adapter. Responses carry simulated: true; in production without a reviewed card issuer connection the endpoint answers 424 PROVIDER_NOT_CONNECTED. Requires an organization-bound key. Requires the cards:write API key scope.","tags":["operate"],"security":[{"bearerAuth":[]}],"x-availability":"sandbox_only","x-availability-note":"The card issuing simulator is the only card_issuance adapter. Responses carry simulated: true; in production without a reviewed card issuer connection the endpoint answers 424 PROVIDER_NOT_CONNECTED. Requires an organization-bound key.","x-request-validation":"enforced","x-required-scope":"cards:write","x-error-codes":{"400":["IDEMPOTENCY_KEY_REQUIRED","VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["COMPLIANCE_BLOCKED","FORBIDDEN","PROVIDER_AUTHORIZATION_DENIED"],"404":["NOT_FOUND"],"409":["CARD_INSUFFICIENT_FUNDS","CARD_RECORD_CONFLICT","IDEMPOTENCY_IN_PROGRESS"],"422":["CARD_REQUEST_REJECTED","IDEMPOTENCY_KEY_REUSED"],"424":["PROVIDER_NOT_CONNECTED"],"429":["PROVIDER_RATE_LIMITED","RATE_LIMIT_EXCEEDED"],"500":["CARD_RECORD_WRITE_FAILED","INTERNAL_ERROR"],"501":["CARD_OPERATION_NOT_SUPPORTED"],"502":["PROVIDER_EXECUTION_FAILED"],"503":["IDEMPOTENCY_UNAVAILABLE","RATE_LIMIT_UNAVAILABLE"]},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required. Replays return the original response; reuse with a different body is rejected.","schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"201":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","properties":{"simulated":{"type":"boolean","description":"True when the card issuing simulator produced the result. Simulated results are not issuer results."},"environment":{"type":"string","enum":["sandbox","production"]},"provider":{"$ref":"#/components/schemas/CardProvider"},"evidence":{"type":"array","items":{"$ref":"#/components/schemas/ProviderCallEvidence"}},"card":{"$ref":"#/components/schemas/Card"},"cardholder":{"type":["object","null"],"properties":{"cardholderId":{"type":"string"},"programmeId":{"type":"string"},"holderType":{"type":"string","enum":["individual","business"]},"jurisdiction":{"type":"string","description":"ISO 3166-1 alpha-2 code."},"status":{"type":"string","enum":["active","pending_review"]}},"required":["cardholderId","programmeId","holderType","jurisdiction","status"],"description":"The cardholder created by this request, or null when `cardholderId` was supplied."}},"required":["simulated","environment","provider","evidence","card","cardholder"]}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_KEY_REQUIRED, VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: COMPLIANCE_BLOCKED, FORBIDDEN, PROVIDER_AUTHORIZATION_DENIED."},"404":{"$ref":"#/components/responses/AgentError","description":"Error codes: NOT_FOUND."},"409":{"$ref":"#/components/responses/AgentError","description":"Error codes: CARD_INSUFFICIENT_FUNDS, CARD_RECORD_CONFLICT, IDEMPOTENCY_IN_PROGRESS."},"422":{"$ref":"#/components/responses/AgentError","description":"Error codes: CARD_REQUEST_REJECTED, IDEMPOTENCY_KEY_REUSED."},"424":{"$ref":"#/components/responses/AgentError","description":"Error codes: PROVIDER_NOT_CONNECTED."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: PROVIDER_RATE_LIMITED, RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: CARD_RECORD_WRITE_FAILED, INTERNAL_ERROR."},"501":{"$ref":"#/components/responses/AgentError","description":"Error codes: CARD_OPERATION_NOT_SUPPORTED."},"502":{"$ref":"#/components/responses/AgentError","description":"Error codes: PROVIDER_EXECUTION_FAILED."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_UNAVAILABLE, RATE_LIMIT_UNAVAILABLE."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"programmeId":{"type":"string","minLength":1,"maxLength":200},"cardholderId":{"type":"string","minLength":1,"maxLength":200},"cardholder":{"type":"object","properties":{"holderType":{"type":"string","enum":["individual","business"]},"displayName":{"type":"string","minLength":1,"maxLength":200},"jurisdiction":{"type":"string","pattern":"^[A-Z]{2}$"},"externalReference":{"type":"string","minLength":1,"maxLength":200}},"required":["holderType","displayName","jurisdiction"],"additionalProperties":false},"limits":{"type":"object","properties":{"perTransaction":{"type":"string","pattern":"^(0|[1-9]\\d{0,17})(\\.\\d{1,18})?$"},"daily":{"type":"string","pattern":"^(0|[1-9]\\d{0,17})(\\.\\d{1,18})?$"}},"additionalProperties":false}},"required":["programmeId"],"additionalProperties":false,"description":"Provide exactly one of cardholderId (an existing cardholder) or cardholder (created by this request)."}}}}}},"/cards/{cardId}":{"get":{"operationId":"cards_get","summary":"Get a card","description":"Returns the card status, limits and balance as the issuer reports them. Availability: Sandbox only (simulator-backed). The card issuing simulator is the only card_issuance adapter. Responses carry simulated: true; in production without a reviewed card issuer connection the endpoint answers 424 PROVIDER_NOT_CONNECTED. Requires an organization-bound key. Requires the cards:read API key scope.","tags":["operate"],"security":[{"bearerAuth":[]}],"x-availability":"sandbox_only","x-availability-note":"The card issuing simulator is the only card_issuance adapter. Responses carry simulated: true; in production without a reviewed card issuer connection the endpoint answers 424 PROVIDER_NOT_CONNECTED. Requires an organization-bound key.","x-request-validation":"enforced","x-required-scope":"cards:read","x-error-codes":{"400":["VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["COMPLIANCE_BLOCKED","FORBIDDEN","PROVIDER_AUTHORIZATION_DENIED"],"404":["NOT_FOUND"],"409":["CARD_INSUFFICIENT_FUNDS","CARD_RECORD_CONFLICT"],"422":["CARD_REQUEST_REJECTED"],"424":["PROVIDER_NOT_CONNECTED"],"429":["PROVIDER_RATE_LIMITED","RATE_LIMIT_EXCEEDED"],"500":["CARD_RECORD_WRITE_FAILED","INTERNAL_ERROR"],"501":["CARD_OPERATION_NOT_SUPPORTED"],"502":["PROVIDER_EXECUTION_FAILED"],"503":["RATE_LIMIT_UNAVAILABLE"]},"parameters":[{"name":"cardId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","properties":{"simulated":{"type":"boolean","description":"True when the card issuing simulator produced the result. Simulated results are not issuer results."},"environment":{"type":"string","enum":["sandbox","production"]},"provider":{"$ref":"#/components/schemas/CardProvider"},"evidence":{"type":"array","items":{"$ref":"#/components/schemas/ProviderCallEvidence"}},"card":{"$ref":"#/components/schemas/Card"},"balance":{"$ref":"#/components/schemas/CardBalance"}},"required":["simulated","environment","provider","evidence","card","balance"]}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: COMPLIANCE_BLOCKED, FORBIDDEN, PROVIDER_AUTHORIZATION_DENIED."},"404":{"$ref":"#/components/responses/AgentError","description":"Error codes: NOT_FOUND."},"409":{"$ref":"#/components/responses/AgentError","description":"Error codes: CARD_INSUFFICIENT_FUNDS, CARD_RECORD_CONFLICT."},"422":{"$ref":"#/components/responses/AgentError","description":"Error codes: CARD_REQUEST_REJECTED."},"424":{"$ref":"#/components/responses/AgentError","description":"Error codes: PROVIDER_NOT_CONNECTED."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: PROVIDER_RATE_LIMITED, RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: CARD_RECORD_WRITE_FAILED, INTERNAL_ERROR."},"501":{"$ref":"#/components/responses/AgentError","description":"Error codes: CARD_OPERATION_NOT_SUPPORTED."},"502":{"$ref":"#/components/responses/AgentError","description":"Error codes: PROVIDER_EXECUTION_FAILED."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_UNAVAILABLE."}}}},"/cards/{cardId}/transactions":{"get":{"operationId":"cards_transactions","summary":"List card transactions","description":"Returns funding and authorization transactions as the issuer reports them, with a cursor for the next page. Availability: Sandbox only (simulator-backed). The card issuing simulator is the only card_issuance adapter. Responses carry simulated: true; in production without a reviewed card issuer connection the endpoint answers 424 PROVIDER_NOT_CONNECTED. Requires an organization-bound key. Requires the cards:read API key scope.","tags":["operate"],"security":[{"bearerAuth":[]}],"x-availability":"sandbox_only","x-availability-note":"The card issuing simulator is the only card_issuance adapter. Responses carry simulated: true; in production without a reviewed card issuer connection the endpoint answers 424 PROVIDER_NOT_CONNECTED. Requires an organization-bound key.","x-request-validation":"enforced","x-required-scope":"cards:read","x-error-codes":{"400":["VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["COMPLIANCE_BLOCKED","FORBIDDEN","PROVIDER_AUTHORIZATION_DENIED"],"404":["NOT_FOUND"],"409":["CARD_INSUFFICIENT_FUNDS","CARD_RECORD_CONFLICT"],"422":["CARD_REQUEST_REJECTED"],"424":["PROVIDER_NOT_CONNECTED"],"429":["PROVIDER_RATE_LIMITED","RATE_LIMIT_EXCEEDED"],"500":["CARD_RECORD_WRITE_FAILED","INTERNAL_ERROR"],"501":["CARD_OPERATION_NOT_SUPPORTED"],"502":["PROVIDER_EXECUTION_FAILED"],"503":["RATE_LIMIT_UNAVAILABLE"]},"parameters":[{"name":"cardId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":128}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","properties":{"simulated":{"type":"boolean","description":"True when the card issuing simulator produced the result. Simulated results are not issuer results."},"environment":{"type":"string","enum":["sandbox","production"]},"provider":{"$ref":"#/components/schemas/CardProvider"},"evidence":{"type":"array","items":{"$ref":"#/components/schemas/ProviderCallEvidence"}},"cardId":{"type":"string"},"transactions":{"type":"array","items":{"$ref":"#/components/schemas/CardTransaction"}},"nextCursor":{"type":["string","null"]}},"required":["simulated","environment","provider","evidence","cardId","transactions","nextCursor"]}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: COMPLIANCE_BLOCKED, FORBIDDEN, PROVIDER_AUTHORIZATION_DENIED."},"404":{"$ref":"#/components/responses/AgentError","description":"Error codes: NOT_FOUND."},"409":{"$ref":"#/components/responses/AgentError","description":"Error codes: CARD_INSUFFICIENT_FUNDS, CARD_RECORD_CONFLICT."},"422":{"$ref":"#/components/responses/AgentError","description":"Error codes: CARD_REQUEST_REJECTED."},"424":{"$ref":"#/components/responses/AgentError","description":"Error codes: PROVIDER_NOT_CONNECTED."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: PROVIDER_RATE_LIMITED, RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: CARD_RECORD_WRITE_FAILED, INTERNAL_ERROR."},"501":{"$ref":"#/components/responses/AgentError","description":"Error codes: CARD_OPERATION_NOT_SUPPORTED."},"502":{"$ref":"#/components/responses/AgentError","description":"Error codes: PROVIDER_EXECUTION_FAILED."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: RATE_LIMIT_UNAVAILABLE."}}}},"/cards/{cardId}/fund":{"post":{"operationId":"cards_fund","summary":"Fund a card","description":"Funds a card in the programme funding asset and posts a balanced ledger entry. Availability: Sandbox only (simulator-backed). The card issuing simulator is the only card_issuance adapter. Responses carry simulated: true; in production without a reviewed card issuer connection the endpoint answers 424 PROVIDER_NOT_CONNECTED. Requires an organization-bound key. Requires the cards:write API key scope.","tags":["operate"],"security":[{"bearerAuth":[]}],"x-availability":"sandbox_only","x-availability-note":"The card issuing simulator is the only card_issuance adapter. Responses carry simulated: true; in production without a reviewed card issuer connection the endpoint answers 424 PROVIDER_NOT_CONNECTED. Requires an organization-bound key.","x-request-validation":"enforced","x-required-scope":"cards:write","x-error-codes":{"400":["IDEMPOTENCY_KEY_REQUIRED","VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["COMPLIANCE_BLOCKED","FORBIDDEN","PROVIDER_AUTHORIZATION_DENIED"],"404":["NOT_FOUND"],"409":["CARD_INSUFFICIENT_FUNDS","CARD_LEDGER_CONFLICT","CARD_RECORD_CONFLICT","IDEMPOTENCY_IN_PROGRESS"],"422":["CARD_REQUEST_REJECTED","IDEMPOTENCY_KEY_REUSED"],"424":["PROVIDER_NOT_CONNECTED"],"429":["PROVIDER_RATE_LIMITED","RATE_LIMIT_EXCEEDED"],"500":["CARD_LEDGER_WRITE_FAILED","CARD_RECORD_WRITE_FAILED","INTERNAL_ERROR"],"501":["CARD_OPERATION_NOT_SUPPORTED"],"502":["PROVIDER_EXECUTION_FAILED"],"503":["IDEMPOTENCY_UNAVAILABLE","RATE_LIMIT_UNAVAILABLE"]},"parameters":[{"name":"cardId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required. Replays return the original response; reuse with a different body is rejected.","schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","properties":{"simulated":{"type":"boolean","description":"True when the card issuing simulator produced the result. Simulated results are not issuer results."},"environment":{"type":"string","enum":["sandbox","production"]},"provider":{"$ref":"#/components/schemas/CardProvider"},"evidence":{"type":"array","items":{"$ref":"#/components/schemas/ProviderCallEvidence"}},"funding":{"type":"object","properties":{"fundingId":{"type":"string"},"cardId":{"type":"string"},"amount":{"type":"string","description":"Decimal string in `asset` units."},"asset":{"type":"string","description":"Stablecoin asset key, such as USDC."},"balance":{"$ref":"#/components/schemas/CardBalance"}},"required":["fundingId","cardId","amount","asset","balance"]},"ledger":{"type":"object","properties":{"entryId":{"type":"string"},"entryType":{"type":"string"},"status":{"type":"string","enum":["pending","posted","reversed"]},"simulated":{"type":"boolean"},"replayed":{"type":"boolean","description":"True when this request replayed an entry already posted for the same funding."},"postings":{"type":"array","items":{"type":"object","properties":{"accountCode":{"type":"string"},"side":{"type":"string","enum":["debit","credit"]},"amount":{"type":"string","description":"smallest unit of `currency`; entries posted before CU-O1 keep their decimal amount"},"currency":{"type":"string"}},"required":["accountCode","side","amount","currency"]}}},"required":["entryId","entryType","status","simulated","replayed","postings"],"description":"Balanced ledger entry for the funding, marked simulated when the simulator funded the card."}},"required":["simulated","environment","provider","evidence","funding","ledger"]}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_KEY_REQUIRED, VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: COMPLIANCE_BLOCKED, FORBIDDEN, PROVIDER_AUTHORIZATION_DENIED."},"404":{"$ref":"#/components/responses/AgentError","description":"Error codes: NOT_FOUND."},"409":{"$ref":"#/components/responses/AgentError","description":"Error codes: CARD_INSUFFICIENT_FUNDS, CARD_LEDGER_CONFLICT, CARD_RECORD_CONFLICT, IDEMPOTENCY_IN_PROGRESS."},"422":{"$ref":"#/components/responses/AgentError","description":"Error codes: CARD_REQUEST_REJECTED, IDEMPOTENCY_KEY_REUSED."},"424":{"$ref":"#/components/responses/AgentError","description":"Error codes: PROVIDER_NOT_CONNECTED."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: PROVIDER_RATE_LIMITED, RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: CARD_LEDGER_WRITE_FAILED, CARD_RECORD_WRITE_FAILED, INTERNAL_ERROR."},"501":{"$ref":"#/components/responses/AgentError","description":"Error codes: CARD_OPERATION_NOT_SUPPORTED."},"502":{"$ref":"#/components/responses/AgentError","description":"Error codes: PROVIDER_EXECUTION_FAILED."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_UNAVAILABLE, RATE_LIMIT_UNAVAILABLE."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"amount":{"type":"string","pattern":"^(0|[1-9]\\d{0,17})(\\.\\d{1,18})?$"},"asset":{"type":"string","pattern":"^[A-Z0-9]{2,12}$"}},"required":["amount","asset"],"additionalProperties":false}}}}}},"/cards/{cardId}/freeze":{"post":{"operationId":"cards_freeze","summary":"Freeze a card","description":"Freezes an active card. Authorizations are declined while frozen. Availability: Sandbox only (simulator-backed). The card issuing simulator is the only card_issuance adapter. Responses carry simulated: true; in production without a reviewed card issuer connection the endpoint answers 424 PROVIDER_NOT_CONNECTED. Requires an organization-bound key. Requires the cards:write API key scope.","tags":["operate"],"security":[{"bearerAuth":[]}],"x-availability":"sandbox_only","x-availability-note":"The card issuing simulator is the only card_issuance adapter. Responses carry simulated: true; in production without a reviewed card issuer connection the endpoint answers 424 PROVIDER_NOT_CONNECTED. Requires an organization-bound key.","x-request-validation":"enforced","x-required-scope":"cards:write","x-error-codes":{"400":["IDEMPOTENCY_KEY_REQUIRED","VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["COMPLIANCE_BLOCKED","FORBIDDEN","PROVIDER_AUTHORIZATION_DENIED"],"404":["NOT_FOUND"],"409":["CARD_INSUFFICIENT_FUNDS","CARD_RECORD_CONFLICT","IDEMPOTENCY_IN_PROGRESS"],"422":["CARD_REQUEST_REJECTED","IDEMPOTENCY_KEY_REUSED"],"424":["PROVIDER_NOT_CONNECTED"],"429":["PROVIDER_RATE_LIMITED","RATE_LIMIT_EXCEEDED"],"500":["CARD_RECORD_WRITE_FAILED","INTERNAL_ERROR"],"501":["CARD_OPERATION_NOT_SUPPORTED"],"502":["PROVIDER_EXECUTION_FAILED"],"503":["IDEMPOTENCY_UNAVAILABLE","RATE_LIMIT_UNAVAILABLE"]},"parameters":[{"name":"cardId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required. Replays return the original response; reuse with a different body is rejected.","schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","properties":{"simulated":{"type":"boolean","description":"True when the card issuing simulator produced the result. Simulated results are not issuer results."},"environment":{"type":"string","enum":["sandbox","production"]},"provider":{"$ref":"#/components/schemas/CardProvider"},"evidence":{"type":"array","items":{"$ref":"#/components/schemas/ProviderCallEvidence"}},"transition":{"type":"object","properties":{"cardId":{"type":"string"},"previousStatus":{"$ref":"#/components/schemas/CardStatus"},"status":{"$ref":"#/components/schemas/CardStatus"}},"required":["cardId","previousStatus","status"]}},"required":["simulated","environment","provider","evidence","transition"]}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_KEY_REQUIRED, VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: COMPLIANCE_BLOCKED, FORBIDDEN, PROVIDER_AUTHORIZATION_DENIED."},"404":{"$ref":"#/components/responses/AgentError","description":"Error codes: NOT_FOUND."},"409":{"$ref":"#/components/responses/AgentError","description":"Error codes: CARD_INSUFFICIENT_FUNDS, CARD_RECORD_CONFLICT, IDEMPOTENCY_IN_PROGRESS."},"422":{"$ref":"#/components/responses/AgentError","description":"Error codes: CARD_REQUEST_REJECTED, IDEMPOTENCY_KEY_REUSED."},"424":{"$ref":"#/components/responses/AgentError","description":"Error codes: PROVIDER_NOT_CONNECTED."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: PROVIDER_RATE_LIMITED, RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: CARD_RECORD_WRITE_FAILED, INTERNAL_ERROR."},"501":{"$ref":"#/components/responses/AgentError","description":"Error codes: CARD_OPERATION_NOT_SUPPORTED."},"502":{"$ref":"#/components/responses/AgentError","description":"Error codes: PROVIDER_EXECUTION_FAILED."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_UNAVAILABLE, RATE_LIMIT_UNAVAILABLE."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","minLength":1,"maxLength":500}},"additionalProperties":false}}}}}},"/cards/{cardId}/unfreeze":{"post":{"operationId":"cards_unfreeze","summary":"Unfreeze a card","description":"Returns a frozen card to active. Availability: Sandbox only (simulator-backed). The card issuing simulator is the only card_issuance adapter. Responses carry simulated: true; in production without a reviewed card issuer connection the endpoint answers 424 PROVIDER_NOT_CONNECTED. Requires an organization-bound key. Requires the cards:write API key scope.","tags":["operate"],"security":[{"bearerAuth":[]}],"x-availability":"sandbox_only","x-availability-note":"The card issuing simulator is the only card_issuance adapter. Responses carry simulated: true; in production without a reviewed card issuer connection the endpoint answers 424 PROVIDER_NOT_CONNECTED. Requires an organization-bound key.","x-request-validation":"enforced","x-required-scope":"cards:write","x-error-codes":{"400":["IDEMPOTENCY_KEY_REQUIRED","VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["COMPLIANCE_BLOCKED","FORBIDDEN","PROVIDER_AUTHORIZATION_DENIED"],"404":["NOT_FOUND"],"409":["CARD_INSUFFICIENT_FUNDS","CARD_RECORD_CONFLICT","IDEMPOTENCY_IN_PROGRESS"],"422":["CARD_REQUEST_REJECTED","IDEMPOTENCY_KEY_REUSED"],"424":["PROVIDER_NOT_CONNECTED"],"429":["PROVIDER_RATE_LIMITED","RATE_LIMIT_EXCEEDED"],"500":["CARD_RECORD_WRITE_FAILED","INTERNAL_ERROR"],"501":["CARD_OPERATION_NOT_SUPPORTED"],"502":["PROVIDER_EXECUTION_FAILED"],"503":["IDEMPOTENCY_UNAVAILABLE","RATE_LIMIT_UNAVAILABLE"]},"parameters":[{"name":"cardId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required. Replays return the original response; reuse with a different body is rejected.","schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","properties":{"simulated":{"type":"boolean","description":"True when the card issuing simulator produced the result. Simulated results are not issuer results."},"environment":{"type":"string","enum":["sandbox","production"]},"provider":{"$ref":"#/components/schemas/CardProvider"},"evidence":{"type":"array","items":{"$ref":"#/components/schemas/ProviderCallEvidence"}},"transition":{"type":"object","properties":{"cardId":{"type":"string"},"previousStatus":{"$ref":"#/components/schemas/CardStatus"},"status":{"$ref":"#/components/schemas/CardStatus"}},"required":["cardId","previousStatus","status"]}},"required":["simulated","environment","provider","evidence","transition"]}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_KEY_REQUIRED, VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: COMPLIANCE_BLOCKED, FORBIDDEN, PROVIDER_AUTHORIZATION_DENIED."},"404":{"$ref":"#/components/responses/AgentError","description":"Error codes: NOT_FOUND."},"409":{"$ref":"#/components/responses/AgentError","description":"Error codes: CARD_INSUFFICIENT_FUNDS, CARD_RECORD_CONFLICT, IDEMPOTENCY_IN_PROGRESS."},"422":{"$ref":"#/components/responses/AgentError","description":"Error codes: CARD_REQUEST_REJECTED, IDEMPOTENCY_KEY_REUSED."},"424":{"$ref":"#/components/responses/AgentError","description":"Error codes: PROVIDER_NOT_CONNECTED."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: PROVIDER_RATE_LIMITED, RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: CARD_RECORD_WRITE_FAILED, INTERNAL_ERROR."},"501":{"$ref":"#/components/responses/AgentError","description":"Error codes: CARD_OPERATION_NOT_SUPPORTED."},"502":{"$ref":"#/components/responses/AgentError","description":"Error codes: PROVIDER_EXECUTION_FAILED."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_UNAVAILABLE, RATE_LIMIT_UNAVAILABLE."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","minLength":1,"maxLength":500}},"additionalProperties":false}}}}}},"/cards/{cardId}/deactivate":{"post":{"operationId":"cards_deactivate","summary":"Deactivate a card","description":"Deactivates a card. A deactivated card cannot be unfrozen. Availability: Sandbox only (simulator-backed). The card issuing simulator is the only card_issuance adapter. Responses carry simulated: true; in production without a reviewed card issuer connection the endpoint answers 424 PROVIDER_NOT_CONNECTED. Requires an organization-bound key. Requires the cards:write API key scope.","tags":["operate"],"security":[{"bearerAuth":[]}],"x-availability":"sandbox_only","x-availability-note":"The card issuing simulator is the only card_issuance adapter. Responses carry simulated: true; in production without a reviewed card issuer connection the endpoint answers 424 PROVIDER_NOT_CONNECTED. Requires an organization-bound key.","x-request-validation":"enforced","x-required-scope":"cards:write","x-error-codes":{"400":["IDEMPOTENCY_KEY_REQUIRED","VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["COMPLIANCE_BLOCKED","FORBIDDEN","PROVIDER_AUTHORIZATION_DENIED"],"404":["NOT_FOUND"],"409":["CARD_INSUFFICIENT_FUNDS","CARD_RECORD_CONFLICT","IDEMPOTENCY_IN_PROGRESS"],"422":["CARD_REQUEST_REJECTED","IDEMPOTENCY_KEY_REUSED"],"424":["PROVIDER_NOT_CONNECTED"],"429":["PROVIDER_RATE_LIMITED","RATE_LIMIT_EXCEEDED"],"500":["CARD_RECORD_WRITE_FAILED","INTERNAL_ERROR"],"501":["CARD_OPERATION_NOT_SUPPORTED"],"502":["PROVIDER_EXECUTION_FAILED"],"503":["IDEMPOTENCY_UNAVAILABLE","RATE_LIMIT_UNAVAILABLE"]},"parameters":[{"name":"cardId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required. Replays return the original response; reuse with a different body is rejected.","schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","properties":{"simulated":{"type":"boolean","description":"True when the card issuing simulator produced the result. Simulated results are not issuer results."},"environment":{"type":"string","enum":["sandbox","production"]},"provider":{"$ref":"#/components/schemas/CardProvider"},"evidence":{"type":"array","items":{"$ref":"#/components/schemas/ProviderCallEvidence"}},"transition":{"type":"object","properties":{"cardId":{"type":"string"},"previousStatus":{"$ref":"#/components/schemas/CardStatus"},"status":{"$ref":"#/components/schemas/CardStatus"}},"required":["cardId","previousStatus","status"]}},"required":["simulated","environment","provider","evidence","transition"]}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_KEY_REQUIRED, VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: COMPLIANCE_BLOCKED, FORBIDDEN, PROVIDER_AUTHORIZATION_DENIED."},"404":{"$ref":"#/components/responses/AgentError","description":"Error codes: NOT_FOUND."},"409":{"$ref":"#/components/responses/AgentError","description":"Error codes: CARD_INSUFFICIENT_FUNDS, CARD_RECORD_CONFLICT, IDEMPOTENCY_IN_PROGRESS."},"422":{"$ref":"#/components/responses/AgentError","description":"Error codes: CARD_REQUEST_REJECTED, IDEMPOTENCY_KEY_REUSED."},"424":{"$ref":"#/components/responses/AgentError","description":"Error codes: PROVIDER_NOT_CONNECTED."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: PROVIDER_RATE_LIMITED, RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: CARD_RECORD_WRITE_FAILED, INTERNAL_ERROR."},"501":{"$ref":"#/components/responses/AgentError","description":"Error codes: CARD_OPERATION_NOT_SUPPORTED."},"502":{"$ref":"#/components/responses/AgentError","description":"Error codes: PROVIDER_EXECUTION_FAILED."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_UNAVAILABLE, RATE_LIMIT_UNAVAILABLE."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","minLength":1,"maxLength":500}},"additionalProperties":false}}}}}},"/cards/{cardId}/limits":{"post":{"operationId":"cards_limits","summary":"Set card limits","description":"Sets per-transaction and daily spending limits in the programme funding asset. Availability: Sandbox only (simulator-backed). The card issuing simulator is the only card_issuance adapter. Responses carry simulated: true; in production without a reviewed card issuer connection the endpoint answers 424 PROVIDER_NOT_CONNECTED. Requires an organization-bound key. Requires the cards:write API key scope.","tags":["operate"],"security":[{"bearerAuth":[]}],"x-availability":"sandbox_only","x-availability-note":"The card issuing simulator is the only card_issuance adapter. Responses carry simulated: true; in production without a reviewed card issuer connection the endpoint answers 424 PROVIDER_NOT_CONNECTED. Requires an organization-bound key.","x-request-validation":"enforced","x-required-scope":"cards:write","x-error-codes":{"400":["IDEMPOTENCY_KEY_REQUIRED","VALIDATION_ERROR"],"401":["UNAUTHORIZED"],"403":["COMPLIANCE_BLOCKED","FORBIDDEN","PROVIDER_AUTHORIZATION_DENIED"],"404":["NOT_FOUND"],"409":["CARD_INSUFFICIENT_FUNDS","CARD_RECORD_CONFLICT","IDEMPOTENCY_IN_PROGRESS"],"422":["CARD_REQUEST_REJECTED","IDEMPOTENCY_KEY_REUSED"],"424":["PROVIDER_NOT_CONNECTED"],"429":["PROVIDER_RATE_LIMITED","RATE_LIMIT_EXCEEDED"],"500":["CARD_RECORD_WRITE_FAILED","INTERNAL_ERROR"],"501":["CARD_OPERATION_NOT_SUPPORTED"],"502":["PROVIDER_EXECUTION_FAILED"],"503":["IDEMPOTENCY_UNAVAILABLE","RATE_LIMIT_UNAVAILABLE"]},"parameters":[{"name":"cardId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required. Replays return the original response; reuse with a different body is rejected.","schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","properties":{"simulated":{"type":"boolean","description":"True when the card issuing simulator produced the result. Simulated results are not issuer results."},"environment":{"type":"string","enum":["sandbox","production"]},"provider":{"$ref":"#/components/schemas/CardProvider"},"evidence":{"type":"array","items":{"$ref":"#/components/schemas/ProviderCallEvidence"}},"card":{"type":"object","properties":{"cardId":{"type":"string"},"limits":{"$ref":"#/components/schemas/CardLimits"}},"required":["cardId","limits"]}},"required":["simulated","environment","provider","evidence","card"]}}}},"400":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_KEY_REQUIRED, VALIDATION_ERROR."},"401":{"$ref":"#/components/responses/AgentError","description":"Error codes: UNAUTHORIZED."},"403":{"$ref":"#/components/responses/AgentError","description":"Error codes: COMPLIANCE_BLOCKED, FORBIDDEN, PROVIDER_AUTHORIZATION_DENIED."},"404":{"$ref":"#/components/responses/AgentError","description":"Error codes: NOT_FOUND."},"409":{"$ref":"#/components/responses/AgentError","description":"Error codes: CARD_INSUFFICIENT_FUNDS, CARD_RECORD_CONFLICT, IDEMPOTENCY_IN_PROGRESS."},"422":{"$ref":"#/components/responses/AgentError","description":"Error codes: CARD_REQUEST_REJECTED, IDEMPOTENCY_KEY_REUSED."},"424":{"$ref":"#/components/responses/AgentError","description":"Error codes: PROVIDER_NOT_CONNECTED."},"429":{"$ref":"#/components/responses/AgentError","description":"Error codes: PROVIDER_RATE_LIMITED, RATE_LIMIT_EXCEEDED."},"500":{"$ref":"#/components/responses/AgentError","description":"Error codes: CARD_RECORD_WRITE_FAILED, INTERNAL_ERROR."},"501":{"$ref":"#/components/responses/AgentError","description":"Error codes: CARD_OPERATION_NOT_SUPPORTED."},"502":{"$ref":"#/components/responses/AgentError","description":"Error codes: PROVIDER_EXECUTION_FAILED."},"503":{"$ref":"#/components/responses/AgentError","description":"Error codes: IDEMPOTENCY_UNAVAILABLE, RATE_LIMIT_UNAVAILABLE."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"limits":{"type":"object","properties":{"perTransaction":{"type":"string","pattern":"^(0|[1-9]\\d{0,17})(\\.\\d{1,18})?$"},"daily":{"type":"string","pattern":"^(0|[1-9]\\d{0,17})(\\.\\d{1,18})?$"}},"additionalProperties":false}},"required":["limits"],"additionalProperties":false}}}}}},"/keys":{"post":{"operationId":"keys_create","summary":"Create scoped API key","description":"Create a pending organization credential. Requires an operator session, organizationId, principal version, and Idempotency-Key. Independent review activates the credential. Availability: Available.","tags":["auth"],"security":[{"sessionCookie":[]}],"x-availability":"available","x-request-validation":"enforced","x-error-codes":{"400":["INVALID_REQUEST","IDEMPOTENCY_REQUIRED","ORGANIZATION_REQUIRED"],"401":["UNAUTHENTICATED","SESSION_REAUTHENTICATION_REQUIRED"],"403":["ORGANIZATION_ACCESS_DENIED","SSO_REQUIRED","STEP_UP_REQUIRED"],"409":["INVALID_REQUEST","ORGANIZATION_ACCESS_DENIED","APPROVAL_REQUIRED","IDEMPOTENCY_CONFLICT","POLICY_CHANGED"],"412":["VERSION_CONFLICT"],"413":["INVALID_REQUEST"],"428":["VERSION_REQUIRED"],"429":["INVALID_REQUEST"],"503":["AUTHORIZATION_UNAVAILABLE","ORGANIZATION_SCHEMA_REQUIRED","ORGANIZATION_UNAVAILABLE"]},"parameters":[{"name":"organizationId","in":"query","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required. Replays return the original response; reuse with a different body is rejected.","schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"201":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","properties":{"commandId":{"type":"string","format":"uuid"},"status":{"type":"string","const":"succeeded"},"revision":{"type":"integer","exclusiveMinimum":0,"minimum":-9007199254740991,"maximum":9007199254740991},"replayed":{"type":"boolean"},"result":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"organizationId":{"type":"string","format":"uuid"},"principalId":{"type":"string","format":"uuid"},"issuedBy":{"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":["string","null"]},"environment":{"type":"string","enum":["production","sandbox"]},"scopes":{},"status":{"type":"string","enum":["pending_activation","active","suspended","revoked","superseded"]},"revision":{"type":"integer","exclusiveMinimum":0,"minimum":-9007199254740991,"maximum":9007199254740991},"expiresAt":{"type":"string"},"rotationParentId":{"type":["string","null"],"format":"uuid"},"createdAt":{"type":"string"},"revokedAt":{"type":["string","null"]}},"required":["id","organizationId","principalId","issuedBy","name","description","environment","scopes","status","revision","expiresAt","rotationParentId","createdAt","revokedAt"]},"rawKey":{"type":["string","null"]}},"required":["commandId","status","revision","replayed","result","rawKey"]}}}},"400":{"$ref":"#/components/responses/OrganizationError","description":"Error codes: INVALID_REQUEST, IDEMPOTENCY_REQUIRED, ORGANIZATION_REQUIRED."},"401":{"$ref":"#/components/responses/OrganizationError","description":"Error codes: UNAUTHENTICATED, SESSION_REAUTHENTICATION_REQUIRED."},"403":{"$ref":"#/components/responses/OrganizationError","description":"Error codes: ORGANIZATION_ACCESS_DENIED, SSO_REQUIRED, STEP_UP_REQUIRED."},"409":{"$ref":"#/components/responses/OrganizationError","description":"Error codes: INVALID_REQUEST, ORGANIZATION_ACCESS_DENIED, APPROVAL_REQUIRED, IDEMPOTENCY_CONFLICT, POLICY_CHANGED."},"412":{"$ref":"#/components/responses/OrganizationError","description":"Error codes: VERSION_CONFLICT."},"413":{"$ref":"#/components/responses/OrganizationError","description":"Error codes: INVALID_REQUEST."},"428":{"$ref":"#/components/responses/OrganizationError","description":"Error codes: VERSION_REQUIRED."},"429":{"$ref":"#/components/responses/OrganizationError","description":"Error codes: INVALID_REQUEST."},"503":{"$ref":"#/components/responses/OrganizationError","description":"Error codes: AUTHORIZATION_UNAVAILABLE, ORGANIZATION_SCHEMA_REQUIRED, ORGANIZATION_UNAVAILABLE."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"principalId":{"type":"string","format":"uuid"},"expectedVersion":{"type":"integer","exclusiveMinimum":0,"minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string","minLength":1,"maxLength":100},"description":{"type":["string","null"],"maxLength":1000},"environment":{"type":"string","enum":["production","sandbox"]},"scopes":{},"expiresAt":{"type":"string","format":"date-time"},"rotationParentId":{"type":"string","format":"uuid"},"rotationExpectedVersion":{"type":"integer","exclusiveMinimum":0,"minimum":-9007199254740991,"maximum":9007199254740991},"reason":{"type":"string","minLength":3,"maxLength":4000}},"required":["principalId","name","environment","scopes","expiresAt","reason"],"additionalProperties":false}}}}}}}}