{"info":{"version":"1.0.0","description":"One EVM JSON-RPC endpoint that routes every request across several providers per chain, chosen by live measured latency and health, with failover for replay-safe reads. Custom profiles bring your own nodes and provider accounts: set each chain's providers in preference order and change routing without a new URL or a redeploy. Agents buy a funded key with USDC on Base (x402) or Tempo (MPP), from $0.05, with no signup, and can buy days of Custom access the same way.","title":"Lasso: Aggregated EVM JSON-RPC router with Custom provider profiles","contact":{"email":"support@lasso.sh"},"x-guidance":"First identify the required chains, methods, transports, and reliability goals. Read /agent.json for chains, strategies and prices. Within existing resource authorization and an explicit purchase budget, replace {chain} in the key's rpc_url_template with a chain, optionally prefixed by a strategy/. A URL without a strategy uses balanced-fast on Premium and load-balanced on other profiles."},"components":{"schemas":{"SavedStream":{"type":"object","required":["id","name","chain_id","source","parameters","url_template","inserted_at","updated_at"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string","maxLength":100,"minLength":1},"source":{"type":"string","enum":["logs","blocks"]},"parameters":{"type":"object","required":[],"additionalProperties":false,"properties":{"label":{"type":"string","maxLength":100,"minLength":1},"wait":{"oneOf":[{"maximum":30,"type":"integer","minimum":0},{"type":"string","pattern":"^([0-9]|[12][0-9]|30)$"}]},"from":{"oneOf":[{"type":"integer","minimum":0},{"type":"string","pattern":"^(latest|[0-9]+)$"}]},"address":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"topic0":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"topic1":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"topic2":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"topic3":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}}},"inserted_at":{"type":"string"},"updated_at":{"type":"string"},"chain_id":{"type":"integer","minimum":1},"url_template":{"type":"string"}}},"SavedStreamInput":{"type":"object","required":["name","chain_id","source"],"additionalProperties":false,"properties":{"name":{"type":"string","maxLength":100,"minLength":1},"source":{"type":"string","enum":["logs","blocks"]},"parameters":{"type":"object","required":[],"additionalProperties":false,"properties":{"label":{"type":"string","maxLength":100,"minLength":1},"wait":{"oneOf":[{"maximum":30,"type":"integer","minimum":0},{"type":"string","pattern":"^([0-9]|[12][0-9]|30)$"}]},"from":{"oneOf":[{"type":"integer","minimum":0},{"type":"string","pattern":"^(latest|[0-9]+)$"}]},"address":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"topic0":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"topic1":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"topic2":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"topic3":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}}},"chain_id":{"type":"integer","minimum":1}}},"StreamsExhaustion":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action","challenges","credit"],"properties":{"code":{"const":"balance_exhausted","type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"credit":{"type":"object","required":["method","href","body"],"properties":{"body":{"type":"object","required":["usd"],"properties":{"usd":{"type":"string"}}},"method":{"const":"POST"},"href":{"type":"string","format":"uri"}}},"challenges":{"type":"object","additionalProperties":{"type":"string"}}}}}},"StreamsReadError":{"type":"object","required":["error"],"properties":{"error":{"type":"string","enum":["invalid_parameter","unauthorized","account_closed","balance_exhausted","not_entitled","chain_not_served","resync_required","too_many_readers","rate_limit_exceeded","chain_unavailable"]},"reason":{"type":"string","description":"The cause. On 429 too_many_readers, node_capacity means 300 in-flight Streams requests are already admitted; retry after five seconds. On 429 rate_limit_exceeded, busy means the account or node distinct-stream limit was reached. On 503 chain_unavailable: chain_unavailable, cold_start, canonical_window, anchor_pending, worker_down, caller_abandoned, provider_disagreement, wrong_block, invalid_header, invalid_logs, block_volume or result_volume, or an upstream error category with provider and code fields.","examples":["node_capacity","busy","cold_start","canonical_window","anchor_pending","worker_down"]},"anchor":{"type":"object","required":["number","hash"],"properties":{"number":{"type":"integer","minimum":0},"hash":{"type":"string"}}},"expected_source":{"type":"string"}}},"StreamsUsage":{"type":"object","required":["days","sources"],"properties":{"sources":{"type":"array","items":{"type":"object","required":["day","source_id","recipe","events","bytes","event_nanos","event_cost_usd"],"properties":{"events":{"type":"integer","minimum":0},"bytes":{"type":"integer","minimum":0},"day":{"type":"string","format":"date"},"source_id":{"type":"string"},"event_nanos":{"type":"integer","minimum":0},"recipe":{"type":"object"},"event_cost_usd":{"type":"string"}}},"maxItems":8192},"days":{"type":"array","items":{"type":"object","required":["day","events","bytes","event_nanos","minimum_nanos","charged_nanos","minimum_component_nanos","cost_usd","event_cost_usd"],"properties":{"day":{"type":"string","format":"date"},"cost_usd":{"type":"string"},"event_cost_usd":{"type":"string"},"bytes":{"type":"integer","minimum":0},"charged_nanos":{"type":"integer","minimum":0},"event_nanos":{"type":"integer","minimum":0},"events":{"type":"integer","minimum":0},"minimum_component_nanos":{"type":"integer","minimum":0},"minimum_nanos":{"type":"integer","minimum":0}}}}}},"AccountView":{"type":"object","required":["id","name","free_access","included_usage"],"additionalProperties":false,"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":["string","null"]},"members":{"type":"object"},"fallback":{"type":["object","null"]},"subscriptions":{"type":"array","items":{"type":"object"}},"provisional":{"type":"boolean"},"free_access":{"type":"boolean"},"merged_into":{"type":"null"},"rate_limits":{"type":"object"},"balance_usd":{"type":"string"},"included_usage":{"oneOf":[{"type":"null"},{"type":"object","required":["source","limit_cu","remaining_cu","period_end"],"additionalProperties":false,"properties":{"source":{"type":"string"},"period_end":{"type":"string","format":"date-time"},"limit_cu":{"oneOf":[{"type":"number","minimum":0},{"type":"string","pattern":"^[0-9]+(?:\\.[0-9]+)?$"}]},"remaining_cu":{"oneOf":[{"type":"number","minimum":0},{"type":"string","pattern":"^[0-9]+(?:\\.[0-9]+)?$"}]}}}]},"managed_access":{"type":"string","enum":["premium","public","none"]}}}},"securitySchemes":{"accountBearer":{"scheme":"bearer","type":"http","description":"Agent management token; RPC keys only where explicitly allowed."},"dashboardKey":{"in":"header","name":"x-lasso-api-key","type":"apiKey","description":"Account RPC key accepted by legacy claim operations; not a management credential"}}},"paths":{"/api/v1/accounts/{id}":{"get":{"description":"Read the account: balance, what managed requests are served with now, any fallback, subscriptions, included usage, rate limits and members. An RPC key reads current; restricted agents cannot read the account.","parameters":[{"in":"path","name":"id","description":"Resource ID; current means the resource belonging to this credential.","required":true,"schema":{"type":"string"}}],"summary":"Read the account's balance, access and limits","tags":["Accounts"],"operationId":"getAccount","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["id","name","free_access","included_usage"],"additionalProperties":false,"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":["string","null"]},"members":{"type":"object"},"fallback":{"type":["object","null"]},"subscriptions":{"type":"array","items":{"type":"object"}},"provisional":{"type":"boolean"},"free_access":{"type":"boolean"},"merged_into":{"type":"null"},"rate_limits":{"type":"object"},"balance_usd":{"type":"string"},"included_usage":{"oneOf":[{"type":"null"},{"type":"object","required":["source","limit_cu","remaining_cu","period_end"],"additionalProperties":false,"properties":{"source":{"type":"string"},"period_end":{"type":"string","format":"date-time"},"limit_cu":{"oneOf":[{"type":"number","minimum":0},{"type":"string","pattern":"^[0-9]+(?:\\.[0-9]+)?$"}]},"remaining_cu":{"oneOf":[{"type":"number","minimum":0},{"type":"string","pattern":"^[0-9]+(?:\\.[0-9]+)?$"}]}}}]},"managed_access":{"type":"string","enum":["premium","public","none"]}}}}}},"401":{"description":"A valid credential is required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"403":{"description":"This operation is outside the credential's authority","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"404":{"description":"Resource absent from credential scope","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"409":{"description":"Resource limit or claim conflict","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"422":{"description":"Invalid or unknown field","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"429":{"description":"Honor Retry-After","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"503":{"description":"Not available right now. Honor Retry-After and retry the same request; for a purchase, reuse its signed payment rather than paying again.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}}},"security":[{"accountBearer":[]}],"x-error-codes":["unauthorized","forbidden","not_found","unknown_profile","key_limit","key_revoked","account_closed","already_claimed","custom_access_required","rate_limited","invalid_field","unknown_field","unavailable"]},"patch":{"description":"Name the account. Requires an unrestricted agent; people rename accounts in the dashboard.","parameters":[{"in":"path","name":"id","description":"Resource ID; current means the resource belonging to this credential.","required":true,"schema":{"type":"string"}}],"summary":"Name the account","tags":["Accounts"],"operationId":"updateAccount","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["id","name","free_access","included_usage"],"additionalProperties":false,"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":["string","null"]},"members":{"type":"object"},"fallback":{"type":["object","null"]},"subscriptions":{"type":"array","items":{"type":"object"}},"provisional":{"type":"boolean"},"free_access":{"type":"boolean"},"merged_into":{"type":"null"},"rate_limits":{"type":"object"},"balance_usd":{"type":"string"},"included_usage":{"oneOf":[{"type":"null"},{"type":"object","required":["source","limit_cu","remaining_cu","period_end"],"additionalProperties":false,"properties":{"source":{"type":"string"},"period_end":{"type":"string","format":"date-time"},"limit_cu":{"oneOf":[{"type":"number","minimum":0},{"type":"string","pattern":"^[0-9]+(?:\\.[0-9]+)?$"}]},"remaining_cu":{"oneOf":[{"type":"number","minimum":0},{"type":"string","pattern":"^[0-9]+(?:\\.[0-9]+)?$"}]}}}]},"managed_access":{"type":"string","enum":["premium","public","none"]}}}}}},"401":{"description":"A valid credential is required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"403":{"description":"This operation is outside the credential's authority","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"404":{"description":"Resource absent from credential scope","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"409":{"description":"Resource limit or claim conflict","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"422":{"description":"Invalid or unknown field","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"429":{"description":"Honor Retry-After","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"503":{"description":"Not available right now. Honor Retry-After and retry the same request; for a purchase, reuse its signed payment rather than paying again.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}}},"security":[{"accountBearer":[]}],"x-error-codes":["unauthorized","forbidden","not_found","unknown_profile","key_limit","key_revoked","account_closed","already_claimed","custom_access_required","rate_limited","invalid_field","unknown_field","unavailable"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"additionalProperties":false,"properties":{"name":{"type":["string","null"],"maxLength":100}}}}}}}},"/api/v1/accounts/{id}/claim-link":{"post":{"description":"Issue a single-use claim link, valid for 24 hours, that hands the account to a person; a new link replaces the old one. Requires an unrestricted agent, or the RPC key of an account created before agents existed.","parameters":[{"in":"path","name":"id","description":"Resource ID; current means the resource belonging to this credential.","required":true,"schema":{"type":"string"}}],"summary":"Issue a claim link that hands the account to a person","tags":["Accounts"],"operationId":"createClaimLink","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["claim_url","expires_at"],"additionalProperties":false,"properties":{"expires_at":{"type":"string","format":"date-time"},"claim_url":{"type":"string"}}}}}},"401":{"description":"A valid credential is required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"403":{"description":"This operation is outside the credential's authority","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"404":{"description":"Resource absent from credential scope","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"409":{"description":"Resource limit or claim conflict","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"422":{"description":"Invalid or unknown field","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"429":{"description":"Honor Retry-After","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"503":{"description":"Not available right now. Honor Retry-After and retry the same request; for a purchase, reuse its signed payment rather than paying again.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}}},"security":[{"accountBearer":[]}],"x-error-codes":["unauthorized","forbidden","not_found","unknown_profile","key_limit","key_revoked","account_closed","already_claimed","custom_access_required","rate_limited","invalid_field","unknown_field","unavailable"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"additionalProperties":false,"properties":{}}}}}}},"/api/v1/accounts/{id}/credit":{"post":{"description":"Add USD balance to this account; anyone can pay, with no Lasso credential. The first request answers 402; its offer.rails lists the rails that accept this amount, each with a challenge: x402 in PAYMENT-REQUIRED, MPP in WWW-Authenticate. Sign one and repeat the same request with it. 200 returns credited_usd, balance_usd and a receipt; 202 means settlement is pending, so poll status_url. Resubmitting the same signed payment credits once.","parameters":[{"in":"path","name":"id","description":"Account ID, the account_id returned with a key.","required":true,"schema":{"type":"string"}}],"summary":"Fund a Lasso EVM RPC account with USD credit","tags":["Keys"],"operationId":"buyAccountCredit","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["id","product","status","amount_usd","status_url","beneficiary_account_id"],"properties":{"id":{"type":"string","format":"uuid"},"reason":{"type":"string"},"status":{"type":"string","enum":["pending","completed","failed"]},"product":{"type":"string","enum":["credit","custom_access"]},"receipt":{"type":"object"},"retry_after_seconds":{"type":"integer"},"beneficiary_account_id":{"type":"string","format":"uuid"},"balance_usd":{"type":"string"},"credited_usd":{"type":"string"},"access_until":{"type":"string","format":"date-time"},"amount_usd":{"type":"string"},"status_url":{"type":"string","format":"uri"}}}}}},"202":{"description":"Payment admitted; settlement pending. Lasso finishes it without client action.","content":{"application/json":{"schema":{"type":"object","required":["id","product","status","amount_usd","status_url","beneficiary_account_id"],"properties":{"id":{"type":"string","format":"uuid"},"reason":{"type":"string"},"status":{"type":"string","enum":["pending","completed","failed"]},"product":{"type":"string","enum":["credit","custom_access"]},"receipt":{"type":"object"},"retry_after_seconds":{"type":"integer"},"beneficiary_account_id":{"type":"string","format":"uuid"},"balance_usd":{"type":"string"},"credited_usd":{"type":"string"},"access_until":{"type":"string","format":"date-time"},"amount_usd":{"type":"string"},"status_url":{"type":"string","format":"uri"}}}}},"headers":{"Retry-After":{"schema":{"type":"integer"}}}},"402":{"description":"Payment required: one challenge per enabled rail.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action","docs_url"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":["object","array"],"description":"Field problems: an array of {path, reason} for invalid_config, an object otherwise."},"next_action":{"type":"string"},"docs_url":{"type":"string","format":"uri"}}},"offer":{"type":"object","required":["amount_usd","rails"],"properties":{"amount_usd":{"type":"string"},"rails":{"type":"array","items":{"type":"string","enum":["x402","mpp"]}}}}}}}},"headers":{"PAYMENT-REQUIRED":{"description":"x402 exact challenge","schema":{"type":"string"}},"WWW-Authenticate":{"description":"MPP charge challenge","schema":{"type":"string"}}}},"default":{"description":"Error. Follow error.next_action; the codes this operation can return are listed in x-error-codes.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action","docs_url"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":["object","array"],"description":"Field problems: an array of {path, reason} for invalid_config, an object otherwise."},"next_action":{"type":"string"},"docs_url":{"type":"string","format":"uri"}}}}}}}}},"security":[{}],"x-error-codes":["account_closed","not_found","invalid_field","unknown_field","amount_out_of_range","balance_limit","payment_invalid","payment_conflict","payment_failed","payment_pending","beneficiary_conflict","already_subscribed","rate_limited","unavailable"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["usd"],"properties":{"usd":{"type":"string","description":"Decimal USD, such as \"5\"."}}}}}},"x-payment-info":{"protocols":[{"mpp":{"currency":"0x20c000000000000000000000b9537d11c60e8b50","method":"tempo","intent":"charge"}},{"x402":{"currency":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","network":"eip155:8453"}}],"offers":[{"description":"USD balance for Lasso EVM RPC: one endpoint per chain, routed across providers with failover. Amount set by the request body.","currency":"0x20c000000000000000000000b9537d11c60e8b50","amount":null,"method":"tempo","network":"eip155:4217","intent":"charge"},{"description":"USD balance for Lasso EVM RPC: one endpoint per chain, routed across providers with failover. Amount set by the request body.","currency":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","amount":null,"method":"x402","network":"eip155:8453","intent":"exact"}],"price":{"max":"100","min":"0.05","mode":"dynamic","currency":"USD"}},"x-enabled":true}},"/api/v1/accounts/{id}/custom-access":{"post":{"description":"Buy days of Custom access for this account, including a provisional one, with the same signed 402 exchange at the published day price. Each purchase extends access. An account with an open-ended Custom subscription gets already_subscribed before paying.","parameters":[{"in":"path","name":"id","description":"Account ID, the account_id returned with a key.","required":true,"schema":{"type":"string"}}],"summary":"Buy days of Custom profiles that route over your own nodes and provider accounts","tags":["Keys"],"operationId":"buyAccountCustomAccess","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["id","product","status","amount_usd","status_url","beneficiary_account_id"],"properties":{"id":{"type":"string","format":"uuid"},"reason":{"type":"string"},"status":{"type":"string","enum":["pending","completed","failed"]},"product":{"type":"string","enum":["credit","custom_access"]},"receipt":{"type":"object"},"retry_after_seconds":{"type":"integer"},"beneficiary_account_id":{"type":"string","format":"uuid"},"balance_usd":{"type":"string"},"credited_usd":{"type":"string"},"access_until":{"type":"string","format":"date-time"},"amount_usd":{"type":"string"},"status_url":{"type":"string","format":"uri"}}}}}},"202":{"description":"Payment admitted; settlement pending. Lasso finishes it without client action.","content":{"application/json":{"schema":{"type":"object","required":["id","product","status","amount_usd","status_url","beneficiary_account_id"],"properties":{"id":{"type":"string","format":"uuid"},"reason":{"type":"string"},"status":{"type":"string","enum":["pending","completed","failed"]},"product":{"type":"string","enum":["credit","custom_access"]},"receipt":{"type":"object"},"retry_after_seconds":{"type":"integer"},"beneficiary_account_id":{"type":"string","format":"uuid"},"balance_usd":{"type":"string"},"credited_usd":{"type":"string"},"access_until":{"type":"string","format":"date-time"},"amount_usd":{"type":"string"},"status_url":{"type":"string","format":"uri"}}}}},"headers":{"Retry-After":{"schema":{"type":"integer"}}}},"402":{"description":"Payment required: one challenge per enabled rail.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action","docs_url"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":["object","array"],"description":"Field problems: an array of {path, reason} for invalid_config, an object otherwise."},"next_action":{"type":"string"},"docs_url":{"type":"string","format":"uri"}}},"offer":{"type":"object","required":["amount_usd","rails"],"properties":{"amount_usd":{"type":"string"},"rails":{"type":"array","items":{"type":"string","enum":["x402","mpp"]}}}}}}}},"headers":{"PAYMENT-REQUIRED":{"description":"x402 exact challenge","schema":{"type":"string"}},"WWW-Authenticate":{"description":"MPP charge challenge","schema":{"type":"string"}}}},"default":{"description":"Error. Follow error.next_action; the codes this operation can return are listed in x-error-codes.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action","docs_url"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":["object","array"],"description":"Field problems: an array of {path, reason} for invalid_config, an object otherwise."},"next_action":{"type":"string"},"docs_url":{"type":"string","format":"uri"}}}}}}}}},"security":[{}],"x-error-codes":["account_closed","not_found","invalid_field","unknown_field","amount_out_of_range","balance_limit","payment_invalid","payment_conflict","payment_failed","payment_pending","beneficiary_conflict","already_subscribed","rate_limited","unavailable"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["days"],"properties":{"days":{"maximum":30,"type":"integer","minimum":1}}}}}},"x-payment-info":{"protocols":[{"mpp":{"currency":"0x20c000000000000000000000b9537d11c60e8b50","method":"tempo","intent":"charge"}},{"x402":{"currency":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","network":"eip155:8453"}}],"offers":[{"description":"Days of Custom access: put your own RPC providers behind one Lasso endpoint. Amount set by the request body.","currency":"0x20c000000000000000000000b9537d11c60e8b50","amount":null,"method":"tempo","network":"eip155:4217","intent":"charge"},{"description":"Days of Custom access: put your own RPC providers behind one Lasso endpoint. Amount set by the request body.","currency":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","amount":null,"method":"x402","network":"eip155:8453","intent":"exact"}],"price":{"max":"39","min":"1.3","mode":"dynamic","currency":"USD"}},"x-enabled":true,"x-custom-access":{"days":{"maximum":30,"minimum":1},"day_usd":"1.3"}}},"/api/v1/agents":{"get":{"description":"List account agents. Restricted agents cannot enumerate peers.","summary":"List the account's agents","tags":["Agents"],"operationId":"listAgents","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["agents"],"additionalProperties":false,"properties":{"agents":{"type":"array","items":{"type":"object","required":["id","name","account_id","restrictions","created_via","approved_by","last_active_at"],"additionalProperties":false,"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":["string","null"]},"account_id":{"type":"string","format":"uuid"},"approved_by":{"type":["string","null"],"format":"uuid"},"restrictions":{"type":"object","required":["profiles","read_only","expires_at"],"additionalProperties":false,"properties":{"read_only":{"type":"boolean"},"expires_at":{"type":["string","null"],"format":"date-time"},"profiles":{"type":["array","null"],"items":{"type":"string"}}}},"created_via":{"type":"string"},"last_active_at":{"type":"string","format":"date-time"}}}}}}}}},"401":{"description":"A valid credential is required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"403":{"description":"This operation is outside the credential's authority","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"404":{"description":"Resource absent from credential scope","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"409":{"description":"Resource limit or claim conflict","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"422":{"description":"Invalid or unknown field","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"429":{"description":"Honor Retry-After","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"503":{"description":"Not available right now. Honor Retry-After and retry the same request; for a purchase, reuse its signed payment rather than paying again.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}}},"security":[{"accountBearer":[]}],"x-error-codes":["unauthorized","forbidden","not_found","unknown_profile","key_limit","key_revoked","account_closed","already_claimed","custom_access_required","rate_limited","invalid_field","unknown_field","unavailable"]}},"/api/v1/agents/current/rotate":{"post":{"description":"Rotate your management token. The old token stops immediately; RPC keys stay valid.","summary":"Rotate your management token","tags":["Agents"],"operationId":"rotateAgent","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["management_token"],"additionalProperties":false,"properties":{"management_token":{"type":"string"}}}}}},"401":{"description":"A valid credential is required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"403":{"description":"This operation is outside the credential's authority","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"404":{"description":"Resource absent from credential scope","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"409":{"description":"Resource limit or claim conflict","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"422":{"description":"Invalid or unknown field","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"429":{"description":"Honor Retry-After","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"503":{"description":"Not available right now. Honor Retry-After and retry the same request; for a purchase, reuse its signed payment rather than paying again.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}}},"security":[{"accountBearer":[]}],"x-error-codes":["unauthorized","forbidden","not_found","unknown_profile","key_limit","key_revoked","account_closed","already_claimed","custom_access_required","rate_limited","invalid_field","unknown_field","unavailable"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"additionalProperties":false,"properties":{}}}}}}},"/api/v1/agents/{id}":{"get":{"description":"Read your own agent using current, or inspect a peer with an unrestricted token.","parameters":[{"in":"path","name":"id","description":"Resource ID; current means the resource belonging to this credential.","required":true,"schema":{"type":"string"}}],"summary":"Read an agent","tags":["Agents"],"operationId":"getAgent","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["id","name","account_id","restrictions","created_via","approved_by","last_active_at"],"additionalProperties":false,"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":["string","null"]},"account_id":{"type":"string","format":"uuid"},"approved_by":{"type":["string","null"],"format":"uuid"},"restrictions":{"type":"object","required":["profiles","read_only","expires_at"],"additionalProperties":false,"properties":{"read_only":{"type":"boolean"},"expires_at":{"type":["string","null"],"format":"date-time"},"profiles":{"type":["array","null"],"items":{"type":"string"}}}},"created_via":{"type":"string"},"last_active_at":{"type":"string","format":"date-time"}}}}}},"401":{"description":"A valid credential is required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"403":{"description":"This operation is outside the credential's authority","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"404":{"description":"Resource absent from credential scope","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"409":{"description":"Resource limit or claim conflict","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"422":{"description":"Invalid or unknown field","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"429":{"description":"Honor Retry-After","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"503":{"description":"Not available right now. Honor Retry-After and retry the same request; for a purchase, reuse its signed payment rather than paying again.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}}},"security":[{"accountBearer":[]}],"x-error-codes":["unauthorized","forbidden","not_found","unknown_profile","key_limit","key_revoked","account_closed","already_claimed","custom_access_required","rate_limited","invalid_field","unknown_field","unavailable"]},"delete":{"description":"Revoke yourself using current. Agents cannot revoke peers. RPC keys stay valid.","parameters":[{"in":"path","name":"id","description":"Resource ID; current means the resource belonging to this credential.","required":true,"schema":{"type":"string"}}],"summary":"Revoke your agent","tags":["Agents"],"operationId":"revokeAgent","responses":{"204":{"description":"No content"},"401":{"description":"A valid credential is required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"403":{"description":"This operation is outside the credential's authority","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"404":{"description":"Resource absent from credential scope","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"409":{"description":"Resource limit or claim conflict","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"422":{"description":"Invalid or unknown field","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"429":{"description":"Honor Retry-After","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"503":{"description":"Not available right now. Honor Retry-After and retry the same request; for a purchase, reuse its signed payment rather than paying again.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}}},"security":[{"accountBearer":[]}],"x-error-codes":["unauthorized","forbidden","not_found","unknown_profile","key_limit","key_revoked","account_closed","already_claimed","custom_access_required","rate_limited","invalid_field","unknown_field","unavailable"]}},"/api/v1/configuration-schema":{"get":{"description":"Read Custom profile fields, limits and workload recipes.","summary":"Read Custom profile fields, limits and recipes","tags":["Profiles"],"operationId":"getConfigurationSchema","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["schema","recipes"],"additionalProperties":false,"properties":{"schema":{"type":"object"},"recipes":{"type":"array","items":{"type":"object"}}}}}}},"401":{"description":"A valid credential is required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"403":{"description":"This operation is outside the credential's authority","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"404":{"description":"Resource absent from credential scope","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"409":{"description":"Resource limit or claim conflict","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"422":{"description":"Invalid or unknown field","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"429":{"description":"Honor Retry-After","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"503":{"description":"Not available right now. Honor Retry-After and retry the same request; for a purchase, reuse its signed payment rather than paying again.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}}},"security":[],"x-error-codes":["unauthorized","forbidden","not_found","unknown_profile","key_limit","key_revoked","account_closed","already_claimed","custom_access_required","rate_limited","invalid_field","unknown_field","unavailable"]}},"/api/v1/connections":{"post":{"description":"Ask an account's admin to let you join it. Give them approval_url and keep the returned management token: it works once they approve, and it is never shown again.","summary":"Ask to join an existing account","tags":["Connections"],"operationId":"createConnection","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["id","status","expires_at","poll_after_seconds","management_token","approval_url"],"additionalProperties":false,"properties":{"id":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["pending","approved","denied","expired"]},"expires_at":{"type":"string","format":"date-time"},"account_id":{"type":"string","format":"uuid"},"management_token":{"type":"string"},"poll_after_seconds":{"type":"integer"},"approval_url":{"type":"string"}}}}}},"401":{"description":"A valid credential is required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"403":{"description":"This operation is outside the credential's authority","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"404":{"description":"Resource absent from credential scope","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"409":{"description":"Resource limit or claim conflict","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"422":{"description":"Invalid or unknown field","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"429":{"description":"Honor Retry-After","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"503":{"description":"Not available right now. Honor Retry-After and retry the same request; for a purchase, reuse its signed payment rather than paying again.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}}},"security":[],"x-error-codes":["unauthorized","forbidden","not_found","unknown_profile","key_limit","key_revoked","account_closed","already_claimed","custom_access_required","rate_limited","invalid_field","unknown_field","unavailable"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"additionalProperties":false,"properties":{"name":{"type":"string","maxLength":100,"minLength":1}}}}}}}},"/api/v1/connections/{id}":{"get":{"description":"Check approval with the connection's management token, no faster than every five seconds. Once approved, that token manages the account.","parameters":[{"in":"path","name":"id","description":"Resource ID; current means the resource belonging to this credential.","required":true,"schema":{"type":"string"}}],"summary":"Check whether a connection was approved","tags":["Connections"],"operationId":"getConnection","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["id","status","expires_at","poll_after_seconds"],"additionalProperties":false,"properties":{"id":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["pending","approved","denied","expired"]},"expires_at":{"type":"string","format":"date-time"},"account_id":{"type":"string","format":"uuid"},"poll_after_seconds":{"type":"integer"}}}}}},"401":{"description":"A valid credential is required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"403":{"description":"This operation is outside the credential's authority","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"404":{"description":"Resource absent from credential scope","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"409":{"description":"Resource limit or claim conflict","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"422":{"description":"Invalid or unknown field","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"429":{"description":"Honor Retry-After","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"503":{"description":"Not available right now. Honor Retry-After and retry the same request; for a purchase, reuse its signed payment rather than paying again.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}}},"security":[{"accountBearer":[]}],"x-error-codes":["unauthorized","forbidden","not_found","unknown_profile","key_limit","key_revoked","account_closed","already_claimed","custom_access_required","rate_limited","invalid_field","unknown_field","unavailable"]}},"/api/v1/credit":{"post":{"description":"Funded key for an aggregated EVM JSON-RPC router, from $0.05. One endpoint routes eth_call, eth_getLogs and other standard methods across several providers per chain on Ethereum, Base and other chains, with failover for replay-safe reads. Custom profiles add your own nodes and provider accounts. No signup. The paid response returns the key and its RPC URLs. Creates a Lasso account funded by this payment and returns its key, in one paid request with no signup or Lasso credential. Send {\"usd\": \"0.05\"}, or no body to buy the minimum purchase. The first request answers 402 with an x402 challenge in PAYMENT-REQUIRED and an MPP challenge in WWW-Authenticate; sign one and repeat the same request with it. The 200 or 202 response carries the purchase and, under key, the new key with rpc_url_template and ws_url_template; replace {chain} with a chain, such as base, or <strategy>/<chain>. A payment that fails verification or does not match its challenge creates nothing. Resubmitting the same signed payment credits once and shows the same key and management token again, so a lost response loses nothing. Top up later with POST /api/v1/accounts/{id}/credit.","parameters":[],"summary":"Buy a funded key for an aggregated EVM JSON-RPC router, from $0.05","tags":["Keys"],"operationId":"buyFundedKey","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["id","product","status","amount_usd","status_url","beneficiary_account_id"],"properties":{"id":{"type":"string","format":"uuid"},"reason":{"type":"string"},"status":{"type":"string","enum":["pending","completed","failed"]},"product":{"type":"string","enum":["credit","custom_access"]},"key":{"type":"object","description":"Credentials for the funded account: the same pair on every paid response for this payment, while they still authenticate. A revoked or rotated pair is not shown again.","required":["id","account_id","key","management_token","rpc_url_template","ws_url_template"],"properties":{"id":{"type":"string","format":"uuid"},"key":{"type":"string"},"account_id":{"type":"string","format":"uuid"},"management_token":{"type":"string"},"rpc_url_template":{"type":"string"},"ws_url_template":{"type":"string"}}},"receipt":{"type":"object"},"retry_after_seconds":{"type":"integer"},"beneficiary_account_id":{"type":"string","format":"uuid"},"balance_usd":{"type":"string"},"credited_usd":{"type":"string"},"access_until":{"type":"string","format":"date-time"},"amount_usd":{"type":"string"},"status_url":{"type":"string","format":"uri"}}}}}},"202":{"description":"Payment admitted; settlement pending. Lasso finishes it without client action.","content":{"application/json":{"schema":{"type":"object","required":["id","product","status","amount_usd","status_url","beneficiary_account_id"],"properties":{"id":{"type":"string","format":"uuid"},"reason":{"type":"string"},"status":{"type":"string","enum":["pending","completed","failed"]},"product":{"type":"string","enum":["credit","custom_access"]},"key":{"type":"object","description":"Credentials for the funded account: the same pair on every paid response for this payment, while they still authenticate. A revoked or rotated pair is not shown again.","required":["id","account_id","key","management_token","rpc_url_template","ws_url_template"],"properties":{"id":{"type":"string","format":"uuid"},"key":{"type":"string"},"account_id":{"type":"string","format":"uuid"},"management_token":{"type":"string"},"rpc_url_template":{"type":"string"},"ws_url_template":{"type":"string"}}},"receipt":{"type":"object"},"retry_after_seconds":{"type":"integer"},"beneficiary_account_id":{"type":"string","format":"uuid"},"balance_usd":{"type":"string"},"credited_usd":{"type":"string"},"access_until":{"type":"string","format":"date-time"},"amount_usd":{"type":"string"},"status_url":{"type":"string","format":"uri"}}}}},"headers":{"Retry-After":{"schema":{"type":"integer"}}}},"402":{"description":"Payment required: one challenge per enabled rail.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action","docs_url"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":["object","array"],"description":"Field problems: an array of {path, reason} for invalid_config, an object otherwise."},"next_action":{"type":"string"},"docs_url":{"type":"string","format":"uri"}}},"offer":{"type":"object","required":["amount_usd","rails"],"properties":{"amount_usd":{"type":"string"},"rails":{"type":"array","items":{"type":"string","enum":["x402","mpp"]}}}}}}}},"headers":{"PAYMENT-REQUIRED":{"description":"x402 exact challenge","schema":{"type":"string"}},"WWW-Authenticate":{"description":"MPP charge challenge","schema":{"type":"string"}}}},"default":{"description":"Error. Follow error.next_action; the codes this operation can return are listed in x-error-codes.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action","docs_url"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":["object","array"],"description":"Field problems: an array of {path, reason} for invalid_config, an object otherwise."},"next_action":{"type":"string"},"docs_url":{"type":"string","format":"uri"}}}}}}}}},"security":[{}],"x-error-codes":["account_closed","invalid_field","unknown_field","amount_out_of_range","balance_limit","payment_invalid","payment_conflict","payment_failed","payment_pending","beneficiary_conflict","rate_limited","unavailable"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"usd":{"type":"string","description":"Decimal USD, such as \"5\"."}}}}}},"x-payment-info":{"protocols":[{"mpp":{"currency":"0x20c000000000000000000000b9537d11c60e8b50","method":"tempo","intent":"charge"}},{"x402":{"currency":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","network":"eip155:8453"}}],"offers":[{"description":"USD balance for Lasso EVM RPC: one endpoint per chain, routed across providers with failover. Amount set by the request body.","currency":"0x20c000000000000000000000b9537d11c60e8b50","amount":null,"method":"tempo","network":"eip155:4217","intent":"charge"},{"description":"USD balance for Lasso EVM RPC: one endpoint per chain, routed across providers with failover. Amount set by the request body.","currency":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","amount":null,"method":"x402","network":"eip155:8453","intent":"exact"}],"price":{"max":"100","min":"0.05","mode":"dynamic","currency":"USD"}},"x-enabled":true}},"/api/v1/feedback":{"post":{"description":"Tell Lasso's operators about confusion or failures. A Bearer credential, if sent, attaches your account and agent. Anything shaped like a secret is redacted before storage; reports are kept 180 days and have no read endpoint. Ten submissions per hour per credential or client IP.","summary":"Report a problem to Lasso's operators","tags":["Feedback"],"operationId":"submitFeedback","responses":{"202":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["id"],"additionalProperties":false,"properties":{"id":{"type":"string","format":"uuid"}}}}}},"401":{"description":"A valid credential is required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"403":{"description":"This operation is outside the credential's authority","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"404":{"description":"Resource absent from credential scope","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"409":{"description":"Resource limit or claim conflict","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"422":{"description":"Invalid or unknown field","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"429":{"description":"Honor Retry-After","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"503":{"description":"Not available right now. Honor Retry-After and retry the same request; for a purchase, reuse its signed payment rather than paying again.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}}},"security":[{},{"accountBearer":[]}],"x-error-codes":["unauthorized","forbidden","not_found","unknown_profile","key_limit","key_revoked","account_closed","already_claimed","custom_access_required","rate_limited","invalid_field","unknown_field","unavailable"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["message"],"additionalProperties":false,"properties":{"message":{"type":"string","maxLength":4000,"minLength":1},"operation":{"type":["string","null"],"maxLength":256,"minLength":1},"category":{"type":["string","null"],"enum":["docs","api","payment","routing","rpc","dashboard","other",null]},"request_id":{"type":["string","null"],"maxLength":256,"minLength":1}}}}}}}},"/api/v1/keys":{"get":{"description":"List keys visible to this agent. RPC keys cannot enumerate keys.","summary":"List the account's keys","tags":["Keys"],"operationId":"listKeys","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["keys"],"additionalProperties":false,"properties":{"keys":{"type":"array","items":{"type":"object","required":["id","name","allowed_profiles","status"],"additionalProperties":false,"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":["string","null"]},"status":{"type":"string","enum":["active","revoked"]},"allowed_profiles":{"oneOf":[{"type":"string","enum":["all"]},{"type":"array","items":{"type":"string"}}]},"routing_aliases":{"type":"object","additionalProperties":{"type":"string"}}}}}}}}}},"401":{"description":"A valid credential is required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"403":{"description":"This operation is outside the credential's authority","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"404":{"description":"Resource absent from credential scope","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"409":{"description":"Resource limit or claim conflict","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"422":{"description":"Invalid or unknown field","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"429":{"description":"Honor Retry-After","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"503":{"description":"Not available right now. Honor Retry-After and retry the same request; for a purchase, reuse its signed payment rather than paying again.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}}},"security":[{"accountBearer":[]}],"x-error-codes":["unauthorized","forbidden","not_found","unknown_profile","key_limit","key_revoked","account_closed","already_claimed","custom_access_required","rate_limited","invalid_field","unknown_field","unavailable"]},"post":{"description":"Create a provisional account and its first agent and key without credentials, or add a key to your agent's account. Secrets appear only in this response. allowed_profiles authorizes access; the URL selects the profile. Bare URLs select premium. rpc_url_template and ws_url_template include /profile/premium when authorized; otherwise they include the sole allowed canonical profile or the first canonical slug in lexical order. Replace {chain} with a chain name or decimal ID, or <strategy>/<chain>; never append another /profile/. A new account also returns claim_url and claim_expires_at for human handoff. Submitted default_profile returns 422 unknown_field. Public-only browser keys use their explicit /profile/public URL. Provisioning creates the account, agent, key policy and grant atomically. 201 with serving_ready=true means the key is ready to use. 202 with serving_ready=false returns the same committed credentials and Retry-After: 1. Keep the credentials, wait Retry-After, then call RPC. If RPC reports service_initializing, honor Retry-After and retry RPC with the same key; do not create another key. Restricted agents can create keys only within their delegated profiles.","summary":"Create an RPC key, and its account when sent without credentials","tags":["Keys"],"operationId":"createKey","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["id","account_id","key","rpc_url_template","ws_url_template"],"additionalProperties":false,"properties":{"id":{"type":"string","format":"uuid"},"key":{"type":"string"},"account_id":{"type":"string","format":"uuid"},"serving_ready":{"type":"boolean"},"claim_expires_at":{"type":"string","format":"date-time"},"management_token":{"type":"string"},"previous_valid_until":{"type":"string","format":"date-time"},"rpc_url_template":{"type":"string"},"claim_url":{"type":"string"},"ws_url_template":{"type":"string"}}}}}},"202":{"description":"Credentials committed; serving publication pending. Wait Retry-After, then call RPC; do not repeat creation or rotation.","content":{"application/json":{"schema":{"type":"object","required":["id","account_id","key","rpc_url_template","ws_url_template"],"additionalProperties":false,"properties":{"id":{"type":"string","format":"uuid"},"key":{"type":"string"},"account_id":{"type":"string","format":"uuid"},"serving_ready":{"type":"boolean"},"claim_expires_at":{"type":"string","format":"date-time"},"management_token":{"type":"string"},"previous_valid_until":{"type":"string","format":"date-time"},"rpc_url_template":{"type":"string"},"claim_url":{"type":"string"},"ws_url_template":{"type":"string"}}}}},"headers":{"Retry-After":{"description":"Seconds to wait before calling RPC","schema":{"type":"integer","example":1}}}},"401":{"description":"A valid credential is required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"403":{"description":"This operation is outside the credential's authority","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"404":{"description":"Resource absent from credential scope","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"409":{"description":"Resource limit or claim conflict","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"422":{"description":"Invalid or unknown field","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"429":{"description":"Honor Retry-After","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"503":{"description":"Not available right now. Honor Retry-After and retry the same request; for a purchase, reuse its signed payment rather than paying again.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}}},"security":[{},{"accountBearer":[]}],"x-error-codes":["unauthorized","forbidden","not_found","unknown_profile","key_limit","key_revoked","account_closed","already_claimed","custom_access_required","rate_limited","invalid_field","unknown_field","unavailable"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"additionalProperties":false,"properties":{"name":{"type":"string","maxLength":100},"allowed_profiles":{"default":"all","oneOf":[{"type":"string","enum":["all"]},{"type":"array","items":{"type":"string"},"uniqueItems":true}]}}}}}}}},"/api/v1/keys/{id}":{"get":{"description":"Read a key's metadata. An RPC key can read only current.","parameters":[{"in":"path","name":"id","description":"Resource ID; current means the resource belonging to this credential.","required":true,"schema":{"type":"string"}}],"summary":"Read a key with its usage and recent errors","tags":["Keys"],"operationId":"getKey","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["id","name","allowed_profiles","status","usage","recent_errors"],"additionalProperties":false,"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":["string","null"]},"status":{"type":"string","enum":["active","revoked"]},"usage":{"type":"object","required":["window_hours","requests","charged_usd"],"additionalProperties":false,"properties":{"requests":{"type":"integer","minimum":0},"window_hours":{"const":24,"type":"integer"},"charged_usd":{"type":"string"}}},"allowed_profiles":{"oneOf":[{"type":"string","enum":["all"]},{"type":"array","items":{"type":"string"}}]},"routing_aliases":{"type":"object","additionalProperties":{"type":"string"}},"recent_errors":{"type":"array","items":{"type":"object","required":["code","category","provider","count","last_at","next_action"],"additionalProperties":false,"properties":{"code":{"type":["integer","null"]},"count":{"type":"integer","minimum":1},"category":{"type":"string"},"provider":{"type":["string","null"]},"last_at":{"type":"string","format":"date-time"},"next_action":{"type":"string"}}},"maxItems":20}}}}}},"401":{"description":"A valid credential is required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"403":{"description":"This operation is outside the credential's authority","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"404":{"description":"Resource absent from credential scope","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"409":{"description":"Resource limit or claim conflict","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"422":{"description":"Invalid or unknown field","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"429":{"description":"Honor Retry-After","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"503":{"description":"Not available right now. Honor Retry-After and retry the same request; for a purchase, reuse its signed payment rather than paying again.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}}},"security":[{"accountBearer":[]}],"x-error-codes":["unauthorized","forbidden","not_found","unknown_profile","key_limit","key_revoked","account_closed","already_claimed","custom_access_required","rate_limited","invalid_field","unknown_field","unavailable"]},"delete":{"description":"Revoke the key and all rotation overlaps. Repeated revocation is safe.","parameters":[{"in":"path","name":"id","description":"Resource ID; current means the resource belonging to this credential.","required":true,"schema":{"type":"string"}}],"summary":"Revoke a key","tags":["Keys"],"operationId":"revokeKey","responses":{"204":{"description":"No content"},"401":{"description":"A valid credential is required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"403":{"description":"This operation is outside the credential's authority","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"404":{"description":"Resource absent from credential scope","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"409":{"description":"Resource limit or claim conflict","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"422":{"description":"Invalid or unknown field","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"429":{"description":"Honor Retry-After","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"503":{"description":"Not available right now. Honor Retry-After and retry the same request; for a purchase, reuse its signed payment rather than paying again.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}}},"security":[{"accountBearer":[]}],"x-error-codes":["unauthorized","forbidden","not_found","unknown_profile","key_limit","key_revoked","account_closed","already_claimed","custom_access_required","rate_limited","invalid_field","unknown_field","unavailable"]},"patch":{"description":"Rename a key or change its allowed profiles. The URL selects the profile, so a change never moves a URL. routing_aliases lists older profile names the key's URLs still reach, for example after a merge renamed a profile.","parameters":[{"in":"path","name":"id","description":"Resource ID; current means the resource belonging to this credential.","required":true,"schema":{"type":"string"}}],"summary":"Rename a key or change its allowed profiles","tags":["Keys"],"operationId":"updateKey","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["id","name","allowed_profiles","status","usage","recent_errors"],"additionalProperties":false,"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":["string","null"]},"status":{"type":"string","enum":["active","revoked"]},"usage":{"type":"object","required":["window_hours","requests","charged_usd"],"additionalProperties":false,"properties":{"requests":{"type":"integer","minimum":0},"window_hours":{"const":24,"type":"integer"},"charged_usd":{"type":"string"}}},"allowed_profiles":{"oneOf":[{"type":"string","enum":["all"]},{"type":"array","items":{"type":"string"}}]},"routing_aliases":{"type":"object","additionalProperties":{"type":"string"}},"recent_errors":{"type":"array","items":{"type":"object","required":["code","category","provider","count","last_at","next_action"],"additionalProperties":false,"properties":{"code":{"type":["integer","null"]},"count":{"type":"integer","minimum":1},"category":{"type":"string"},"provider":{"type":["string","null"]},"last_at":{"type":"string","format":"date-time"},"next_action":{"type":"string"}}},"maxItems":20}}}}}},"401":{"description":"A valid credential is required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"403":{"description":"This operation is outside the credential's authority","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"404":{"description":"Resource absent from credential scope","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"409":{"description":"Resource limit or claim conflict","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"422":{"description":"Invalid or unknown field","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"429":{"description":"Honor Retry-After","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"503":{"description":"Not available right now. Honor Retry-After and retry the same request; for a purchase, reuse its signed payment rather than paying again.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}}},"security":[{"accountBearer":[]}],"x-error-codes":["unauthorized","forbidden","not_found","unknown_profile","key_limit","key_revoked","account_closed","already_claimed","custom_access_required","rate_limited","invalid_field","unknown_field","unavailable"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"additionalProperties":false,"properties":{"name":{"type":"string","maxLength":100},"allowed_profiles":{"default":"all","oneOf":[{"type":"string","enum":["all"]},{"type":"array","items":{"type":"string"},"uniqueItems":true}]}}}}}}}},"/api/v1/keys/{id}/rotate":{"post":{"description":"Issue a new secret without changing allowed_profiles. Use the first live allowed canonical profile under the usual URL presentation rule. For a deleted-only Custom scope, rotation may reuse an existing retained slug bound to an allowed deleted identity; its existing profile fallback is unchanged. Rotation never creates aliases or widens scope. If no usable allowed canonical or retained selector exists, unknown_profile refuses before credential, overlap or version changes; update allowed_profiles first. grace_seconds defaults to 3600 (1 hour) and may be at most 86400; explicit 0 revokes the old secret immediately; previous_valid_until ends the old secret's overlap. 200 with serving_ready=true means the replacement is ready to use. 202 with serving_ready=false returns the committed replacement and Retry-After: 1. Keep the replacement and any still-valid grace secret, wait Retry-After, then call RPC with the replacement. If RPC reports service_initializing, honor Retry-After and retry RPC; do not repeat rotation.","parameters":[{"in":"path","name":"id","description":"Resource ID; current means the resource belonging to this credential.","required":true,"schema":{"type":"string"}}],"summary":"Rotate a key's secret with an overlap window","tags":["Keys"],"operationId":"rotateKey","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["id","key","rpc_url_template","ws_url_template","previous_valid_until"],"additionalProperties":false,"properties":{"id":{"type":"string","format":"uuid"},"key":{"type":"string"},"account_id":{"type":"string","format":"uuid"},"serving_ready":{"type":"boolean"},"claim_expires_at":{"type":"string","format":"date-time"},"management_token":{"type":"string"},"previous_valid_until":{"type":"string","format":"date-time"},"rpc_url_template":{"type":"string"},"claim_url":{"type":"string"},"ws_url_template":{"type":"string"}}}}}},"202":{"description":"Credentials committed; serving publication pending. Wait Retry-After, then call RPC; do not repeat creation or rotation.","content":{"application/json":{"schema":{"type":"object","required":["id","key","rpc_url_template","ws_url_template","previous_valid_until"],"additionalProperties":false,"properties":{"id":{"type":"string","format":"uuid"},"key":{"type":"string"},"account_id":{"type":"string","format":"uuid"},"serving_ready":{"type":"boolean"},"claim_expires_at":{"type":"string","format":"date-time"},"management_token":{"type":"string"},"previous_valid_until":{"type":"string","format":"date-time"},"rpc_url_template":{"type":"string"},"claim_url":{"type":"string"},"ws_url_template":{"type":"string"}}}}},"headers":{"Retry-After":{"description":"Seconds to wait before calling RPC","schema":{"type":"integer","example":1}}}},"401":{"description":"A valid credential is required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"403":{"description":"This operation is outside the credential's authority","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"404":{"description":"Resource absent from credential scope","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"409":{"description":"Resource limit or claim conflict","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"422":{"description":"Invalid or unknown field","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"429":{"description":"Honor Retry-After","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}},"503":{"description":"Not available right now. Honor Retry-After and retry the same request; for a purchase, reuse its signed payment rather than paying again.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"next_action":{"type":"string"},"docs_url":{"type":"string"}}}}}}}}},"security":[{"accountBearer":[]}],"x-error-codes":["unauthorized","forbidden","not_found","unknown_profile","key_limit","key_revoked","account_closed","already_claimed","custom_access_required","rate_limited","invalid_field","unknown_field","unavailable"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"additionalProperties":false,"properties":{"grace_seconds":{"default":3600,"maximum":86400,"type":"integer","minimum":0}}}}}}}},"/api/v1/profiles":{"get":{"description":"Each profile as GET /profiles/{slug} returns it.","parameters":[{"in":"query","name":"scope","description":"Account scope is the default. Allowlisted operators can select system-owned documents; scope=system disambiguates a shared slug.","required":false,"schema":{"type":"string","enum":["account","system"]}}],"summary":"List the Custom profiles this token manages","tags":["Profiles"],"operationId":"listProfiles","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["profiles"],"properties":{"profiles":{"type":"array","items":{"type":"object","required":["slug","name","revision","status","chains"],"properties":{"name":{"type":"string"},"status":{"type":"string","enum":["live","activating","verifying","off","partial","failed","inactive","suspended","rejected"],"description":"A saved revision that would remove a chain's last connectable read or send route stays activating until a new provider's address resolves. Explicitly off providers never serve. Stable completion states are live, off (all chains off), and partial (all enabled chains published and connectable, with other chains off); do not wait for off or partial to become live without an explicit edit."},"revision":{"type":"integer"},"slug":{"type":"string"},"chains":{"type":"object","additionalProperties":{"type":"object","required":["status","providers"],"properties":{"status":{"type":"string","enum":["live","verifying","failed","off"]},"providers":{"type":"array","items":{"type":"object","required":["name","status","websocket","header_names","limits","knowledge"],"properties":{"enabled":{"default":true,"type":"boolean","description":"Whether this provider is enabled. Custom document PUT omission means true; false keeps settings and credentials but stops routing and background observations."},"name":{"type":"string"},"status":{"type":"string","enum":["verified","verifying","failed","deactivated"]},"websocket":{"type":"boolean"},"heads":{"type":["string","null"],"enum":[null,"live","standby","passive","off"]},"disabled_at":{"type":["string","null"],"format":"date-time"},"disabled_reason":{"type":["string","null"]},"limits":{"type":"object"},"header_names":{"type":"array","items":{"type":"string"}},"knowledge":{"type":"object","properties":{"capability_refusal":{"type":"object","required":["value","support","source","effect","configured_mode","suspended"],"properties":{"suspended":{"type":"boolean"},"value":{"type":"boolean"},"source":{"type":"string","enum":["learned","imported"]},"effect":{"type":"string","enum":["off","on","excluded","suspended"]},"support":{"type":"object","properties":{"failures":{"type":"integer"},"distinct_requests":{"type":"integer"}}},"configured_mode":{"type":"string","enum":["off","on"]}}},"quota_exhaustion":{"type":"object","required":["value","support","source","effect","configured_mode","suspended"],"properties":{"suspended":{"type":"boolean"},"value":{"type":"boolean"},"source":{"type":"string","enum":["learned","imported"]},"effect":{"type":"string","enum":["off","on","excluded","suspended"]},"support":{"type":"object","properties":{"failures":{"type":"integer"},"distinct_requests":{"type":"integer"}}},"configured_mode":{"type":"string","enum":["off","on"]}}},"historical_depth":{"type":"object","description":"Registered method to resource predictions.","additionalProperties":{"type":"object","additionalProperties":{"type":"object","description":"HTTP bound when present, otherwise WebSocket. Each transport has its own coordinate and value; bounds are not ranked across transports.","required":["blocks","coordinate","transport","method","source","effect"],"properties":{"suspended":{"type":"boolean"},"blocks":{"type":"integer"},"source":{"type":"string","enum":["declared","learned","probe","imported"]},"effect":{"type":"string","enum":["off","on","excluded","suspended"]},"method":{"type":"string"},"transport":{"type":"string","enum":["http","ws"]},"transports":{"type":"object","additionalProperties":{"type":"object","required":["blocks","coordinate","transport","method","source","effect"],"properties":{"suspended":{"type":"boolean"},"blocks":{"type":"integer"},"source":{"type":"string","enum":["declared","learned","probe","imported"]},"effect":{"type":"string","enum":["off","on","excluded","suspended"]},"method":{"type":"string"},"transport":{"type":"string","enum":["http","ws"]},"coordinate":{"type":"string","enum":["age","height"],"description":"age means a block-age cutoff; height means an absolute block-height floor."},"configured_mode":{"type":"string","enum":["off","on"]}}}},"coordinate":{"type":"string","enum":["age","height"],"description":"age means a block-age cutoff; height means an absolute block-height floor."},"configured_mode":{"type":"string","enum":["off","on"]}}}}},"logs_span":{"type":"object","properties":{"suspended":{"type":"boolean"},"blocks":{"type":"integer"},"source":{"type":"string","enum":["declared","learned","probe","imported"]},"effect":{"type":"string","enum":["off","on","excluded","suspended"]},"method":{"type":"string"},"configured_mode":{"type":"string","enum":["off","on"]}}},"methods_refused":{"type":"array","items":{"type":"object","properties":{"suspended":{"type":"boolean"},"blocks":{"type":"integer"},"source":{"type":"string","enum":["declared","learned","probe","imported"]},"effect":{"type":"string","enum":["off","on","excluded","suspended"]},"method":{"type":"string"},"configured_mode":{"type":"string","enum":["off","on"]}}}}}},"observed_chain_id":{"type":"integer","description":"Present when status is failed."}}}},"max_lag_blocks":{"type":"integer"},"block_protection":{"type":"boolean"},"health_checks":{"type":"string","enum":["standard","light"]}}}},"trial_ends_at":{"type":"string","format":"date-time","description":"While the account's Custom access is a free trial: when it ends. After that, requests to the profile return 402 custom_access_expired until the account buys Custom days; nothing is deleted."},"error_interpretation":{"type":"boolean"},"retry_after_seconds":{"type":"integer","minimum":1},"status_detail":{"type":"string","description":"Why this revision is not live yet, when Lasso knows."}}}}}}}}},"default":{"description":"Error. Follow error.next_action; the codes this operation can return are listed in x-error-codes.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action","docs_url"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":["object","array"],"description":"Field problems: an array of {path, reason} for invalid_config, an object otherwise."},"next_action":{"type":"string"},"docs_url":{"type":"string","format":"uri"}}}}}}}}},"security":[{"accountBearer":[]}],"x-error-codes":["unauthorized","account_closed","forbidden"]}},"/api/v1/profiles/{slug}":{"get":{"description":"The stored document with its revision, each provider's status and what Lasso knows about it. Provider URLs are never returned. With Accept: application/yaml, returns the profile as a Lasso RPC Core YAML profile, runnable on self-hosted Core, with provider URLs replaced by environment references.","parameters":[{"in":"path","name":"slug","description":"The profile's permanent slug.","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$"}},{"in":"query","name":"scope","description":"Account scope is the default. Allowlisted operators can select system-owned documents; scope=system disambiguates a shared slug.","required":false,"schema":{"type":"string","enum":["account","system"]}}],"summary":"Read a Custom profile","tags":["Profiles"],"operationId":"getProfile","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["slug","name","revision","status","chains"],"properties":{"name":{"type":"string"},"status":{"type":"string","enum":["live","activating","verifying","off","partial","failed","inactive","suspended","rejected"],"description":"A saved revision that would remove a chain's last connectable read or send route stays activating until a new provider's address resolves. Explicitly off providers never serve. Stable completion states are live, off (all chains off), and partial (all enabled chains published and connectable, with other chains off); do not wait for off or partial to become live without an explicit edit."},"revision":{"type":"integer"},"slug":{"type":"string"},"chains":{"type":"object","additionalProperties":{"type":"object","required":["status","providers"],"properties":{"status":{"type":"string","enum":["live","verifying","failed","off"]},"providers":{"type":"array","items":{"type":"object","required":["name","status","websocket","header_names","limits","knowledge"],"properties":{"enabled":{"default":true,"type":"boolean","description":"Whether this provider is enabled. Custom document PUT omission means true; false keeps settings and credentials but stops routing and background observations."},"name":{"type":"string"},"status":{"type":"string","enum":["verified","verifying","failed","deactivated"]},"websocket":{"type":"boolean"},"heads":{"type":["string","null"],"enum":[null,"live","standby","passive","off"]},"disabled_at":{"type":["string","null"],"format":"date-time"},"disabled_reason":{"type":["string","null"]},"limits":{"type":"object"},"header_names":{"type":"array","items":{"type":"string"}},"knowledge":{"type":"object","properties":{"capability_refusal":{"type":"object","required":["value","support","source","effect","configured_mode","suspended"],"properties":{"suspended":{"type":"boolean"},"value":{"type":"boolean"},"source":{"type":"string","enum":["learned","imported"]},"effect":{"type":"string","enum":["off","on","excluded","suspended"]},"support":{"type":"object","properties":{"failures":{"type":"integer"},"distinct_requests":{"type":"integer"}}},"configured_mode":{"type":"string","enum":["off","on"]}}},"quota_exhaustion":{"type":"object","required":["value","support","source","effect","configured_mode","suspended"],"properties":{"suspended":{"type":"boolean"},"value":{"type":"boolean"},"source":{"type":"string","enum":["learned","imported"]},"effect":{"type":"string","enum":["off","on","excluded","suspended"]},"support":{"type":"object","properties":{"failures":{"type":"integer"},"distinct_requests":{"type":"integer"}}},"configured_mode":{"type":"string","enum":["off","on"]}}},"historical_depth":{"type":"object","description":"Registered method to resource predictions.","additionalProperties":{"type":"object","additionalProperties":{"type":"object","description":"HTTP bound when present, otherwise WebSocket. Each transport has its own coordinate and value; bounds are not ranked across transports.","required":["blocks","coordinate","transport","method","source","effect"],"properties":{"suspended":{"type":"boolean"},"blocks":{"type":"integer"},"source":{"type":"string","enum":["declared","learned","probe","imported"]},"effect":{"type":"string","enum":["off","on","excluded","suspended"]},"method":{"type":"string"},"transport":{"type":"string","enum":["http","ws"]},"transports":{"type":"object","additionalProperties":{"type":"object","required":["blocks","coordinate","transport","method","source","effect"],"properties":{"suspended":{"type":"boolean"},"blocks":{"type":"integer"},"source":{"type":"string","enum":["declared","learned","probe","imported"]},"effect":{"type":"string","enum":["off","on","excluded","suspended"]},"method":{"type":"string"},"transport":{"type":"string","enum":["http","ws"]},"coordinate":{"type":"string","enum":["age","height"],"description":"age means a block-age cutoff; height means an absolute block-height floor."},"configured_mode":{"type":"string","enum":["off","on"]}}}},"coordinate":{"type":"string","enum":["age","height"],"description":"age means a block-age cutoff; height means an absolute block-height floor."},"configured_mode":{"type":"string","enum":["off","on"]}}}}},"logs_span":{"type":"object","properties":{"suspended":{"type":"boolean"},"blocks":{"type":"integer"},"source":{"type":"string","enum":["declared","learned","probe","imported"]},"effect":{"type":"string","enum":["off","on","excluded","suspended"]},"method":{"type":"string"},"configured_mode":{"type":"string","enum":["off","on"]}}},"methods_refused":{"type":"array","items":{"type":"object","properties":{"suspended":{"type":"boolean"},"blocks":{"type":"integer"},"source":{"type":"string","enum":["declared","learned","probe","imported"]},"effect":{"type":"string","enum":["off","on","excluded","suspended"]},"method":{"type":"string"},"configured_mode":{"type":"string","enum":["off","on"]}}}}}},"observed_chain_id":{"type":"integer","description":"Present when status is failed."}}}},"max_lag_blocks":{"type":"integer"},"block_protection":{"type":"boolean"},"health_checks":{"type":"string","enum":["standard","light"]}}}},"trial_ends_at":{"type":"string","format":"date-time","description":"While the account's Custom access is a free trial: when it ends. After that, requests to the profile return 402 custom_access_expired until the account buys Custom days; nothing is deleted."},"error_interpretation":{"type":"boolean"},"retry_after_seconds":{"type":"integer","minimum":1},"status_detail":{"type":"string","description":"Why this revision is not live yet, when Lasso knows."}}}},"application/yaml":{"schema":{"type":"string"}}}},"default":{"description":"Error. Follow error.next_action; the codes this operation can return are listed in x-error-codes.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action","docs_url"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":["object","array"],"description":"Field problems: an array of {path, reason} for invalid_config, an object otherwise."},"next_action":{"type":"string"},"docs_url":{"type":"string","format":"uri"}}}}}}}}},"security":[{"accountBearer":[]}],"x-error-codes":["unauthorized","account_closed","forbidden","not_found"]},"put":{"description":"The body is the whole desired state: omitting a provider removes it, and omitting an existing provider's url keeps its stored URL. Lasso checks that every enabled new or changed provider answers for its chain before anything is stored: a wrong chain rejects the document with provider_check_failed. A provider that cannot answer yet is saved as verifying and routes once a later check passes; the profile is live once its saved revision is ready for RPC and every chain has a verified provider. A profile reports activating or verifying while its enabled chains are not ready. Providers explicitly turned off do not serve requests. A pending chain without a usable provider cannot serve yet. A newly created profile has no live revision yet: honor retry_after_seconds while activating or verifying and GET again. Completion is live when every chain serves, off when all chains are intentionally off, or partial when every enabled chain is published and connectable and other chains are off. Off and partial are stable completed configurations; do not poll them waiting for live. An explicit edit is needed to turn providers back on. Use RPC only for live chains. Do not repeat PUT for activation. With dry_run=true, returns the changes and check results and stores nothing; dry runs do not need Custom access. Saving account-owned profiles needs Custom access. System documents are read-only through this compact view: PUT returns system_provider_edit_required. Use POST /profiles/{slug}/provider-edits for system provider changes; omitted stored fields are untouched. Set enabled=false to turn off a provider while retaining settings and credentials; enabled=true re-enables it under the existing identity fence. Custom PUT omission means true. Only managed system profiles refuse turning off the last routable provider; Custom profiles accept all providers off with no route. RPC to an all-off chain returns non-retryable no_enabled_providers; pending configuration retains retryable profile_config_unavailable. An all-off chain and profile report off; a profile with both live and off chains reports partial. An account that has never had Custom access gets seven free days when it saves its first profile, with no payment; the response's trial_ends_at says when they end. After that, requests to the profile return 402 custom_access_expired until the account buys Custom days with POST /api/v1/accounts/{id}/custom-access; purchased days start when the trial ends. Send If-Match with the revision you read to refuse a concurrent change.","parameters":[{"in":"path","name":"slug","description":"The profile's permanent slug.","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$"}},{"in":"query","name":"scope","description":"Account scope is the default. Allowlisted operators can select system-owned documents; scope=system disambiguates a shared slug.","required":false,"schema":{"type":"string","enum":["account","system"]}},{"in":"query","name":"dry_run","required":false,"schema":{"type":"boolean"}},{"in":"header","name":"If-Match","description":"The revision the change is based on.","required":false,"schema":{"type":"integer","minimum":0}}],"summary":"Create or replace a profile document","tags":["Profiles"],"operationId":"putProfile","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["slug","name","revision","status","chains"],"properties":{"name":{"type":"string"},"status":{"type":"string","enum":["live","activating","verifying","off","partial","failed","inactive","suspended","rejected"],"description":"A saved revision that would remove a chain's last connectable read or send route stays activating until a new provider's address resolves. Explicitly off providers never serve. Stable completion states are live, off (all chains off), and partial (all enabled chains published and connectable, with other chains off); do not wait for off or partial to become live without an explicit edit."},"revision":{"type":"integer"},"slug":{"type":"string"},"chains":{"type":"object","additionalProperties":{"type":"object","required":["status","providers"],"properties":{"status":{"type":"string","enum":["live","verifying","failed","off"]},"providers":{"type":"array","items":{"type":"object","required":["name","status","websocket","header_names","limits","knowledge"],"properties":{"enabled":{"default":true,"type":"boolean","description":"Whether this provider is enabled. Custom document PUT omission means true; false keeps settings and credentials but stops routing and background observations."},"name":{"type":"string"},"status":{"type":"string","enum":["verified","verifying","failed","deactivated"]},"websocket":{"type":"boolean"},"heads":{"type":["string","null"],"enum":[null,"live","standby","passive","off"]},"disabled_at":{"type":["string","null"],"format":"date-time"},"disabled_reason":{"type":["string","null"]},"limits":{"type":"object"},"header_names":{"type":"array","items":{"type":"string"}},"knowledge":{"type":"object","properties":{"capability_refusal":{"type":"object","required":["value","support","source","effect","configured_mode","suspended"],"properties":{"suspended":{"type":"boolean"},"value":{"type":"boolean"},"source":{"type":"string","enum":["learned","imported"]},"effect":{"type":"string","enum":["off","on","excluded","suspended"]},"support":{"type":"object","properties":{"failures":{"type":"integer"},"distinct_requests":{"type":"integer"}}},"configured_mode":{"type":"string","enum":["off","on"]}}},"quota_exhaustion":{"type":"object","required":["value","support","source","effect","configured_mode","suspended"],"properties":{"suspended":{"type":"boolean"},"value":{"type":"boolean"},"source":{"type":"string","enum":["learned","imported"]},"effect":{"type":"string","enum":["off","on","excluded","suspended"]},"support":{"type":"object","properties":{"failures":{"type":"integer"},"distinct_requests":{"type":"integer"}}},"configured_mode":{"type":"string","enum":["off","on"]}}},"historical_depth":{"type":"object","description":"Registered method to resource predictions.","additionalProperties":{"type":"object","additionalProperties":{"type":"object","description":"HTTP bound when present, otherwise WebSocket. Each transport has its own coordinate and value; bounds are not ranked across transports.","required":["blocks","coordinate","transport","method","source","effect"],"properties":{"suspended":{"type":"boolean"},"blocks":{"type":"integer"},"source":{"type":"string","enum":["declared","learned","probe","imported"]},"effect":{"type":"string","enum":["off","on","excluded","suspended"]},"method":{"type":"string"},"transport":{"type":"string","enum":["http","ws"]},"transports":{"type":"object","additionalProperties":{"type":"object","required":["blocks","coordinate","transport","method","source","effect"],"properties":{"suspended":{"type":"boolean"},"blocks":{"type":"integer"},"source":{"type":"string","enum":["declared","learned","probe","imported"]},"effect":{"type":"string","enum":["off","on","excluded","suspended"]},"method":{"type":"string"},"transport":{"type":"string","enum":["http","ws"]},"coordinate":{"type":"string","enum":["age","height"],"description":"age means a block-age cutoff; height means an absolute block-height floor."},"configured_mode":{"type":"string","enum":["off","on"]}}}},"coordinate":{"type":"string","enum":["age","height"],"description":"age means a block-age cutoff; height means an absolute block-height floor."},"configured_mode":{"type":"string","enum":["off","on"]}}}}},"logs_span":{"type":"object","properties":{"suspended":{"type":"boolean"},"blocks":{"type":"integer"},"source":{"type":"string","enum":["declared","learned","probe","imported"]},"effect":{"type":"string","enum":["off","on","excluded","suspended"]},"method":{"type":"string"},"configured_mode":{"type":"string","enum":["off","on"]}}},"methods_refused":{"type":"array","items":{"type":"object","properties":{"suspended":{"type":"boolean"},"blocks":{"type":"integer"},"source":{"type":"string","enum":["declared","learned","probe","imported"]},"effect":{"type":"string","enum":["off","on","excluded","suspended"]},"method":{"type":"string"},"configured_mode":{"type":"string","enum":["off","on"]}}}}}},"observed_chain_id":{"type":"integer","description":"Present when status is failed."}}}},"max_lag_blocks":{"type":"integer"},"block_protection":{"type":"boolean"},"health_checks":{"type":"string","enum":["standard","light"]}}}},"trial_ends_at":{"type":"string","format":"date-time","description":"While the account's Custom access is a free trial: when it ends. After that, requests to the profile return 402 custom_access_expired until the account buys Custom days; nothing is deleted."},"error_interpretation":{"type":"boolean"},"retry_after_seconds":{"type":"integer","minimum":1},"status_detail":{"type":"string","description":"Why this revision is not live yet, when Lasso knows."}}},{"type":"object","required":["dry_run","revision","changes","providers"],"properties":{"providers":{"type":"array","items":{"type":"object","required":["chain","name","headers_change","check"],"properties":{"name":{"type":"string"},"check":{"type":"string","enum":["verified","verifying","unchanged"]},"chain":{"type":"string"},"headers_change":{"type":"string","enum":["unchanged","set","replace","clear"]}}}},"revision":{"type":["integer","null"]},"changes":{"type":"object","required":["added","removed"],"properties":{"removed":{"type":"array","items":{"type":"object","required":["chain","name"],"properties":{"name":{"type":"string"},"chain":{"type":"string"}}}},"added":{"type":"array","items":{"type":"object","required":["chain","name"],"properties":{"name":{"type":"string"},"chain":{"type":"string"}}}}}},"dry_run":{"const":true}}}]}}}},"default":{"description":"Error. Follow error.next_action; the codes this operation can return are listed in x-error-codes.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action","docs_url"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":["object","array"],"description":"Field problems: an array of {path, reason} for invalid_config, an object otherwise."},"next_action":{"type":"string"},"docs_url":{"type":"string","format":"uri"}}}}}}}}},"security":[{"accountBearer":[]}],"x-error-codes":["unauthorized","account_closed","forbidden","not_found","unknown_field","invalid_field","invalid_config","unknown_chain","provider_check_failed","revision_conflict","profile_limit","profile_suspended","custom_access_required","unavailable","system_provider_edit_required"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["chains"],"additionalProperties":false,"properties":{"name":{"type":"string","maxLength":100,"minLength":1},"chains":{"type":"object","description":"Keyed by chain name or decimal chain ID from /agent.json chains.","additionalProperties":{"type":"object","required":["providers"],"additionalProperties":false,"properties":{"providers":{"type":"array","description":"In preference order: the priority strategy tries the first provider first.","items":{"type":"object","required":["name"],"additionalProperties":false,"properties":{"enabled":{"default":true,"type":"boolean","description":"Keep this provider stored while false stops routing and background observations. Omission resets to true."},"name":{"type":"string","pattern":"\\A[a-zA-Z0-9][a-zA-Z0-9_-]{0,126}\\z"},"url":{"type":"string","format":"uri","description":"HTTPS endpoint, credentials included. Required for a new provider; omit to keep the stored URL."},"headers":{"type":"object","description":"Secret headers shared by HTTP and WebSocket. Omit to retain stored headers; {} clears them.","additionalProperties":{"type":"string"},"writeOnly":true,"maxProperties":32},"background_observations":{"default":true,"type":"boolean","description":"Allow background checks and idle recovery for this provider. New providers default to true; omission retains an existing setting. heads: off only disables head observation."},"heads":{"type":"string","enum":["live","standby","passive","off"],"description":"Head observation intent; omission in a replacement resets to passive."},"ws_url":{"type":["string","null"],"format":"uri","description":"WebSocket endpoint, for subscriptions."},"limits":{"type":"object","description":"Overrides for limits you know better than Lasso has learned. Omit to let Lasso learn them.","additionalProperties":false,"properties":{"archival":{"type":"boolean","description":"false keeps historical requests off this provider."},"logs_span":{"type":["integer","null"],"description":"Largest eth_getLogs block span the provider accepts. On provider-edit set, null clears the declared span and omission keeps it. In a Custom PUT, null equals omission: no span is declared.","minimum":1},"methods_blocked":{"type":"array","description":"Methods the provider refuses.","items":{"type":"string"},"maxItems":100}}}}},"maxItems":50,"minItems":1},"transactions":{"type":"object","required":["providers"],"additionalProperties":false,"properties":{"providers":{"type":"array","items":{"type":"string"},"minItems":1,"uniqueItems":true},"fallback":{"default":"none","type":"string","enum":["none","read_providers"]}}},"max_lag_blocks":{"maximum":100,"type":"integer","description":"Blocks a provider may trail the chain head and still serve.","minimum":1},"block_protection":{"default":false,"type":"boolean","description":"Each Lasso node never serves a latest block older than one it already served for this chain. The floor is per node, not global across regions or restarts."},"health_checks":{"default":"standard","type":"string","enum":["standard","light"],"description":"light spends less of the provider's quota on Lasso's checks."}}},"maxProperties":25,"minProperties":1},"error_interpretation":{"default":false,"type":"boolean","description":"Allow masked error interpretation for this profile's providers."}}}}}},"x-enabled":true},"delete":{"description":"Delete the Custom profile. URLs that name it are served as premium with x-lasso-fallback: profile.","parameters":[{"in":"path","name":"slug","description":"The profile's permanent slug.","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$"}}],"summary":"Delete a Custom profile","tags":["Profiles"],"operationId":"deleteProfile","responses":{"204":{"description":"Success"},"default":{"description":"Error. Follow error.next_action; the codes this operation can return are listed in x-error-codes.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action","docs_url"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":["object","array"],"description":"Field problems: an array of {path, reason} for invalid_config, an object otherwise."},"next_action":{"type":"string"},"docs_url":{"type":"string","format":"uri"}}}}}}}}},"security":[{"accountBearer":[]}],"x-error-codes":["unauthorized","account_closed","forbidden","not_found"]}},"/api/v1/profiles/{slug}/provider-edits":{"post":{"description":"Operator-only. Set the supplied fields, add a new provider to an existing chain, or remove a provider. expected_revision is required; stale revisions write nothing. Endpoint changes clear affected learned evidence. Untouched providers and chain policy remain unchanged. GET the profile for the next revision and serving status. This operation also repairs or removes a malformed stored provider.","parameters":[{"in":"path","name":"slug","description":"The profile's permanent slug.","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$"}}],"summary":"Edit one system provider","tags":["Profiles"],"operationId":"editSystemProvider","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["slug","name","revision","status","chains"],"properties":{"name":{"type":"string"},"status":{"type":"string","enum":["live","activating","verifying","off","partial","failed","inactive","suspended","rejected"],"description":"A saved revision that would remove a chain's last connectable read or send route stays activating until a new provider's address resolves. Explicitly off providers never serve. Stable completion states are live, off (all chains off), and partial (all enabled chains published and connectable, with other chains off); do not wait for off or partial to become live without an explicit edit."},"revision":{"type":"integer"},"slug":{"type":"string"},"chains":{"type":"object","additionalProperties":{"type":"object","required":["status","providers"],"properties":{"status":{"type":"string","enum":["live","verifying","failed","off"]},"providers":{"type":"array","items":{"type":"object","required":["name","status","websocket","header_names","limits","knowledge"],"properties":{"enabled":{"default":true,"type":"boolean","description":"Whether this provider is enabled. Custom document PUT omission means true; false keeps settings and credentials but stops routing and background observations."},"name":{"type":"string"},"status":{"type":"string","enum":["verified","verifying","failed","deactivated"]},"websocket":{"type":"boolean"},"heads":{"type":["string","null"],"enum":[null,"live","standby","passive","off"]},"disabled_at":{"type":["string","null"],"format":"date-time"},"disabled_reason":{"type":["string","null"]},"limits":{"type":"object"},"header_names":{"type":"array","items":{"type":"string"}},"knowledge":{"type":"object","properties":{"capability_refusal":{"type":"object","required":["value","support","source","effect","configured_mode","suspended"],"properties":{"suspended":{"type":"boolean"},"value":{"type":"boolean"},"source":{"type":"string","enum":["learned","imported"]},"effect":{"type":"string","enum":["off","on","excluded","suspended"]},"support":{"type":"object","properties":{"failures":{"type":"integer"},"distinct_requests":{"type":"integer"}}},"configured_mode":{"type":"string","enum":["off","on"]}}},"quota_exhaustion":{"type":"object","required":["value","support","source","effect","configured_mode","suspended"],"properties":{"suspended":{"type":"boolean"},"value":{"type":"boolean"},"source":{"type":"string","enum":["learned","imported"]},"effect":{"type":"string","enum":["off","on","excluded","suspended"]},"support":{"type":"object","properties":{"failures":{"type":"integer"},"distinct_requests":{"type":"integer"}}},"configured_mode":{"type":"string","enum":["off","on"]}}},"historical_depth":{"type":"object","description":"Registered method to resource predictions.","additionalProperties":{"type":"object","additionalProperties":{"type":"object","description":"HTTP bound when present, otherwise WebSocket. Each transport has its own coordinate and value; bounds are not ranked across transports.","required":["blocks","coordinate","transport","method","source","effect"],"properties":{"suspended":{"type":"boolean"},"blocks":{"type":"integer"},"source":{"type":"string","enum":["declared","learned","probe","imported"]},"effect":{"type":"string","enum":["off","on","excluded","suspended"]},"method":{"type":"string"},"transport":{"type":"string","enum":["http","ws"]},"transports":{"type":"object","additionalProperties":{"type":"object","required":["blocks","coordinate","transport","method","source","effect"],"properties":{"suspended":{"type":"boolean"},"blocks":{"type":"integer"},"source":{"type":"string","enum":["declared","learned","probe","imported"]},"effect":{"type":"string","enum":["off","on","excluded","suspended"]},"method":{"type":"string"},"transport":{"type":"string","enum":["http","ws"]},"coordinate":{"type":"string","enum":["age","height"],"description":"age means a block-age cutoff; height means an absolute block-height floor."},"configured_mode":{"type":"string","enum":["off","on"]}}}},"coordinate":{"type":"string","enum":["age","height"],"description":"age means a block-age cutoff; height means an absolute block-height floor."},"configured_mode":{"type":"string","enum":["off","on"]}}}}},"logs_span":{"type":"object","properties":{"suspended":{"type":"boolean"},"blocks":{"type":"integer"},"source":{"type":"string","enum":["declared","learned","probe","imported"]},"effect":{"type":"string","enum":["off","on","excluded","suspended"]},"method":{"type":"string"},"configured_mode":{"type":"string","enum":["off","on"]}}},"methods_refused":{"type":"array","items":{"type":"object","properties":{"suspended":{"type":"boolean"},"blocks":{"type":"integer"},"source":{"type":"string","enum":["declared","learned","probe","imported"]},"effect":{"type":"string","enum":["off","on","excluded","suspended"]},"method":{"type":"string"},"configured_mode":{"type":"string","enum":["off","on"]}}}}}},"observed_chain_id":{"type":"integer","description":"Present when status is failed."}}}},"max_lag_blocks":{"type":"integer"},"block_protection":{"type":"boolean"},"health_checks":{"type":"string","enum":["standard","light"]}}}},"trial_ends_at":{"type":"string","format":"date-time","description":"While the account's Custom access is a free trial: when it ends. After that, requests to the profile return 402 custom_access_expired until the account buys Custom days; nothing is deleted."},"error_interpretation":{"type":"boolean"},"retry_after_seconds":{"type":"integer","minimum":1},"status_detail":{"type":"string","description":"Why this revision is not live yet, when Lasso knows."}}}}}},"default":{"description":"Error. Follow error.next_action; the codes this operation can return are listed in x-error-codes.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action","docs_url"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":["object","array"],"description":"Field problems: an array of {path, reason} for invalid_config, an object otherwise."},"next_action":{"type":"string"},"docs_url":{"type":"string","format":"uri"}}}}}}}}},"security":[{"accountBearer":[]}],"x-error-codes":["unauthorized","account_closed","forbidden","not_found","invalid_field","invalid_config","provider_check_failed","revision_conflict","unavailable"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["expected_revision","operation","chain_id","provider"],"additionalProperties":false,"properties":{"fields":{"type":"object","required":[],"additionalProperties":false,"properties":{"api_key":{"type":"string","description":"Provider API key.","writeOnly":true},"background_observations":{"type":"boolean","description":"Enable background observations. These can consume upstream quota."},"block_poll_interval_ms":{"type":"integer","description":"Requested polling interval. Runtime minimums still apply to public endpoints.","minimum":1},"chain_identity_interval_ms":{"type":"integer","minimum":1},"disabled_reason":{"type":"string","description":"Optional operator reason for deactivation. Never include credentials.","maxLength":255},"enabled":{"default":true,"type":"boolean","description":"False deactivates this provider without deleting its settings or credentials."},"headers":{"type":"object","description":"Secret HTTP and WebSocket headers. Omit to retain; empty object clears.","additionalProperties":{"type":"string"},"writeOnly":true,"maxProperties":32},"heads":{"type":"string","enum":["live","standby","passive","off"],"description":"Head observation intent. Partial updates retain it when omitted; existing legacy feed placement resolves first. Whole profile-document replacement resets omission to passive."},"historical_allowed":{"type":"boolean","description":"Operator permission for bounded historical attempts, on by default for Custom providers. False restricts historical requests. Observed block, state and log coverage and per-request prediction are separate; unknown coverage remains eligible. Chain/head checks do not verify historical depth."},"limits":{"type":"object","description":"Overrides for limits you know better than Lasso has learned. Omit to let Lasso learn them.","additionalProperties":false,"properties":{"archival":{"type":"boolean","description":"false keeps historical requests off this provider."},"logs_span":{"type":["integer","null"],"description":"Largest eth_getLogs block span the provider accepts. On provider-edit set, null clears the declared span and omission keeps it. In a Custom PUT, null equals omission: no span is declared.","minimum":1},"methods_blocked":{"type":"array","description":"Methods the provider refuses.","items":{"type":"string"},"maxItems":100}}},"name":{"type":"string","description":"Display name; defaults to the provider identifier."},"observation_overrides":{"type":"object","description":"Sparse activity overrides. Empty object restores chain defaults; interval 0 means Off.","additionalProperties":false,"properties":{"background_observations":{"type":"boolean"},"capability_revalidation_interval_ms":{"maximum":31536000000,"type":"integer","minimum":0,"anyOf":[{"const":0,"type":"integer"},{"type":"integer","minimum":1000}]},"chain_identity_interval_ms":{"maximum":31536000000,"type":"integer","minimum":0,"anyOf":[{"const":0,"type":"integer"},{"type":"integer","minimum":1000}]},"http_backup_interval_ms":{"maximum":31536000000,"type":"integer","minimum":0,"anyOf":[{"const":0,"type":"integer"},{"type":"integer","minimum":1000}]},"http_heads_interval_ms":{"maximum":31536000000,"type":"integer","minimum":0,"anyOf":[{"const":0,"type":"integer"},{"type":"integer","minimum":1000}]},"subscribe_new_heads":{"type":"boolean"}}},"priority":{"maximum":100,"type":"integer","description":"Provider priority; defaults to 5 for a new provider.","minimum":1},"subscribe_new_heads":{"type":"boolean","description":"Use this provider for background new-head monitoring when a WebSocket URL exists."},"url":{"type":"string","description":"HTTP endpoint. Omit to retain an existing provider's secret.","writeOnly":true},"ws_url":{"type":["string","null"],"description":"Independent WebSocket endpoint. Omit to retain; null clears it.","writeOnly":true}}},"operation":{"type":"string","enum":["set","add","remove"]},"chain_id":{"type":"integer","minimum":1},"provider":{"type":"string","description":"Stable provider identifier from GET."},"expected_revision":{"type":"integer","minimum":0}}}}}}}},"/api/v1/profiles/{slug}/providers/{name}/knowledge":{"get":{"description":"Every current hint with its support, source, expiry and effect. Learned hints report configured_mode separately: effect is off when the kind is turned off (the hint is observed but never applied), suspended when the hint scope is blocked, on when ordering by it, and excluded for credential-wide quota or chain-plan refusals.","parameters":[{"in":"path","name":"slug","description":"The profile's permanent slug.","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$"}},{"in":"path","name":"name","required":true,"schema":{"type":"string"}}],"summary":"Read everything Lasso learned about a provider","tags":["Profiles"],"operationId":"getProviderKnowledge","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["name","chain","hints"],"properties":{"name":{"type":"string"},"hints":{"type":"array","items":{"type":"object","properties":{"suspended":{"type":"boolean"},"effect":{"type":"string","enum":["off","on","excluded","suspended"]},"transport":{"type":"string","enum":["http","ws"]},"coordinate":{"type":"string","enum":["age","height"],"description":"Historical-depth value is a block age cutoff or an absolute height floor."},"configured_mode":{"type":"string","enum":["off","on"]}}}},"chain":{"type":"string"}}}}}},"default":{"description":"Error. Follow error.next_action; the codes this operation can return are listed in x-error-codes.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action","docs_url"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":["object","array"],"description":"Field problems: an array of {path, reason} for invalid_config, an object otherwise."},"next_action":{"type":"string"},"docs_url":{"type":"string","format":"uri"}}}}}}}}},"security":[{"accountBearer":[]}],"x-error-codes":["unauthorized","account_closed","forbidden","not_found"]},"delete":{"description":"Lasso relearns from new traffic. Declared limits in the document are kept.","parameters":[{"in":"path","name":"slug","description":"The profile's permanent slug.","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$"}},{"in":"path","name":"name","required":true,"schema":{"type":"string"}}],"summary":"Forget what Lasso learned about a provider","tags":["Profiles"],"operationId":"resetProviderKnowledge","responses":{"204":{"description":"Success"},"default":{"description":"Error. Follow error.next_action; the codes this operation can return are listed in x-error-codes.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action","docs_url"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":["object","array"],"description":"Field problems: an array of {path, reason} for invalid_config, an object otherwise."},"next_action":{"type":"string"},"docs_url":{"type":"string","format":"uri"}}}}}}}}},"security":[{"accountBearer":[]}],"x-error-codes":["unauthorized","account_closed","forbidden","not_found"]}},"/api/v1/purchases/{id}":{"get":{"description":"Read a purchase with no credential; the ID is the capability. Returns its status, amount_usd and beneficiary_account_id, then the credit or access result and receipt once it settles, or the failure reason. Pending purchases settle on their own.","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}}],"summary":"Check a pending purchase","tags":["Keys"],"operationId":"getAccountPurchase","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["id","product","status","amount_usd","status_url","beneficiary_account_id"],"properties":{"id":{"type":"string","format":"uuid"},"reason":{"type":"string"},"status":{"type":"string","enum":["pending","completed","failed"]},"product":{"type":"string","enum":["credit","custom_access"]},"receipt":{"type":"object"},"retry_after_seconds":{"type":"integer"},"beneficiary_account_id":{"type":"string","format":"uuid"},"balance_usd":{"type":"string"},"credited_usd":{"type":"string"},"access_until":{"type":"string","format":"date-time"},"amount_usd":{"type":"string"},"status_url":{"type":"string","format":"uri"}}}}}},"default":{"description":"Error. Follow error.next_action; the codes this operation can return are listed in x-error-codes.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action","docs_url"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":["object","array"],"description":"Field problems: an array of {path, reason} for invalid_config, an object otherwise."},"next_action":{"type":"string"},"docs_url":{"type":"string","format":"uri"}}}}}}}}},"security":[{}],"x-error-codes":["not_found"],"x-enabled":true}},"/api/v1/streams":{"get":{"description":"Allowlisted beta. Account management Bearer required; RPC keys and profile-scoped agents are forbidden. Read-only agents cannot mutate. At most 100 per account. Returns per-key reader, per-account distinct-stream and saved-stream limits.","summary":"List saved recipes","tags":["Streams (beta)"],"operationId":"listSavedStreams","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["streams","limits"],"properties":{"streams":{"type":"array","items":{"$ref":"#/components/schemas/SavedStream"}},"limits":{"type":"object"}}}}}},"default":{"description":"Error. Follow error.next_action; the codes this operation can return are listed in x-error-codes.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action","docs_url"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":["object","array"],"description":"Field problems: an array of {path, reason} for invalid_config, an object otherwise."},"next_action":{"type":"string"},"docs_url":{"type":"string","format":"uri"}}}}}}}}},"security":[{"accountBearer":[]}],"x-error-codes":["unauthorized","account_closed","forbidden","not_in_beta","not_found","invalid_field","unknown_field","stream_limit","unavailable"],"x-streams-beta":true},"post":{"description":"Allowlisted beta. Account management Bearer required; RPC keys and profile-scoped agents are forbidden. Read-only agents cannot mutate. Credential-free recipe; never stores a position. Duplicate names allowed; 409 stream_limit at the account cap.","summary":"Save a stream recipe","tags":["Streams (beta)"],"operationId":"createSavedStream","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedStream"}}}},"default":{"description":"Error. Follow error.next_action; the codes this operation can return are listed in x-error-codes.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action","docs_url"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":["object","array"],"description":"Field problems: an array of {path, reason} for invalid_config, an object otherwise."},"next_action":{"type":"string"},"docs_url":{"type":"string","format":"uri"}}}}}}}}},"security":[{"accountBearer":[]}],"x-error-codes":["unauthorized","account_closed","forbidden","not_in_beta","not_found","invalid_field","unknown_field","stream_limit","unavailable"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedStreamInput"}}}},"x-streams-beta":true}},"/api/v1/streams/usage":{"get":{"description":"Allowlisted beta. Account management Bearer required; RPC keys and profile-scoped agents are forbidden. Read-only agents cannot mutate. Background-flushed day and source totals, events, bytes and costs. Day minimums belong to the account.","parameters":[{"in":"query","name":"from_day","description":"Inclusive UTC date; at most 31 days, default seven.","required":false,"schema":{"type":"string","format":"date"}},{"in":"query","name":"through_day","description":"Inclusive UTC date; at most 31 days, default seven.","required":false,"schema":{"type":"string","format":"date"}}],"summary":"Read account Streams usage","tags":["Streams (beta)"],"operationId":"getStreamsUsage","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StreamsUsage"}}}},"default":{"description":"Error. Follow error.next_action; the codes this operation can return are listed in x-error-codes.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action","docs_url"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":["object","array"],"description":"Field problems: an array of {path, reason} for invalid_config, an object otherwise."},"next_action":{"type":"string"},"docs_url":{"type":"string","format":"uri"}}}}}}}}},"security":[{"accountBearer":[]}],"x-error-codes":["unauthorized","account_closed","forbidden","not_in_beta","not_found","invalid_field","unknown_field","stream_limit","unavailable"],"x-streams-beta":true}},"/api/v1/streams/{id}":{"get":{"description":"Allowlisted beta. Account management Bearer required; RPC keys and profile-scoped agents are forbidden. Read-only agents cannot mutate. Substitute a key into url_template locally.","parameters":[{"in":"path","name":"id","description":"Saved recipe ID owned by this account.","required":true,"schema":{"type":"string","format":"uuid"}}],"summary":"Read a saved recipe","tags":["Streams (beta)"],"operationId":"getSavedStream","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedStream"}}}},"default":{"description":"Error. Follow error.next_action; the codes this operation can return are listed in x-error-codes.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action","docs_url"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":["object","array"],"description":"Field problems: an array of {path, reason} for invalid_config, an object otherwise."},"next_action":{"type":"string"},"docs_url":{"type":"string","format":"uri"}}}}}}}}},"security":[{"accountBearer":[]}],"x-error-codes":["unauthorized","account_closed","forbidden","not_in_beta","not_found","invalid_field","unknown_field","stream_limit","unavailable"],"x-streams-beta":true},"delete":{"description":"Allowlisted beta. Account management Bearer required; RPC keys and profile-scoped agents are forbidden. Read-only agents cannot mutate. Does not revoke a key or erase a consumer checkpoint.","parameters":[{"in":"path","name":"id","description":"Saved recipe ID owned by this account.","required":true,"schema":{"type":"string","format":"uuid"}}],"summary":"Delete a saved recipe","tags":["Streams (beta)"],"operationId":"deleteSavedStream","responses":{"204":{"description":"Success"},"default":{"description":"Error. Follow error.next_action; the codes this operation can return are listed in x-error-codes.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action","docs_url"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":["object","array"],"description":"Field problems: an array of {path, reason} for invalid_config, an object otherwise."},"next_action":{"type":"string"},"docs_url":{"type":"string","format":"uri"}}}}}}}}},"security":[{"accountBearer":[]}],"x-error-codes":["unauthorized","account_closed","forbidden","not_in_beta","not_found","invalid_field","unknown_field","stream_limit","unavailable"],"x-streams-beta":true},"patch":{"description":"Allowlisted beta. Account management Bearer required; RPC keys and profile-scoped agents are forbidden. Read-only agents cannot mutate. Only name is editable; create a new recipe to change its source.","parameters":[{"in":"path","name":"id","description":"Saved recipe ID owned by this account.","required":true,"schema":{"type":"string","format":"uuid"}}],"summary":"Rename a saved recipe","tags":["Streams (beta)"],"operationId":"renameSavedStream","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedStream"}}}},"default":{"description":"Error. Follow error.next_action; the codes this operation can return are listed in x-error-codes.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action","docs_url"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":["object","array"],"description":"Field problems: an array of {path, reason} for invalid_config, an object otherwise."},"next_action":{"type":"string"},"docs_url":{"type":"string","format":"uri"}}}}}}}}},"security":[{"accountBearer":[]}],"x-error-codes":["unauthorized","account_closed","forbidden","not_in_beta","not_found","invalid_field","unknown_field","stream_limit","unavailable"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","maxLength":100,"minLength":1}}}}}},"x-streams-beta":true}},"/api/v1/streams/{id}/usage":{"get":{"description":"Allowlisted beta. Account management Bearer required; RPC keys and profile-scoped agents are forbidden. Read-only agents cannot mutate. days remains account-wide; sources is filtered by the recipe. Identical normalized filters share attribution. Never sum repeated account-day charges across recipes.","parameters":[{"in":"path","name":"id","description":"Saved recipe ID owned by this account.","required":true,"schema":{"type":"string","format":"uuid"}},{"in":"query","name":"from_day","description":"Inclusive UTC date; at most 31 days, default seven.","required":false,"schema":{"type":"string","format":"date"}},{"in":"query","name":"through_day","description":"Inclusive UTC date; at most 31 days, default seven.","required":false,"schema":{"type":"string","format":"date"}}],"summary":"Read a saved recipe's usage","tags":["Streams (beta)"],"operationId":"getSavedStreamUsage","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StreamsUsage"}}}},"default":{"description":"Error. Follow error.next_action; the codes this operation can return are listed in x-error-codes.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","next_action","docs_url"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":["object","array"],"description":"Field problems: an array of {path, reason} for invalid_config, an object otherwise."},"next_action":{"type":"string"},"docs_url":{"type":"string","format":"uri"}}}}}}}}},"security":[{"accountBearer":[]}],"x-error-codes":["unauthorized","account_closed","forbidden","not_in_beta","not_found","invalid_field","unknown_field","stream_limit","unavailable"],"x-streams-beta":true}},"/rpc/k/{key}":{"post":{"description":"A chainless RPC route names no chain. Valid requests receive rpc_route_required with their IDs; batches return an array and notifications receive no response. Invalid requests receive a standard JSON-RPC validation error. No RPC method executes.","parameters":[{"in":"path","name":"key","description":"RPC key","required":true,"schema":{"type":"string"}}],"summary":"Explain the missing chain in an RPC URL","tags":["RPC"],"operationId":"explainRPCRoute","responses":{"204":{"description":"Notification or notification-only batch; no response body"},"422":{"description":"A chain route is required","content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["jsonrpc","error","id"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"integer"},"data":{"type":"object","properties":{"code":{"const":"rpc_route_required"},"next_action":{"type":"string"}}},"message":{"type":"string"}}},"id":{"oneOf":[{"type":"number"},{"type":"string"},{"type":"null"}]},"jsonrpc":{"const":"2.0"}}},{"type":"array","items":{"type":"object","required":["jsonrpc","error","id"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"integer"},"data":{"type":"object","properties":{"code":{"const":"rpc_route_required"},"next_action":{"type":"string"}}},"message":{"type":"string"}}},"id":{"oneOf":[{"type":"number"},{"type":"string"},{"type":"null"}]},"jsonrpc":{"const":"2.0"}}}}]}}}}},"x-error-codes":["rpc_route_required"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["jsonrpc","method"],"properties":{"id":{"description":"Omit for a notification","oneOf":[{"type":"number"},{"type":"string"},{"type":"null"}]},"params":{"oneOf":[{"type":"array"},{"type":"object"}]},"method":{"type":"string"},"jsonrpc":{"const":"2.0","type":"string"}}},{"type":"array","items":{"type":"object","required":["jsonrpc","method"],"properties":{"id":{"description":"Omit for a notification","oneOf":[{"type":"number"},{"type":"string"},{"type":"null"}]},"params":{"oneOf":[{"type":"array"},{"type":"object"}]},"method":{"type":"string"},"jsonrpc":{"const":"2.0","type":"string"}}},"maxItems":50,"minItems":1}]}}}}}},"/rpc/k/{key}/profile/{profile}/{chain}":{"post":{"description":"Append a chain to the issued profile prefix. Premium defaults to balanced-fast; other profiles default to load-balanced.","parameters":[{"in":"path","name":"key","description":"RPC key","required":true,"schema":{"type":"string"}},{"in":"path","name":"profile","description":"URL-selected profile slug. Use the explicit prefix returned with the key.","required":true,"schema":{"type":"string"}},{"in":"path","name":"chain","description":"Chain name or ID. Coverage is per profile: choose an entry whose profiles in /agent.json chains includes the selected hosted profile.","required":true,"schema":{"type":"string"}},{"in":"query","name":"include_meta","description":"Opt into routing metadata in response bodies (body), including each routed batch item, or in x-lasso-meta (headers). A batch header describes the first item with a routing context.","required":false,"schema":{"type":"string","enum":["body","headers","none"]}}],"summary":"Execute a JSON-RPC call on an explicit profile","tags":["RPC"],"operationId":"rpcCallWithProfile","responses":{"200":{"description":"JSON-RPC response. Unclaimed keys also get x-lasso-usd (this request's charge) and x-lasso-balance-usd (an estimate of the balance after it).","content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["jsonrpc","id"],"properties":{"error":{"type":"object","properties":{"code":{"type":"integer"},"data":{"properties":{"code":{"type":"string"},"error_type":{"type":"string","description":"Routing or transaction rejection classification"},"next_action":{"type":"string"}}},"message":{"type":"string"}}},"id":{"oneOf":[{"type":"number"},{"type":"string"},{"type":"null"}]},"result":{},"jsonrpc":{"const":"2.0"},"lasso_meta":{"type":"object","description":"Present only for single requests when include_meta=body","properties":{"strategy":{"type":"string"},"candidate_providers":{"type":"array","items":{"type":"string"}},"chain_id":{"type":"integer"},"lasso_overhead_ms":{"type":"number"},"retries":{"type":"integer"},"selected_provider":{"type":"object","properties":{"id":{"type":"string"},"protocol":{"type":"string"}}},"upstream_latency_ms":{"type":"number"},"region":{"type":"string","description":"Serving node region"}}}}},{"type":"array","items":{"type":"object","required":["jsonrpc","id"],"properties":{"error":{"type":"object","properties":{"code":{"type":"integer"},"data":{"properties":{"code":{"type":"string"},"error_type":{"type":"string","description":"Routing or transaction rejection classification"},"next_action":{"type":"string"}}},"message":{"type":"string"}}},"id":{"oneOf":[{"type":"number"},{"type":"string"},{"type":"null"}]},"result":{},"jsonrpc":{"const":"2.0"}}}}]}}},"headers":{"x-lasso-access":{"description":"Serving access, fallback reason, request size in CU, or serving node region.","schema":{"type":"string","enum":["premium","public","custom"]}},"x-lasso-balance-usd":{"description":"Estimated balance after this charge on every access: the last settled balance less charges this server has not settled yet.","schema":{"type":"string"}},"x-lasso-balance-warning":{"schema":{"type":"string","enum":["true"]}},"x-lasso-cu":{"description":"Serving access, fallback reason, request size in CU, or serving node region.","schema":{"type":"string"}},"x-lasso-fallback":{"description":"Serving access, fallback reason, request size in CU, or serving node region.","schema":{"type":"string"}},"x-lasso-fallback-profile":{"description":"Profile that answered when routing left the named profile; a batch lists each such profile, comma-separated. The named profile's price applies.","schema":{"type":"string"}},"x-lasso-meta":{"description":"Base64url-encoded routing metadata when include_meta=headers. For batches, describes the first item with a routing context.","schema":{"type":"string"}},"x-lasso-profile":{"schema":{"type":"string"}},"x-lasso-rate-limit-burst":{"schema":{"type":"integer"}},"x-lasso-rate-limit-rps":{"schema":{"type":"integer"}},"x-lasso-rate-limit-scope":{"schema":{"type":"string"}},"x-lasso-region":{"description":"Serving access, fallback reason, request size in CU, or serving node region.","schema":{"type":"string"}},"x-lasso-request-id":{"schema":{"type":"string"}},"x-lasso-requested-strategy":{"description":"Explicit strategy requested in the URL, when present.","schema":{"type":"string"}},"x-lasso-strategy":{"description":"Applied strategy; Public applies load-balanced.","schema":{"type":"string"}},"x-lasso-usd":{"schema":{"type":"string"}}}},"402":{"description":"The account's balance or allowance is exhausted; POST to error.data.credit_url to credit the account or restore its allowance.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"const":-32000},"data":{"type":"object","properties":{"code":{"const":"balance_exhausted"},"next_action":{"type":"string"},"credit_url":{"type":"string","description":"Account credit endpoint; POST a credit exchange here.","example":"/api/v1/accounts/acc_example/credit"}}}}},"id":{"type":"null"},"jsonrpc":{"const":"2.0"}}}}}}},"x-error-codes":["balance_exhausted","timeout"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["jsonrpc","method"],"properties":{"id":{"description":"Omit for a notification","oneOf":[{"type":"number"},{"type":"string"},{"type":"null"}]},"params":{"oneOf":[{"type":"array"},{"type":"object"}]},"method":{"type":"string"},"jsonrpc":{"const":"2.0","type":"string"}}},{"type":"array","items":{"type":"object","required":["jsonrpc","method"],"properties":{"id":{"description":"Omit for a notification","oneOf":[{"type":"number"},{"type":"string"},{"type":"null"}]},"params":{"oneOf":[{"type":"array"},{"type":"object"}]},"method":{"type":"string"},"jsonrpc":{"const":"2.0","type":"string"}}},"maxItems":50,"minItems":1}]}}}}}},"/rpc/k/{key}/profile/{profile}/{strategy}/{chain}":{"post":{"description":"The strategy orders providers eligible for the URL-selected profile and chain.","parameters":[{"in":"path","name":"key","description":"RPC key","required":true,"schema":{"type":"string"}},{"in":"path","name":"profile","description":"URL-selected profile slug. Use the explicit prefix returned with the key.","required":true,"schema":{"type":"string"}},{"in":"path","name":"strategy","description":"Routing strategy. latency-weighted is accepted as an alias of balanced-fast.","required":true,"schema":{"type":"string","enum":["load-balanced","balanced-fast","latency-weighted","fastest","priority"]}},{"in":"path","name":"chain","description":"Chain name or ID. Coverage is per profile: choose an entry whose profiles in /agent.json chains includes the selected hosted profile.","required":true,"schema":{"type":"string"}},{"in":"query","name":"include_meta","description":"Opt into routing metadata in response bodies (body), including each routed batch item, or in x-lasso-meta (headers). A batch header describes the first item with a routing context.","required":false,"schema":{"type":"string","enum":["body","headers","none"]}}],"summary":"Execute a JSON-RPC call on an explicit profile with a routing strategy","tags":["RPC"],"operationId":"rpcCallWithProfileAndStrategy","responses":{"200":{"description":"JSON-RPC response. Unclaimed keys also get x-lasso-usd (this request's charge) and x-lasso-balance-usd (an estimate of the balance after it).","content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["jsonrpc","id"],"properties":{"error":{"type":"object","properties":{"code":{"type":"integer"},"data":{"properties":{"code":{"type":"string"},"error_type":{"type":"string","description":"Routing or transaction rejection classification"},"next_action":{"type":"string"}}},"message":{"type":"string"}}},"id":{"oneOf":[{"type":"number"},{"type":"string"},{"type":"null"}]},"result":{},"jsonrpc":{"const":"2.0"},"lasso_meta":{"type":"object","description":"Present only for single requests when include_meta=body","properties":{"strategy":{"type":"string"},"candidate_providers":{"type":"array","items":{"type":"string"}},"chain_id":{"type":"integer"},"lasso_overhead_ms":{"type":"number"},"retries":{"type":"integer"},"selected_provider":{"type":"object","properties":{"id":{"type":"string"},"protocol":{"type":"string"}}},"upstream_latency_ms":{"type":"number"},"region":{"type":"string","description":"Serving node region"}}}}},{"type":"array","items":{"type":"object","required":["jsonrpc","id"],"properties":{"error":{"type":"object","properties":{"code":{"type":"integer"},"data":{"properties":{"code":{"type":"string"},"error_type":{"type":"string","description":"Routing or transaction rejection classification"},"next_action":{"type":"string"}}},"message":{"type":"string"}}},"id":{"oneOf":[{"type":"number"},{"type":"string"},{"type":"null"}]},"result":{},"jsonrpc":{"const":"2.0"}}}}]}}},"headers":{"x-lasso-access":{"description":"Serving access, fallback reason, request size in CU, or serving node region.","schema":{"type":"string","enum":["premium","public","custom"]}},"x-lasso-balance-usd":{"description":"Estimated balance after this charge on every access: the last settled balance less charges this server has not settled yet.","schema":{"type":"string"}},"x-lasso-balance-warning":{"schema":{"type":"string","enum":["true"]}},"x-lasso-cu":{"description":"Serving access, fallback reason, request size in CU, or serving node region.","schema":{"type":"string"}},"x-lasso-fallback":{"description":"Serving access, fallback reason, request size in CU, or serving node region.","schema":{"type":"string"}},"x-lasso-fallback-profile":{"description":"Profile that answered when routing left the named profile; a batch lists each such profile, comma-separated. The named profile's price applies.","schema":{"type":"string"}},"x-lasso-meta":{"description":"Base64url-encoded routing metadata when include_meta=headers. For batches, describes the first item with a routing context.","schema":{"type":"string"}},"x-lasso-profile":{"schema":{"type":"string"}},"x-lasso-rate-limit-burst":{"schema":{"type":"integer"}},"x-lasso-rate-limit-rps":{"schema":{"type":"integer"}},"x-lasso-rate-limit-scope":{"schema":{"type":"string"}},"x-lasso-region":{"description":"Serving access, fallback reason, request size in CU, or serving node region.","schema":{"type":"string"}},"x-lasso-request-id":{"schema":{"type":"string"}},"x-lasso-requested-strategy":{"description":"Explicit strategy requested in the URL, when present.","schema":{"type":"string"}},"x-lasso-strategy":{"description":"Applied strategy; Public applies load-balanced.","schema":{"type":"string"}},"x-lasso-usd":{"schema":{"type":"string"}}}},"402":{"description":"The account's balance or allowance is exhausted; POST to error.data.credit_url to credit the account or restore its allowance.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"const":-32000},"data":{"type":"object","properties":{"code":{"const":"balance_exhausted"},"next_action":{"type":"string"},"credit_url":{"type":"string","description":"Account credit endpoint; POST a credit exchange here.","example":"/api/v1/accounts/acc_example/credit"}}}}},"id":{"type":"null"},"jsonrpc":{"const":"2.0"}}}}}}},"x-error-codes":["balance_exhausted","timeout"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["jsonrpc","method"],"properties":{"id":{"description":"Omit for a notification","oneOf":[{"type":"number"},{"type":"string"},{"type":"null"}]},"params":{"oneOf":[{"type":"array"},{"type":"object"}]},"method":{"type":"string"},"jsonrpc":{"const":"2.0","type":"string"}}},{"type":"array","items":{"type":"object","required":["jsonrpc","method"],"properties":{"id":{"description":"Omit for a notification","oneOf":[{"type":"number"},{"type":"string"},{"type":"null"}]},"params":{"oneOf":[{"type":"array"},{"type":"object"}]},"method":{"type":"string"},"jsonrpc":{"const":"2.0","type":"string"}}},"maxItems":50,"minItems":1}]}}}}}},"/rpc/k/{key}/{chain}":{"post":{"description":"Standard EVM JSON-RPC 2.0 over the profile's default strategy: balanced-fast on Premium, load-balanced elsewhere.","parameters":[{"in":"path","name":"key","description":"RPC key","required":true,"schema":{"type":"string"}},{"in":"path","name":"chain","description":"Chain name or ID. Coverage is per profile: choose an entry whose profiles in /agent.json chains includes the selected hosted profile.","required":true,"schema":{"type":"string"}},{"in":"query","name":"include_meta","description":"Opt into routing metadata in response bodies (body), including each routed batch item, or in x-lasso-meta (headers). A batch header describes the first item with a routing context.","required":false,"schema":{"type":"string","enum":["body","headers","none"]}}],"summary":"Execute a JSON-RPC call on a chain","tags":["RPC"],"operationId":"rpcCall","responses":{"200":{"description":"JSON-RPC response. Unclaimed keys also get x-lasso-usd (this request's charge) and x-lasso-balance-usd (an estimate of the balance after it).","content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["jsonrpc","id"],"properties":{"error":{"type":"object","properties":{"code":{"type":"integer"},"data":{"properties":{"code":{"type":"string"},"error_type":{"type":"string","description":"Routing or transaction rejection classification"},"next_action":{"type":"string"}}},"message":{"type":"string"}}},"id":{"oneOf":[{"type":"number"},{"type":"string"},{"type":"null"}]},"result":{},"jsonrpc":{"const":"2.0"},"lasso_meta":{"type":"object","description":"Present only for single requests when include_meta=body","properties":{"strategy":{"type":"string"},"candidate_providers":{"type":"array","items":{"type":"string"}},"chain_id":{"type":"integer"},"lasso_overhead_ms":{"type":"number"},"retries":{"type":"integer"},"selected_provider":{"type":"object","properties":{"id":{"type":"string"},"protocol":{"type":"string"}}},"upstream_latency_ms":{"type":"number"},"region":{"type":"string","description":"Serving node region"}}}}},{"type":"array","items":{"type":"object","required":["jsonrpc","id"],"properties":{"error":{"type":"object","properties":{"code":{"type":"integer"},"data":{"properties":{"code":{"type":"string"},"error_type":{"type":"string","description":"Routing or transaction rejection classification"},"next_action":{"type":"string"}}},"message":{"type":"string"}}},"id":{"oneOf":[{"type":"number"},{"type":"string"},{"type":"null"}]},"result":{},"jsonrpc":{"const":"2.0"}}}}]}}},"headers":{"x-lasso-access":{"description":"Serving access, fallback reason, request size in CU, or serving node region.","schema":{"type":"string","enum":["premium","public","custom"]}},"x-lasso-balance-usd":{"description":"Estimated balance after this charge on every access: the last settled balance less charges this server has not settled yet.","schema":{"type":"string"}},"x-lasso-balance-warning":{"schema":{"type":"string","enum":["true"]}},"x-lasso-cu":{"description":"Serving access, fallback reason, request size in CU, or serving node region.","schema":{"type":"string"}},"x-lasso-fallback":{"description":"Serving access, fallback reason, request size in CU, or serving node region.","schema":{"type":"string"}},"x-lasso-fallback-profile":{"description":"Profile that answered when routing left the named profile; a batch lists each such profile, comma-separated. The named profile's price applies.","schema":{"type":"string"}},"x-lasso-meta":{"description":"Base64url-encoded routing metadata when include_meta=headers. For batches, describes the first item with a routing context.","schema":{"type":"string"}},"x-lasso-profile":{"schema":{"type":"string"}},"x-lasso-rate-limit-burst":{"schema":{"type":"integer"}},"x-lasso-rate-limit-rps":{"schema":{"type":"integer"}},"x-lasso-rate-limit-scope":{"schema":{"type":"string"}},"x-lasso-region":{"description":"Serving access, fallback reason, request size in CU, or serving node region.","schema":{"type":"string"}},"x-lasso-request-id":{"schema":{"type":"string"}},"x-lasso-requested-strategy":{"description":"Explicit strategy requested in the URL, when present.","schema":{"type":"string"}},"x-lasso-strategy":{"description":"Applied strategy; Public applies load-balanced.","schema":{"type":"string"}},"x-lasso-usd":{"schema":{"type":"string"}}}},"402":{"description":"The account's balance or allowance is exhausted; POST to error.data.credit_url to credit the account or restore its allowance.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"const":-32000},"data":{"type":"object","properties":{"code":{"const":"balance_exhausted"},"next_action":{"type":"string"},"credit_url":{"type":"string","description":"Account credit endpoint; POST a credit exchange here.","example":"/api/v1/accounts/acc_example/credit"}}}}},"id":{"type":"null"},"jsonrpc":{"const":"2.0"}}}}}}},"x-error-codes":["balance_exhausted","timeout"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["jsonrpc","method"],"properties":{"id":{"description":"Omit for a notification","oneOf":[{"type":"number"},{"type":"string"},{"type":"null"}]},"params":{"oneOf":[{"type":"array"},{"type":"object"}]},"method":{"type":"string"},"jsonrpc":{"const":"2.0","type":"string"}}},{"type":"array","items":{"type":"object","required":["jsonrpc","method"],"properties":{"id":{"description":"Omit for a notification","oneOf":[{"type":"number"},{"type":"string"},{"type":"null"}]},"params":{"oneOf":[{"type":"array"},{"type":"object"}]},"method":{"type":"string"},"jsonrpc":{"const":"2.0","type":"string"}}},"maxItems":50,"minItems":1}]}}}}}},"/rpc/k/{key}/{strategy}/{chain}":{"post":{"description":"Standard EVM JSON-RPC 2.0. The strategy orders eligible providers; list them in /agent.json.","parameters":[{"in":"path","name":"key","description":"RPC key","required":true,"schema":{"type":"string"}},{"in":"path","name":"strategy","description":"Routing strategy. latency-weighted is accepted as an alias of balanced-fast.","required":true,"schema":{"type":"string","enum":["load-balanced","balanced-fast","latency-weighted","fastest","priority"]}},{"in":"path","name":"chain","description":"Chain name or ID. Coverage is per profile: choose an entry whose profiles in /agent.json chains includes the selected hosted profile.","required":true,"schema":{"type":"string"}},{"in":"query","name":"include_meta","description":"Opt into routing metadata in response bodies (body), including each routed batch item, or in x-lasso-meta (headers). A batch header describes the first item with a routing context.","required":false,"schema":{"type":"string","enum":["body","headers","none"]}}],"summary":"Execute a JSON-RPC call with a routing strategy","tags":["RPC"],"operationId":"rpcCallWithStrategy","responses":{"200":{"description":"JSON-RPC response. Unclaimed keys also get x-lasso-usd (this request's charge) and x-lasso-balance-usd (an estimate of the balance after it).","content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["jsonrpc","id"],"properties":{"error":{"type":"object","properties":{"code":{"type":"integer"},"data":{"properties":{"code":{"type":"string"},"error_type":{"type":"string","description":"Routing or transaction rejection classification"},"next_action":{"type":"string"}}},"message":{"type":"string"}}},"id":{"oneOf":[{"type":"number"},{"type":"string"},{"type":"null"}]},"result":{},"jsonrpc":{"const":"2.0"},"lasso_meta":{"type":"object","description":"Present only for single requests when include_meta=body","properties":{"strategy":{"type":"string"},"candidate_providers":{"type":"array","items":{"type":"string"}},"chain_id":{"type":"integer"},"lasso_overhead_ms":{"type":"number"},"retries":{"type":"integer"},"selected_provider":{"type":"object","properties":{"id":{"type":"string"},"protocol":{"type":"string"}}},"upstream_latency_ms":{"type":"number"},"region":{"type":"string","description":"Serving node region"}}}}},{"type":"array","items":{"type":"object","required":["jsonrpc","id"],"properties":{"error":{"type":"object","properties":{"code":{"type":"integer"},"data":{"properties":{"code":{"type":"string"},"error_type":{"type":"string","description":"Routing or transaction rejection classification"},"next_action":{"type":"string"}}},"message":{"type":"string"}}},"id":{"oneOf":[{"type":"number"},{"type":"string"},{"type":"null"}]},"result":{},"jsonrpc":{"const":"2.0"}}}}]}}},"headers":{"x-lasso-access":{"description":"Serving access, fallback reason, request size in CU, or serving node region.","schema":{"type":"string","enum":["premium","public","custom"]}},"x-lasso-balance-usd":{"description":"Estimated balance after this charge on every access: the last settled balance less charges this server has not settled yet.","schema":{"type":"string"}},"x-lasso-balance-warning":{"schema":{"type":"string","enum":["true"]}},"x-lasso-cu":{"description":"Serving access, fallback reason, request size in CU, or serving node region.","schema":{"type":"string"}},"x-lasso-fallback":{"description":"Serving access, fallback reason, request size in CU, or serving node region.","schema":{"type":"string"}},"x-lasso-fallback-profile":{"description":"Profile that answered when routing left the named profile; a batch lists each such profile, comma-separated. The named profile's price applies.","schema":{"type":"string"}},"x-lasso-meta":{"description":"Base64url-encoded routing metadata when include_meta=headers. For batches, describes the first item with a routing context.","schema":{"type":"string"}},"x-lasso-profile":{"schema":{"type":"string"}},"x-lasso-rate-limit-burst":{"schema":{"type":"integer"}},"x-lasso-rate-limit-rps":{"schema":{"type":"integer"}},"x-lasso-rate-limit-scope":{"schema":{"type":"string"}},"x-lasso-region":{"description":"Serving access, fallback reason, request size in CU, or serving node region.","schema":{"type":"string"}},"x-lasso-request-id":{"schema":{"type":"string"}},"x-lasso-requested-strategy":{"description":"Explicit strategy requested in the URL, when present.","schema":{"type":"string"}},"x-lasso-strategy":{"description":"Applied strategy; Public applies load-balanced.","schema":{"type":"string"}},"x-lasso-usd":{"schema":{"type":"string"}}}},"402":{"description":"The account's balance or allowance is exhausted; POST to error.data.credit_url to credit the account or restore its allowance.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"const":-32000},"data":{"type":"object","properties":{"code":{"const":"balance_exhausted"},"next_action":{"type":"string"},"credit_url":{"type":"string","description":"Account credit endpoint; POST a credit exchange here.","example":"/api/v1/accounts/acc_example/credit"}}}}},"id":{"type":"null"},"jsonrpc":{"const":"2.0"}}}}}}},"x-error-codes":["balance_exhausted","timeout"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["jsonrpc","method"],"properties":{"id":{"description":"Omit for a notification","oneOf":[{"type":"number"},{"type":"string"},{"type":"null"}]},"params":{"oneOf":[{"type":"array"},{"type":"object"}]},"method":{"type":"string"},"jsonrpc":{"const":"2.0","type":"string"}}},{"type":"array","items":{"type":"object","required":["jsonrpc","method"],"properties":{"id":{"description":"Omit for a notification","oneOf":[{"type":"number"},{"type":"string"},{"type":"null"}]},"params":{"oneOf":[{"type":"array"},{"type":"object"}]},"method":{"type":"string"},"jsonrpc":{"const":"2.0","type":"string"}}},"maxItems":50,"minItems":1}]}}}}}},"/streams/k/{key}/{chain}/blocks":{"get":{"description":"Allowlisted beta. Authenticate with an enabled account RPC key in the path, not a\nmanagement token. No RPC profile or strategy segments. from is the one position:\nlatest, a decimal block number, or the next value of any page. Every 200 is one\npage, and every page is applied in one transaction: delete this source's rows where\nblock_number >= page.from; insert page.items; save page.next. Then request again\nwith from=<page.next>. A position the stream has not reached yet answers after wait\nwith items: [], through: null and next equal to the request's from, unchanged;\napplying it is a no-op. Corrections use the same rule and carry reorg: true, which\nthe apply rule never reads. Pages contain complete blocks and may rewind below the\nconsumer's start. An omitted from is a 400, never the tip, and cursor= is a 400\nnaming from.\nA history read that cannot verify a page answers 503 chain_unavailable; retry the\nsame from after Retry-After.\nSSE pages have no event field (default message), with id: next and data: JSON page,\nincluding empty pages. Last-Event-ID is parsed as from (a number or a next, never\nlatest) and wins over the from query parameter. Subsequent quiet SSE waits have a\none-second minimum. label is a display name only: it changes neither the source,\nposition nor billing identity. Passive dashboard board samples are free; reads over\nthis public URL, including the Test reader, are billable; pages with no items are free.\nRetry incomplete HTTP/JSON pages without applying them. Keep database/apply failures\nfatal. On 503 chain_unavailable retry the same from after Retry-After; reason names\nthe cause, including cold_start when a read above finalized finds a stopped or\nunseeded feed after wait. The feed is started idempotently; retry using Retry-After.\nFinalized history can serve while the live window seeds.\nRefusals do not advance the position. Rebuild this source from your own start block\non resync_required/409. Stop for unauthorized/401, account_closed/401, balance_exhausted/402 and\nnot_entitled/403; fund, then resume with the saved from. Close on apply failure.\nError control events carry no id and close the connection. A 402 control event\ncarries the same credit action/challenges as pull, with retry: 60000. Before the\nfirst page, errors use HTTP status and JSON even when SSE was requested. Other\nerrors use {error: code, ...details}; 402 nests code, message, challenges, credit\nand next_action inside error. HTTP 503 always includes Retry-After (1–30 seconds);\nmanaged-bucket 429 can include it. The node in-flight request cap returns 429\ntoo_many_readers with reason node_capacity and Retry-After: 5; the per-key\nreader limit also returns too_many_readers. Successful pages\ncarry no Retry-After. Pages span at most 10,000 whole blocks and respect item-byte\nboundaries. Keep the highest finalized mark across lower/null marks and restarts to\ngate outbox effects.\n","parameters":[{"in":"path","name":"key","description":"Secret account RPC key; keep the URL private.","required":true,"schema":{"type":"string"}},{"in":"path","name":"chain","description":"RPC chain name or numeric chain ID.","required":true,"schema":{"type":"string"}},{"in":"query","name":"from","description":"Required. latest, an unsigned 64-bit decimal block number, or the next value of any page. An unreached position answers items: [] with next equal to this from.","required":true,"schema":{"type":"string","maxLength":512}},{"in":"query","name":"wait","description":"Maximum wait in seconds.","required":false,"schema":{"default":20,"maximum":30,"type":"integer","minimum":0}},{"in":"query","name":"label","description":"Display name shown on the dashboard; changes nothing else.","required":false,"schema":{"type":"string","maxLength":100,"minLength":1}},{"in":"header","name":"Last-Event-ID","description":"SSE reconnect position, parsed as from (a number or a next, never latest); wins over from.","required":false,"schema":{"type":"string","maxLength":512}},{"in":"header","name":"Accept","description":"Select pull or SSE.","required":false,"schema":{"type":"string","enum":["application/json","text/event-stream"]}}],"summary":"Read ordered, reorg-safe blocks","tags":["Streams (beta)"],"operationId":"readStreamsBlocks","responses":{"200":{"description":"One page for pull, or an SSE sequence of page events; never 204.","content":{"application/json":{"schema":{"type":"object","required":["from","through","tip","safe","finalized","next","items"],"properties":{"safe":{"anyOf":[{"type":"object","required":["number","hash"],"properties":{"number":{"type":"integer","minimum":0},"hash":{"type":"string"}}},{"type":"null"}]},"next":{"type":"string","description":"The from for your next request. Equal to the request's from when nothing was reached."},"items":{"type":"array","items":{"type":"object","description":"Standard JSON-RPC block header, with hex quantities and no transaction, uncle or withdrawal lists."}},"from":{"type":"integer","minimum":0},"through":{"anyOf":[{"type":"object","required":["number","hash"],"properties":{"number":{"type":"integer","minimum":0},"hash":{"type":"string"}}},{"type":"null"}]},"reorg":{"const":true,"type":"boolean","description":"Present only on correction pages; the apply rule never reads it."},"finalized":{"anyOf":[{"type":"object","required":["number","hash"],"properties":{"number":{"type":"integer","minimum":0},"hash":{"type":"string"}}},{"type":"null"}]},"tip":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]}}}},"text/event-stream":{"schema":{"type":"string"},"example":"id: c1.…\ndata: {\"safe\":null,\"next\":\"c1.…\",\"items\":[],\"from\":42,\"through\":{\"number\":42,\"hash\":\"0x…\"},\"finalized\":null,\"tip\":42}\n\nevent: error\ndata: {\"error\":\"chain_unavailable\"}\n\n","x-sse-events":{"error":{"description":"Error control without an id, then close. Retry chain_unavailable with the saved from; rebuild on resync_required; stop for unauthorized, account_closed, balance_exhausted and not_entitled. 402 adds retry: 60000.","schema":{"anyOf":[{"$ref":"#/components/schemas/StreamsReadError"},{"$ref":"#/components/schemas/StreamsExhaustion"}]}},"message":{"description":"No event field; default message event. id is the page's next.","schema":{"type":"object","required":["from","through","tip","safe","finalized","next","items"],"properties":{"safe":{"anyOf":[{"type":"object","required":["number","hash"],"properties":{"number":{"type":"integer","minimum":0},"hash":{"type":"string"}}},{"type":"null"}]},"next":{"type":"string","description":"The from for your next request. Equal to the request's from when nothing was reached."},"items":{"type":"array","items":{"type":"object","description":"Standard JSON-RPC block header, with hex quantities and no transaction, uncle or withdrawal lists."}},"from":{"type":"integer","minimum":0},"through":{"anyOf":[{"type":"object","required":["number","hash"],"properties":{"number":{"type":"integer","minimum":0},"hash":{"type":"string"}}},{"type":"null"}]},"reorg":{"const":true,"type":"boolean","description":"Present only on correction pages; the apply rule never reads it."},"finalized":{"anyOf":[{"type":"object","required":["number","hash"],"properties":{"number":{"type":"integer","minimum":0},"hash":{"type":"string"}}},{"type":"null"}]},"tip":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]}}}}}}},"headers":{"Cache-Control":{"schema":{"const":"no-store","type":"string"}},"X-Accel-Buffering":{"schema":{"const":"no","type":"string"}}}},"307":{"description":"Temporary handoff; retry using the same endpoint."},"400":{"description":"invalid_parameter","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string","enum":["invalid_parameter"]},"reason":{"type":"string","description":"The cause. On 429 too_many_readers, node_capacity means 300 in-flight Streams requests are already admitted; retry after five seconds. On 429 rate_limit_exceeded, busy means the account or node distinct-stream limit was reached. On 503 chain_unavailable: chain_unavailable, cold_start, canonical_window, anchor_pending, worker_down, caller_abandoned, provider_disagreement, wrong_block, invalid_header, invalid_logs, block_volume or result_volume, or an upstream error category with provider and code fields.","examples":["node_capacity","busy","cold_start","canonical_window","anchor_pending","worker_down"]},"anchor":{"type":"object","required":["number","hash"],"properties":{"number":{"type":"integer","minimum":0},"hash":{"type":"string"}}},"expected_source":{"type":"string"}}}}},"headers":{"Cache-Control":{"schema":{"const":"no-store","type":"string"}},"X-Accel-Buffering":{"schema":{"const":"no","type":"string"}}}},"401":{"description":"unauthorized, account_closed","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string","enum":["unauthorized","account_closed"]},"reason":{"type":"string","description":"The cause. On 429 too_many_readers, node_capacity means 300 in-flight Streams requests are already admitted; retry after five seconds. On 429 rate_limit_exceeded, busy means the account or node distinct-stream limit was reached. On 503 chain_unavailable: chain_unavailable, cold_start, canonical_window, anchor_pending, worker_down, caller_abandoned, provider_disagreement, wrong_block, invalid_header, invalid_logs, block_volume or result_volume, or an upstream error category with provider and code fields.","examples":["node_capacity","busy","cold_start","canonical_window","anchor_pending","worker_down"]},"anchor":{"type":"object","required":["number","hash"],"properties":{"number":{"type":"integer","minimum":0},"hash":{"type":"string"}}},"expected_source":{"type":"string"}}}}},"headers":{"Cache-Control":{"schema":{"const":"no-store","type":"string"}},"X-Accel-Buffering":{"schema":{"const":"no","type":"string"}}}},"402":{"description":"balance_exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StreamsExhaustion"}}},"headers":{"Cache-Control":{"schema":{"const":"no-store","type":"string"}},"payment-required":{"description":"x402 challenge when available.","schema":{"type":"string"}},"www-authenticate":{"description":"MPP challenge when available.","schema":{"type":"string"}}}},"403":{"description":"not_entitled","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string","enum":["not_entitled"]},"reason":{"type":"string","description":"The cause. On 429 too_many_readers, node_capacity means 300 in-flight Streams requests are already admitted; retry after five seconds. On 429 rate_limit_exceeded, busy means the account or node distinct-stream limit was reached. On 503 chain_unavailable: chain_unavailable, cold_start, canonical_window, anchor_pending, worker_down, caller_abandoned, provider_disagreement, wrong_block, invalid_header, invalid_logs, block_volume or result_volume, or an upstream error category with provider and code fields.","examples":["node_capacity","busy","cold_start","canonical_window","anchor_pending","worker_down"]},"anchor":{"type":"object","required":["number","hash"],"properties":{"number":{"type":"integer","minimum":0},"hash":{"type":"string"}}},"expected_source":{"type":"string"}}}}},"headers":{"Cache-Control":{"schema":{"const":"no-store","type":"string"}},"X-Accel-Buffering":{"schema":{"const":"no","type":"string"}}}},"404":{"description":"chain_not_served","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string","enum":["chain_not_served"]},"reason":{"type":"string","description":"The cause. On 429 too_many_readers, node_capacity means 300 in-flight Streams requests are already admitted; retry after five seconds. On 429 rate_limit_exceeded, busy means the account or node distinct-stream limit was reached. On 503 chain_unavailable: chain_unavailable, cold_start, canonical_window, anchor_pending, worker_down, caller_abandoned, provider_disagreement, wrong_block, invalid_header, invalid_logs, block_volume or result_volume, or an upstream error category with provider and code fields.","examples":["node_capacity","busy","cold_start","canonical_window","anchor_pending","worker_down"]},"anchor":{"type":"object","required":["number","hash"],"properties":{"number":{"type":"integer","minimum":0},"hash":{"type":"string"}}},"expected_source":{"type":"string"}}}}},"headers":{"Cache-Control":{"schema":{"const":"no-store","type":"string"}},"X-Accel-Buffering":{"schema":{"const":"no","type":"string"}}}},"409":{"description":"resync_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string","enum":["resync_required"]},"reason":{"type":"string","description":"The cause. On 429 too_many_readers, node_capacity means 300 in-flight Streams requests are already admitted; retry after five seconds. On 429 rate_limit_exceeded, busy means the account or node distinct-stream limit was reached. On 503 chain_unavailable: chain_unavailable, cold_start, canonical_window, anchor_pending, worker_down, caller_abandoned, provider_disagreement, wrong_block, invalid_header, invalid_logs, block_volume or result_volume, or an upstream error category with provider and code fields.","examples":["node_capacity","busy","cold_start","canonical_window","anchor_pending","worker_down"]},"anchor":{"type":"object","required":["number","hash"],"properties":{"number":{"type":"integer","minimum":0},"hash":{"type":"string"}}},"expected_source":{"type":"string"}}}}},"headers":{"Cache-Control":{"schema":{"const":"no-store","type":"string"}},"X-Accel-Buffering":{"schema":{"const":"no","type":"string"}}}},"429":{"description":"too_many_readers, rate_limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string","enum":["too_many_readers","rate_limit_exceeded"]},"reason":{"type":"string","description":"The cause. On 429 too_many_readers, node_capacity means 300 in-flight Streams requests are already admitted; retry after five seconds. On 429 rate_limit_exceeded, busy means the account or node distinct-stream limit was reached. On 503 chain_unavailable: chain_unavailable, cold_start, canonical_window, anchor_pending, worker_down, caller_abandoned, provider_disagreement, wrong_block, invalid_header, invalid_logs, block_volume or result_volume, or an upstream error category with provider and code fields.","examples":["node_capacity","busy","cold_start","canonical_window","anchor_pending","worker_down"]},"anchor":{"type":"object","required":["number","hash"],"properties":{"number":{"type":"integer","minimum":0},"hash":{"type":"string"}}},"expected_source":{"type":"string"}}}}},"headers":{"Cache-Control":{"schema":{"const":"no-store","type":"string"}},"Retry-After":{"description":"Always 1–30 seconds on 503; 5 seconds on node_capacity 429; optional on managed-bucket 429.","schema":{"type":"string","pattern":"^[0-9]+$"}},"X-Accel-Buffering":{"schema":{"const":"no","type":"string"}}}},"503":{"description":"chain_unavailable","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string","enum":["chain_unavailable"]},"reason":{"type":"string","description":"The cause. On 429 too_many_readers, node_capacity means 300 in-flight Streams requests are already admitted; retry after five seconds. On 429 rate_limit_exceeded, busy means the account or node distinct-stream limit was reached. On 503 chain_unavailable: chain_unavailable, cold_start, canonical_window, anchor_pending, worker_down, caller_abandoned, provider_disagreement, wrong_block, invalid_header, invalid_logs, block_volume or result_volume, or an upstream error category with provider and code fields.","examples":["node_capacity","busy","cold_start","canonical_window","anchor_pending","worker_down"]},"anchor":{"type":"object","required":["number","hash"],"properties":{"number":{"type":"integer","minimum":0},"hash":{"type":"string"}}},"expected_source":{"type":"string"}}}}},"headers":{"Cache-Control":{"schema":{"const":"no-store","type":"string"}},"Retry-After":{"description":"Always 1–30 seconds on 503; 5 seconds on node_capacity 429; optional on managed-bucket 429.","schema":{"type":"string","pattern":"^[0-9]+$"}},"X-Accel-Buffering":{"schema":{"const":"no","type":"string"}}}}},"security":[],"x-streams-beta":true,"x-auth":{"type":"path_api_key","parameter":"key"},"x-streams-contract":"page-v1"}},"/streams/k/{key}/{chain}/logs":{"get":{"description":"Allowlisted beta. Authenticate with an enabled account RPC key in the path, not a\nmanagement token. No RPC profile or strategy segments. from is the one position:\nlatest, a decimal block number, or the next value of any page. Every 200 is one\npage, and every page is applied in one transaction: delete this source's rows where\nblock_number >= page.from; insert page.items; save page.next. Then request again\nwith from=<page.next>. A position the stream has not reached yet answers after wait\nwith items: [], through: null and next equal to the request's from, unchanged;\napplying it is a no-op. Corrections use the same rule and carry reorg: true, which\nthe apply rule never reads. Pages contain complete blocks and may rewind below the\nconsumer's start. An omitted from is a 400, never the tip, and cursor= is a 400\nnaming from.\nA history read that cannot verify a page answers 503 chain_unavailable; retry the\nsame from after Retry-After.\nSSE pages have no event field (default message), with id: next and data: JSON page,\nincluding empty pages. Last-Event-ID is parsed as from (a number or a next, never\nlatest) and wins over the from query parameter. Subsequent quiet SSE waits have a\none-second minimum. label is a display name only: it changes neither the source,\nposition nor billing identity. Passive dashboard board samples are free; reads over\nthis public URL, including the Test reader, are billable; pages with no items are free.\nRetry incomplete HTTP/JSON pages without applying them. Keep database/apply failures\nfatal. On 503 chain_unavailable retry the same from after Retry-After; reason names\nthe cause, including cold_start when a read above finalized finds a stopped or\nunseeded feed after wait. The feed is started idempotently; retry using Retry-After.\nFinalized history can serve while the live window seeds.\nRefusals do not advance the position. Rebuild this source from your own start block\non resync_required/409. Stop for unauthorized/401, account_closed/401, balance_exhausted/402 and\nnot_entitled/403; fund, then resume with the saved from. Close on apply failure.\nError control events carry no id and close the connection. A 402 control event\ncarries the same credit action/challenges as pull, with retry: 60000. Before the\nfirst page, errors use HTTP status and JSON even when SSE was requested. Other\nerrors use {error: code, ...details}; 402 nests code, message, challenges, credit\nand next_action inside error. HTTP 503 always includes Retry-After (1–30 seconds);\nmanaged-bucket 429 can include it. The node in-flight request cap returns 429\ntoo_many_readers with reason node_capacity and Retry-After: 5; the per-key\nreader limit also returns too_many_readers. Successful pages\ncarry no Retry-After. Pages span at most 10,000 whole blocks and respect item-byte\nboundaries. Keep the highest finalized mark across lower/null marks and restarts to\ngate outbox effects.\n","parameters":[{"in":"path","name":"key","description":"Secret account RPC key; keep the URL private.","required":true,"schema":{"type":"string"}},{"in":"path","name":"chain","description":"RPC chain name or numeric chain ID.","required":true,"schema":{"type":"string"}},{"in":"query","name":"from","description":"Required. latest, an unsigned 64-bit decimal block number, or the next value of any page. An unreached position answers items: [] with next equal to this from.","required":true,"schema":{"type":"string","maxLength":512}},{"in":"query","name":"wait","description":"Maximum wait in seconds.","required":false,"schema":{"default":20,"maximum":30,"type":"integer","minimum":0}},{"in":"query","name":"label","description":"Display name shown on the dashboard; changes nothing else.","required":false,"schema":{"type":"string","maxLength":100,"minLength":1}},{"in":"header","name":"Last-Event-ID","description":"SSE reconnect position, parsed as from (a number or a next, never latest); wins over from.","required":false,"schema":{"type":"string","maxLength":512}},{"in":"header","name":"Accept","description":"Select pull or SSE.","required":false,"schema":{"type":"string","enum":["application/json","text/event-stream"]}},{"in":"query","name":"address","description":"Comma-separated OR alternatives; topic positions are ANDed. At most 100 addresses.","required":false,"schema":{"type":"string"}},{"in":"query","name":"topic0","description":"Comma-separated OR alternatives; topic positions are ANDed. At most 100 addresses.","required":false,"schema":{"type":"string"}},{"in":"query","name":"topic1","description":"Comma-separated OR alternatives; topic positions are ANDed. At most 100 addresses.","required":false,"schema":{"type":"string"}},{"in":"query","name":"topic2","description":"Comma-separated OR alternatives; topic positions are ANDed. At most 100 addresses.","required":false,"schema":{"type":"string"}},{"in":"query","name":"topic3","description":"Comma-separated OR alternatives; topic positions are ANDed. At most 100 addresses.","required":false,"schema":{"type":"string"}}],"summary":"Read ordered, reorg-safe logs","tags":["Streams (beta)"],"operationId":"readStreamsLogs","responses":{"200":{"description":"One page for pull, or an SSE sequence of page events; never 204.","content":{"application/json":{"schema":{"type":"object","required":["from","through","tip","safe","finalized","next","items"],"properties":{"safe":{"anyOf":[{"type":"object","required":["number","hash"],"properties":{"number":{"type":"integer","minimum":0},"hash":{"type":"string"}}},{"type":"null"}]},"next":{"type":"string","description":"The from for your next request. Equal to the request's from when nothing was reached."},"items":{"type":"array","items":{"type":"object","description":"Standard eth_getLogs object plus blockTimestamp, without removed; quantities are hex."}},"from":{"type":"integer","minimum":0},"through":{"anyOf":[{"type":"object","required":["number","hash"],"properties":{"number":{"type":"integer","minimum":0},"hash":{"type":"string"}}},{"type":"null"}]},"reorg":{"const":true,"type":"boolean","description":"Present only on correction pages; the apply rule never reads it."},"finalized":{"anyOf":[{"type":"object","required":["number","hash"],"properties":{"number":{"type":"integer","minimum":0},"hash":{"type":"string"}}},{"type":"null"}]},"tip":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]}}}},"text/event-stream":{"schema":{"type":"string"},"example":"id: c1.…\ndata: {\"safe\":null,\"next\":\"c1.…\",\"items\":[],\"from\":42,\"through\":{\"number\":42,\"hash\":\"0x…\"},\"finalized\":null,\"tip\":42}\n\nevent: error\ndata: {\"error\":\"chain_unavailable\"}\n\n","x-sse-events":{"error":{"description":"Error control without an id, then close. Retry chain_unavailable with the saved from; rebuild on resync_required; stop for unauthorized, account_closed, balance_exhausted and not_entitled. 402 adds retry: 60000.","schema":{"anyOf":[{"$ref":"#/components/schemas/StreamsReadError"},{"$ref":"#/components/schemas/StreamsExhaustion"}]}},"message":{"description":"No event field; default message event. id is the page's next.","schema":{"type":"object","required":["from","through","tip","safe","finalized","next","items"],"properties":{"safe":{"anyOf":[{"type":"object","required":["number","hash"],"properties":{"number":{"type":"integer","minimum":0},"hash":{"type":"string"}}},{"type":"null"}]},"next":{"type":"string","description":"The from for your next request. Equal to the request's from when nothing was reached."},"items":{"type":"array","items":{"type":"object","description":"Standard eth_getLogs object plus blockTimestamp, without removed; quantities are hex."}},"from":{"type":"integer","minimum":0},"through":{"anyOf":[{"type":"object","required":["number","hash"],"properties":{"number":{"type":"integer","minimum":0},"hash":{"type":"string"}}},{"type":"null"}]},"reorg":{"const":true,"type":"boolean","description":"Present only on correction pages; the apply rule never reads it."},"finalized":{"anyOf":[{"type":"object","required":["number","hash"],"properties":{"number":{"type":"integer","minimum":0},"hash":{"type":"string"}}},{"type":"null"}]},"tip":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]}}}}}}},"headers":{"Cache-Control":{"schema":{"const":"no-store","type":"string"}},"X-Accel-Buffering":{"schema":{"const":"no","type":"string"}}}},"307":{"description":"Temporary handoff; retry using the same endpoint."},"400":{"description":"invalid_parameter","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string","enum":["invalid_parameter"]},"reason":{"type":"string","description":"The cause. On 429 too_many_readers, node_capacity means 300 in-flight Streams requests are already admitted; retry after five seconds. On 429 rate_limit_exceeded, busy means the account or node distinct-stream limit was reached. On 503 chain_unavailable: chain_unavailable, cold_start, canonical_window, anchor_pending, worker_down, caller_abandoned, provider_disagreement, wrong_block, invalid_header, invalid_logs, block_volume or result_volume, or an upstream error category with provider and code fields.","examples":["node_capacity","busy","cold_start","canonical_window","anchor_pending","worker_down"]},"anchor":{"type":"object","required":["number","hash"],"properties":{"number":{"type":"integer","minimum":0},"hash":{"type":"string"}}},"expected_source":{"type":"string"}}}}},"headers":{"Cache-Control":{"schema":{"const":"no-store","type":"string"}},"X-Accel-Buffering":{"schema":{"const":"no","type":"string"}}}},"401":{"description":"unauthorized, account_closed","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string","enum":["unauthorized","account_closed"]},"reason":{"type":"string","description":"The cause. On 429 too_many_readers, node_capacity means 300 in-flight Streams requests are already admitted; retry after five seconds. On 429 rate_limit_exceeded, busy means the account or node distinct-stream limit was reached. On 503 chain_unavailable: chain_unavailable, cold_start, canonical_window, anchor_pending, worker_down, caller_abandoned, provider_disagreement, wrong_block, invalid_header, invalid_logs, block_volume or result_volume, or an upstream error category with provider and code fields.","examples":["node_capacity","busy","cold_start","canonical_window","anchor_pending","worker_down"]},"anchor":{"type":"object","required":["number","hash"],"properties":{"number":{"type":"integer","minimum":0},"hash":{"type":"string"}}},"expected_source":{"type":"string"}}}}},"headers":{"Cache-Control":{"schema":{"const":"no-store","type":"string"}},"X-Accel-Buffering":{"schema":{"const":"no","type":"string"}}}},"402":{"description":"balance_exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StreamsExhaustion"}}},"headers":{"Cache-Control":{"schema":{"const":"no-store","type":"string"}},"payment-required":{"description":"x402 challenge when available.","schema":{"type":"string"}},"www-authenticate":{"description":"MPP challenge when available.","schema":{"type":"string"}}}},"403":{"description":"not_entitled","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string","enum":["not_entitled"]},"reason":{"type":"string","description":"The cause. On 429 too_many_readers, node_capacity means 300 in-flight Streams requests are already admitted; retry after five seconds. On 429 rate_limit_exceeded, busy means the account or node distinct-stream limit was reached. On 503 chain_unavailable: chain_unavailable, cold_start, canonical_window, anchor_pending, worker_down, caller_abandoned, provider_disagreement, wrong_block, invalid_header, invalid_logs, block_volume or result_volume, or an upstream error category with provider and code fields.","examples":["node_capacity","busy","cold_start","canonical_window","anchor_pending","worker_down"]},"anchor":{"type":"object","required":["number","hash"],"properties":{"number":{"type":"integer","minimum":0},"hash":{"type":"string"}}},"expected_source":{"type":"string"}}}}},"headers":{"Cache-Control":{"schema":{"const":"no-store","type":"string"}},"X-Accel-Buffering":{"schema":{"const":"no","type":"string"}}}},"404":{"description":"chain_not_served","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string","enum":["chain_not_served"]},"reason":{"type":"string","description":"The cause. On 429 too_many_readers, node_capacity means 300 in-flight Streams requests are already admitted; retry after five seconds. On 429 rate_limit_exceeded, busy means the account or node distinct-stream limit was reached. On 503 chain_unavailable: chain_unavailable, cold_start, canonical_window, anchor_pending, worker_down, caller_abandoned, provider_disagreement, wrong_block, invalid_header, invalid_logs, block_volume or result_volume, or an upstream error category with provider and code fields.","examples":["node_capacity","busy","cold_start","canonical_window","anchor_pending","worker_down"]},"anchor":{"type":"object","required":["number","hash"],"properties":{"number":{"type":"integer","minimum":0},"hash":{"type":"string"}}},"expected_source":{"type":"string"}}}}},"headers":{"Cache-Control":{"schema":{"const":"no-store","type":"string"}},"X-Accel-Buffering":{"schema":{"const":"no","type":"string"}}}},"409":{"description":"resync_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string","enum":["resync_required"]},"reason":{"type":"string","description":"The cause. On 429 too_many_readers, node_capacity means 300 in-flight Streams requests are already admitted; retry after five seconds. On 429 rate_limit_exceeded, busy means the account or node distinct-stream limit was reached. On 503 chain_unavailable: chain_unavailable, cold_start, canonical_window, anchor_pending, worker_down, caller_abandoned, provider_disagreement, wrong_block, invalid_header, invalid_logs, block_volume or result_volume, or an upstream error category with provider and code fields.","examples":["node_capacity","busy","cold_start","canonical_window","anchor_pending","worker_down"]},"anchor":{"type":"object","required":["number","hash"],"properties":{"number":{"type":"integer","minimum":0},"hash":{"type":"string"}}},"expected_source":{"type":"string"}}}}},"headers":{"Cache-Control":{"schema":{"const":"no-store","type":"string"}},"X-Accel-Buffering":{"schema":{"const":"no","type":"string"}}}},"429":{"description":"too_many_readers, rate_limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string","enum":["too_many_readers","rate_limit_exceeded"]},"reason":{"type":"string","description":"The cause. On 429 too_many_readers, node_capacity means 300 in-flight Streams requests are already admitted; retry after five seconds. On 429 rate_limit_exceeded, busy means the account or node distinct-stream limit was reached. On 503 chain_unavailable: chain_unavailable, cold_start, canonical_window, anchor_pending, worker_down, caller_abandoned, provider_disagreement, wrong_block, invalid_header, invalid_logs, block_volume or result_volume, or an upstream error category with provider and code fields.","examples":["node_capacity","busy","cold_start","canonical_window","anchor_pending","worker_down"]},"anchor":{"type":"object","required":["number","hash"],"properties":{"number":{"type":"integer","minimum":0},"hash":{"type":"string"}}},"expected_source":{"type":"string"}}}}},"headers":{"Cache-Control":{"schema":{"const":"no-store","type":"string"}},"Retry-After":{"description":"Always 1–30 seconds on 503; 5 seconds on node_capacity 429; optional on managed-bucket 429.","schema":{"type":"string","pattern":"^[0-9]+$"}},"X-Accel-Buffering":{"schema":{"const":"no","type":"string"}}}},"503":{"description":"chain_unavailable","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string","enum":["chain_unavailable"]},"reason":{"type":"string","description":"The cause. On 429 too_many_readers, node_capacity means 300 in-flight Streams requests are already admitted; retry after five seconds. On 429 rate_limit_exceeded, busy means the account or node distinct-stream limit was reached. On 503 chain_unavailable: chain_unavailable, cold_start, canonical_window, anchor_pending, worker_down, caller_abandoned, provider_disagreement, wrong_block, invalid_header, invalid_logs, block_volume or result_volume, or an upstream error category with provider and code fields.","examples":["node_capacity","busy","cold_start","canonical_window","anchor_pending","worker_down"]},"anchor":{"type":"object","required":["number","hash"],"properties":{"number":{"type":"integer","minimum":0},"hash":{"type":"string"}}},"expected_source":{"type":"string"}}}}},"headers":{"Cache-Control":{"schema":{"const":"no-store","type":"string"}},"Retry-After":{"description":"Always 1–30 seconds on 503; 5 seconds on node_capacity 429; optional on managed-bucket 429.","schema":{"type":"string","pattern":"^[0-9]+$"}},"X-Accel-Buffering":{"schema":{"const":"no","type":"string"}}}}},"security":[],"x-streams-beta":true,"x-auth":{"type":"path_api_key","parameter":"key"},"x-streams-contract":"page-v1"}}},"tags":[{"name":"Keys","description":"RPC keys, and the purchases that fund them and their account."},{"name":"Accounts","description":"Balance, access, limits and handoff to a person."},{"name":"Agents","description":"Management tokens and the agents that hold them."},{"name":"Connections","description":"Requests to join an account that already exists."},{"name":"Profiles","description":"Custom profiles over your own providers and nodes."},{"name":"Streams (beta)","description":"Ordered, reorg-safe contract events."},{"name":"RPC","description":"JSON-RPC over a key's URL."},{"name":"Feedback","description":"Reports to Lasso's operators."}],"openapi":"3.1.0","x-account-custom-access":{"days":{"maximum":30,"minimum":1},"day_usd":"1.3"},"x-profile-url-grammar":"<base>[/profile/<slug>][/<strategy>]/<chain>","x-serving-generation":1,"x-streams":{"access":"allowlisted_accounts","apply":["delete source rows >= page.from","insert page.items","save page.next"],"status":"beta","sources":["logs","blocks"],"limits":{"concurrent_readers":10,"distinct_streams_per_account":10,"saved_streams":100},"transports":["pull","sse"],"url_template":"https://lasso.sh/streams/k/{key}/{chain}/{source}","pricing":{"free":["empty_pages","errors","keepalives","blocks_scanned"],"unit":"USD nanodollars","tariff_version":"streams-2026-10-22-v1","counts":["live","history","replay","reorg_correction","block_header"],"minimum_nanos":100000000,"event_nanos":100,"effective_on":"2026-10-22","funding":"account_wallet_without_RPC_allowance","minimum_scope":"account_UTC_day"},"apply_transaction":true,"guide":"https://lasso.sh/SKILL.md#streams-ordered-contract-events-allowlisted-beta"},"x-account-usage":"A key's usage and recent_errors cover its requests over the rolling last 24 hours, and charged_usd sums their charges; a request shows up as soon as its response is sent. They are diagnostics, not a billing ledger: the account's balance is the record of money, and charges reach it in the background, normally within a minute.","x-error-catalog":{"rpc":[{"code":"rpc_route_required","message":"Choose a chain before making an RPC call.","status":422,"retryable":false,"next_action":"Add /<chain> or /<strategy>/<chain> to the RPC URL; use /agent.json for chains and strategies."},{"code":"account_closed","message":"Account closed","status":401,"retryable":false,"next_action":"The provisional account closed after it sat idle without payment or usage. Create a new key with POST /api/v1/keys."},{"code":"balance_exhausted","message":"Account balance exhausted","status":402,"retryable":false,"next_action":"Credit the account or restore its allowance."},{"code":"batch_too_large","message":"Invalid Request: batch too large","status":400,"retryable":false,"next_action":"Send at most 50 items per batch."},{"code":"custom_access_expired","message":"Custom profile access expired","status":402,"retryable":false,"next_action":"The profile's configuration is saved. Its owner buys Custom days with POST /api/v1/accounts/{id}/custom-access or subscribes at https://lasso.sh/pricing, then retries."},{"code":"empty_batch","message":"Invalid Request: batch must not be empty","status":400,"retryable":false,"next_action":"Send at least one JSON-RPC request."},{"code":"forbidden","message":"Profile is outside this key's scope","status":403,"retryable":false,"next_action":"Use an allowed profile."},{"code":"historical_depth","message":null,"status":200,"retryable":false,"next_action":"Use a recent block or add an archive-capable provider.","replay_safe_action":"Use a recent block or add an archive-capable provider.","retry_action":null},{"code":"indeterminate_dispatch","message":null,"status":200,"retryable":false,"next_action":"Check whether the request was applied, such as whether a transaction landed, before sending it again.","replay_safe_action":"Report it with its request ID if it keeps happening.","retry_action":null},{"code":"inexact_price","message":"Tariff is not ready","status":503,"retryable":true,"next_action":"Retry shortly; report persistent tariff failures with the request ID."},{"code":"internal_error","message":"Internal serving error","status":500,"retryable":false,"next_action":"Report this failure with its request ID."},{"code":"invalid_field","message":"Invalid RPC route","status":400,"retryable":false,"next_action":"Use /profile/<slug>/<strategy>/<chain> or /<chain>."},{"code":"invalid_observation","message":"Invalid serving observation","status":500,"retryable":false,"next_action":"Report this failure with its request ID."},{"code":"invalid_params","message":null,"status":200,"retryable":false,"next_action":"Fix the request parameters.","replay_safe_action":"Fix the request parameters.","retry_action":null},{"code":"invalid_request","message":null,"status":200,"retryable":false,"next_action":"Send a bounded JSON-RPC envelope."},{"code":"invalid_request","message":"Invalid Request","status":400,"retryable":false,"next_action":"Send a bounded JSON-RPC envelope."},{"code":"key_revoked","message":"RPC key revoked or expired","status":401,"retryable":false,"next_action":"Use the current key."},{"code":"local_capacity_rejection","message":null,"status":200,"retryable":null,"next_action":"Reduce the request size. Check whether the request was applied, such as whether a transaction landed, before sending it again.","replay_safe_action":"Reduce the request size.","retry_action":"Reduce the request size or concurrency, then retry."},{"code":"log_filter_refused","message":null,"status":200,"retryable":false,"next_action":"Add an address filter.","replay_safe_action":"Add an address filter.","retry_action":null},{"code":"log_range_limit","message":"query exceeds max results: eth_getLogs response is too big for one request; reduce the block range","status":200,"retryable":false,"next_action":"Reduce the eth_getLogs block range and retry.","replay_safe_action":"Reduce the eth_getLogs block range and retry.","retry_action":null},{"code":"method_not_found","message":null,"status":200,"retryable":false,"next_action":"Use a method Lasso serves; see /agent.json.","replay_safe_action":"Use a method Lasso serves; see /agent.json.","retry_action":null},{"code":"no_enabled_providers","message":"This chain has no enabled providers in this profile","status":400,"retryable":false,"next_action":"Turn on a provider in this profile or use another chain."},{"code":"not_prepared","message":"Service unavailable","status":503,"retryable":true,"next_action":"Retry shortly."},{"code":"profile_config_unavailable","message":"Profile configuration is not ready","status":503,"retryable":true,"next_action":"Retry shortly. For a Custom profile, have its owner check GET /api/v1/profiles/{slug} and follow its activation guidance; live, off, and partial are completed states, and only enabled ready chains serve."},{"code":"provider_error","message":null,"status":200,"retryable":null,"next_action":"Check whether the request was applied, such as whether a transaction landed, before sending it again.","zero_dispatch_action":"No upstream request was sent. Check the requested method, transport and profile's provider configuration before trying again.","zero_dispatch_retry_action":"No upstream request was sent. Retry shortly; check provider availability if this persists.","replay_safe_action":"Report it with its request ID if it keeps failing.","retry_action":"Retry the request; if it keeps failing, report it with its request ID."},{"code":"rate_limit_exceeded","message":"Rate limit exceeded","status":429,"retryable":true,"next_action":"Retry after the indicated delay."},{"code":"timeout","message":null,"status":200,"retryable":null,"next_action":"Check whether the request was applied, such as whether a transaction landed, before sending it again.","replay_safe_action":"Narrow the request, such as the eth_getLogs block range.","retry_action":"Retry the request; narrow it, such as the eth_getLogs block range, if it keeps timing out."},{"code":"unauthorized","message":"Authentication required","status":401,"retryable":false,"next_action":"Replace {chain} in the key's rpc_url_template with a chain or <strategy>/<chain>, or create a key with POST /api/v1/keys; see /llms.txt."},{"code":"unavailable","message":"Service temporarily unavailable","status":503,"retryable":true,"next_action":"Retry shortly. For a newly created Custom profile, have its owner check GET /api/v1/profiles/{slug} and follow its activation guidance; live, off, and partial are completed states, and only enabled ready chains serve."},{"code":"unknown_chain","message":"Unknown chain","status":400,"retryable":false,"next_action":"Choose a chain whose profiles field in /agent.json chains includes the requested hosted profile."},{"code":"unknown_profile","message":"Unknown profile","status":404,"retryable":false,"next_action":"Use a known profile slug."}],"streams":[{"status":400,"codes":["invalid_parameter"]},{"status":401,"codes":["unauthorized","account_closed"]},{"status":402,"codes":["balance_exhausted"]},{"status":403,"codes":["not_entitled"]},{"status":404,"codes":["chain_not_served"]},{"status":409,"codes":["resync_required"]},{"status":429,"codes":["too_many_readers","rate_limit_exceeded"]},{"status":503,"codes":["chain_unavailable"]}],"management":[{"code":"unauthorized","message":"A valid Bearer credential is required.","status":401,"next_action":"Send a management token, or an RPC key for an allowed current read, as Authorization: Bearer."},{"code":"forbidden","message":"This credential cannot perform this operation.","status":403,"next_action":"Use an unrestricted agent's management token. An RPC key reads only /api/v1/accounts/current and /api/v1/keys/current; a key created before agents existed can also request its claim link."},{"code":"not_found","message":"No such resource for this credential.","status":404,"next_action":"Check the resource ID and credential scope."},{"code":"unknown_field","message":"Unknown field '<field>'.","status":422,"next_action":"Remove '<field>'; /openapi.json lists accepted fields."},{"code":"invalid_field","message":"A field is invalid.","status":422,"next_action":"Correct the request using /openapi.json."},{"code":"unknown_profile","message":"The account has never had this profile.","status":404,"next_action":"Use a profile listed by GET /api/v1/profiles."},{"code":"key_limit","message":"The account has 100 active keys.","status":409,"next_action":"Revoke an unused key before creating another."},{"code":"stream_limit","message":"The account has 100 saved streams.","status":409,"next_action":"Delete an unused saved stream before creating another."},{"code":"not_in_beta","message":"Streams is not enabled for this account.","status":403,"next_action":"Request access to the Streams beta."},{"code":"key_revoked","message":"The key has been revoked.","status":401,"next_action":"Use the current key."},{"code":"account_closed","message":"The provisional account closed after it sat idle without payment or usage.","status":401,"next_action":"Create a new key with POST /api/v1/keys."},{"code":"already_claimed","message":"The account already has a person.","status":409,"next_action":"Manage the account through its members."},{"code":"method_not_allowed","message":"Claim links are issued with POST.","status":405,"next_action":"Send POST /api/v1/accounts/current/claim-link with the same Bearer credential, then give the returned claim_url to the person."},{"code":"custom_access_required","message":"Custom access is required.","status":403,"next_action":"Buy access with POST /api/v1/accounts/current/custom-access or subscribe."},{"code":"gone","message":"The v2 management API was retired when accounts went live. The same secret works on the /api/v1 resource tree.","status":410,"next_action":"Use the /api/v1 operation this response names."},{"code":"rate_limited","message":"Too many requests.","status":429,"next_action":"Honor Retry-After before retrying."},{"code":"unavailable","message":"The operation is temporarily unavailable.","status":503,"next_action":"Honor Retry-After and retry the same operation; retain its original purchase ID and signed payment."},{"code":"system_provider_edit_required","message":"System profiles accept provider edits, not whole-document replacement.","status":422,"next_action":"POST /api/v1/profiles/{slug}/provider-edits with expected_revision, operation (set, add, remove), chain_id, provider and fields."},{"code":"unknown_chain","message":"No chain named '<chain>'.","status":422,"next_action":"Use a chain name or decimal ID from /agent.json chains, such as 'ethereum' or '8453'."},{"code":"invalid_config","message":"The profile document is invalid.","status":422,"next_action":"Correct each field path listed in details, then retry."},{"code":"provider_check_failed","message":"Provider '<provider>' answers for chain 10, not chain 1; nothing changed.","status":422,"next_action":"Fix or remove the URL of provider '<provider>', then retry."},{"code":"revision_conflict","message":"The profile changed since the expected revision (If-Match or expected_revision).","status":409,"next_action":"Read it again with GET /api/v1/profiles/{slug}, then reapply."},{"code":"slug_taken","message":"That profile slug is reserved by an existing key URL.","status":409,"next_action":"Choose another slug; existing key URLs keep their profile identity."},{"code":"profile_limit","message":"The account has no room for another Custom profile.","status":409,"next_action":"Delete an unused profile with DELETE /api/v1/profiles/{slug}, or subscribe to a larger plan."},{"code":"payment_required","message":"This purchase needs a payment.","status":402,"next_action":"Sign one challenge with an x402 or MPP client and repeat this request with PAYMENT-SIGNATURE or Authorization: Payment."},{"code":"amount_out_of_range","message":"The amount is outside what one purchase allows.","status":422,"next_action":"Stay within the per-purchase range or day range listed in /agent.json."},{"code":"balance_limit","message":"This payment would take the account balance above $1,000,000.","status":422,"next_action":"Nothing was charged. Use a smaller amount."},{"code":"payment_invalid","message":"The payment does not match a current challenge for this request.","status":402,"next_action":"Repeat the request without payment for a fresh challenge, sign it, and send the same body with the signature."},{"code":"payment_conflict","message":"A different payment was already submitted for this challenge.","status":409,"next_action":"Check the first payment at its status_url; never sign a second payment while one is pending."},{"code":"beneficiary_conflict","message":"This key's ownership records name more than one account, so the purchase can't be applied.","status":409,"next_action":"Don't pay again. Keep the purchase ID and signed payment, report the key with POST /api/v1/feedback so its owner can be reconciled, then retry the same request."},{"code":"payment_failed","message":"The payment did not settle on chain, and nothing was charged.","status":409,"next_action":"Repeat the request without payment for a fresh challenge."},{"code":"payment_pending","message":"Settlement could not be confirmed yet.","status":503,"next_action":"Do not pay again; Lasso completes this payment in the background. Check its status_url."},{"code":"already_subscribed","message":"The account's subscription already includes Custom access.","status":409,"next_action":"Use Custom profiles directly; no purchase is needed."},{"code":"account_merged","message":"This account was merged into another account.","status":409,"next_action":"Create the profile from the account it was merged into."},{"code":"profile_suspended","message":"The profile is suspended, so it cannot be changed.","status":409,"next_action":"Restore Custom access to reactivate it, or delete it with DELETE /api/v1/profiles/{slug} and apply the document again."}]},"x-native-websocket-metadata":{"description":"WebSocket requests that ask for lasso_meta notifications receive the request's CU, USD charge, serving access and fallback reason, and an estimate of the balance after the charge.","properties":{"access":{"type":"string","enum":["premium","public","custom"]},"fallback":{"type":"string"},"region":{"type":"string","description":"Serving node region"},"cu":{"type":"string"},"usd":{"type":"string"},"balance_usd":{"type":"string"}}},"x-request-signals":["x-lasso-cu","x-lasso-usd","x-lasso-fallback","x-lasso-region"],"servers":[{"url":"https://lasso.sh"}],"x-service-info":{"docs":{"llms":"https://lasso.sh/llms.txt","agentGuide":"https://lasso.sh/SKILL.md","apiReference":"https://lasso.sh/openapi.json","homepage":"https://lasso.sh","productDocs":"https://docs.lasso.sh"},"categories":["blockchain","developer-infrastructure"]}}