{"openapi":"3.1.0","info":{"title":"ساروی Cloud API","version":"1.8.0","description":"Sarovi Cloud services paid from the same Sarovi credit balance as Chat, Studio and API. Credit costs are shown before confirmation; original service/FX cost records and resource limits are retained. Send fx_token from the pricing endpoint with paid resource creation. Confirmed orders keep their original price. Private VPS, Docker and PostgreSQL support prepaid continuous hosting with provider STOP deadlines, seven-day disk recovery and explicit restart on renewal; temporary leases use deletion deadlines. Pro and Business raise enforced account hosting quotas. Connected email uses your own Resend account. Service availability is reported by the catalog."},"servers":[{"url":"https://cloud.sarovi.ir"}],"paths":{"/v1/cloud/plans":{"get":{"summary":"Account-wide hosting plan, expiry, actual quotas and offers","description":"Required scope: cloud:read. Allowances are enforced server-side.","security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Success"},"201":{"description":"Created"},"202":{"description":"Accepted; poll existing operation"},"402":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"default":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[]},"post":{"summary":"Prepay 30 days of Pro or Business from verified Cloud funds; no automatic renewal","description":"Required scope: cloud:write. Allowances are enforced server-side.","security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["plan","idempotency_key","fx_token","max_cost_micro_usd","confirm_prepaid"],"properties":{"plan":{"enum":["pro","business"]},"idempotency_key":{"type":"string","format":"uuid"},"fx_token":{"type":"string"},"max_cost_micro_usd":{"type":"integer","minimum":1},"confirm_prepaid":{"const":true}},"additionalProperties":false}}}},"responses":{"200":{"description":"Success"},"201":{"description":"Created"},"202":{"description":"Accepted; poll existing operation"},"402":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"default":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[]}},"/v1/cloud/servers/{server_id}/renew":{"post":{"summary":"Renew a continuous service, retaining its disk and address; requires a short restart","description":"Required scope: cloud:write. Allowances are enforced server-side.","security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["hours","idempotency_key","fx_token","max_cost_micro_usd","confirm_prepaid","confirm_restart"],"properties":{"hours":{"enum":[24,168,720]},"idempotency_key":{"type":"string","format":"uuid"},"fx_token":{"type":"string"},"max_cost_micro_usd":{"type":"integer","minimum":1},"confirm_prepaid":{"const":true},"confirm_restart":{"const":true}},"additionalProperties":false}}}},"responses":{"200":{"description":"Success"},"201":{"description":"Created"},"202":{"description":"Accepted; poll existing operation"},"402":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"default":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string"}}]}},"/v1/cloud/servers":{"get":{"summary":"Private VM offers and project-owned leases with transfer and connection-time allowances","description":"Required scope: cloud:read. Allowances are enforced server-side.","security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Success"},"201":{"description":"Created"},"202":{"description":"Accepted; poll existing operation"},"402":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"default":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[]},"post":{"summary":"Prepay continuous or temporary VM hosting; continuous stops at expiry and retains its disk for 7 days","description":"Required scope: cloud:write. Allowances are enforced server-side.","security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":60},"kind":{"type":"string","enum":["vps","docker","postgres"]},"continuous":{"default":false,"type":"boolean"},"hours":{"anyOf":[{"type":"number","const":1},{"type":"number","const":24},{"type":"number","const":168},{"type":"number","const":720}]},"ssh_public_key":{"type":"string","maxLength":1000,"pattern":"^ssh-ed25519 [A-Za-z0-9+/]{68}(?: [^\\r\\n]{0,100})?$"},"policy_version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"max_cost_micro_usd":{"type":"integer","exclusiveMinimum":0,"maximum":100000000},"idempotency_key":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"fx_token":{"type":"string","maxLength":3000},"confirm_prepaid":{"type":"boolean","const":true},"confirm_delete_at_expiry":{"type":"boolean","const":true},"confirm_stop_at_expiry":{"type":"boolean","const":true}},"required":["name","kind","continuous","hours","ssh_public_key","policy_version","max_cost_micro_usd","idempotency_key","fx_token","confirm_prepaid"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success"},"201":{"description":"Created"},"202":{"description":"Accepted; poll existing operation"},"402":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"default":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[]}},"/v1/cloud/servers/{server_id}":{"get":{"summary":"Lease state, expiry and remaining allowances","description":"Required scope: cloud:read. Allowances are enforced server-side.","security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Success"},"201":{"description":"Created"},"202":{"description":"Accepted; poll existing operation"},"402":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"default":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Permanently delete server and disk; no refund after ready","description":"Required scope: cloud:write. Allowances are enforced server-side.","security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["confirm_delete"],"properties":{"confirm_delete":{"const":true}},"additionalProperties":false}}}},"responses":{"200":{"description":"Success"},"201":{"description":"Created"},"202":{"description":"Accepted; poll existing operation"},"402":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"default":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string"}}]}},"/v1/cloud/servers/{server_id}/connection":{"post":{"summary":"One-use SSH/PostgreSQL WebSocket ticket; send as first message, never in the URL. Keep credentials secret.","description":"Required scope: cloud:write. Allowances are enforced server-side.","security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["protocol"],"properties":{"protocol":{"enum":["ssh","postgres"]}},"additionalProperties":false}}}},"responses":{"200":{"description":"Success"},"201":{"description":"Created"},"202":{"description":"Accepted; poll existing operation"},"402":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"default":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string"}}]}},"/v1/cloud/pricing":{"get":{"summary":"Current Toman prices and a five-minute price token; confirmed cash orders keep their original amount","description":"Required scope: cloud:read. Allowances are enforced server-side.","security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Success"},"201":{"description":"Created"},"202":{"description":"Accepted; poll existing operation"},"402":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"default":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[]}},"/v1/cloud/email":{"get":{"summary":"Owned email domains, message status and send limits","description":"Required scope: cloud:read. Allowances are enforced server-side.","security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Success"},"201":{"description":"Created"},"202":{"description":"Accepted; poll existing operation"},"402":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"default":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[]}},"/v1/cloud/email/connect":{"post":{"summary":"Connect your Resend account and sender domain; creates a delivery webhook; provider bills your account directly","description":"Required scope: cloud:write. Allowances are enforced server-side.","security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","maxLength":253},"api_key":{"type":"string","pattern":"^re_[A-Za-z0-9_-]{12,200}$"},"confirm_connect":{"type":"boolean","const":true}},"required":["name","api_key","confirm_connect"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success"},"201":{"description":"Created"},"202":{"description":"Accepted; poll existing operation"},"402":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"default":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[]}},"/v1/cloud/email/domains":{"post":{"summary":"Register an owned sender domain and return public verification records","description":"Required scope: cloud:write. Allowances are enforced server-side.","security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string"}},"additionalProperties":false}}}},"responses":{"200":{"description":"Success"},"201":{"description":"Created"},"202":{"description":"Accepted; poll existing operation"},"402":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"default":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[]}},"/v1/cloud/email/domains/{domain_id}":{"post":{"summary":"Refresh DNS verification","description":"Required scope: cloud:write. Allowances are enforced server-side.","security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"Success"},"201":{"description":"Created"},"202":{"description":"Accepted; poll existing operation"},"402":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"default":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Disconnect a sender domain","description":"Required scope: cloud:write. Allowances are enforced server-side.","security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["confirm"],"properties":{"confirm":{"const":true}}}}}},"responses":{"200":{"description":"Success"},"201":{"description":"Created"},"202":{"description":"Accepted; poll existing operation"},"402":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"default":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string"}}]}},"/v1/cloud/email/messages":{"post":{"summary":"Send one plaintext message from a verified sender; no automatic retry","description":"Required scope: cloud:write. Allowances are enforced server-side.","security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"domain_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"from":{"type":"string","maxLength":254,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"to":{"type":"string","maxLength":254,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"subject":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[^\\r\\n]+$"},"text":{"type":"string","minLength":1,"maxLength":20000},"idempotency_key":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"confirm_send":{"type":"boolean","const":true}},"required":["domain_id","from","to","subject","text","idempotency_key","confirm_send"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success"},"201":{"description":"Created"},"202":{"description":"Accepted; poll existing operation"},"402":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"default":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[]}},"/v1/cloud/email/messages/{message_id}":{"get":{"summary":"Retrieve status of one owned message","description":"Required scope: cloud:read. Allowances are enforced server-side.","security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Success"},"201":{"description":"Created"},"202":{"description":"Accepted; poll existing operation"},"402":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"default":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"string"}}]}},"/v1/cloud/compute":{"get":{"summary":"Compute offers, shared Sarovi credit balance and jobs; availability is fail-closed","description":"Required scope: cloud:read. Allowances are enforced server-side.","security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Success"},"201":{"description":"Created"},"202":{"description":"Accepted; poll existing operation"},"402":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"default":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[]}},"/v1/cloud/compute/jobs":{"post":{"summary":"Reserve shared Sarovi credits and create a bounded container job","description":"Required scope: cloud:write. Allowances are enforced server-side.","security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"kind":{"type":"string","enum":["cpu","gpu"]},"image":{"type":"string","pattern":"^[a-z0-9.-]+\\/[a-zA-Z0-9_./-]+@sha256:[a-f0-9]{64}$"},"seconds":{"type":"integer","minimum":60,"maximum":600},"args":{"default":[],"maxItems":2,"type":"array","items":{"type":"string","maxLength":32768}},"idempotency_key":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"confirm_prepaid":{"type":"boolean","const":true},"max_cost_micro_usd":{"type":"integer","minimum":1,"maximum":50000000},"fx_token":{"type":"string","maxLength":3000}},"required":["kind","image","seconds","args","idempotency_key","confirm_prepaid","max_cost_micro_usd"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success"},"201":{"description":"Created"},"202":{"description":"Accepted; poll existing operation"},"402":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"default":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[]}},"/v1/cloud/compute/jobs/{job_id}":{"get":{"summary":"Read compute job status and reserved/charged cost","description":"Required scope: cloud:read. Allowances are enforced server-side.","security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Success"},"201":{"description":"Created"},"202":{"description":"Accepted; poll existing operation"},"402":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"default":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string"}}]}},"/v1/cloud/compute/jobs/{job_id}/cancel":{"post":{"summary":"Request cancellation; settlement waits for provider completion","description":"Required scope: cloud:write. Allowances are enforced server-side.","security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["confirm"],"properties":{"confirm":{"const":true}},"additionalProperties":false}}}},"responses":{"200":{"description":"Success"},"201":{"description":"Created"},"202":{"description":"Accepted; poll existing operation"},"402":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"default":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string"}}]}},"/v1/cloud/catalog":{"get":{"summary":"Service availability, payment policy and limits","description":"Required scope: cloud:read. Allowances are enforced server-side.","security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Success"},"201":{"description":"Created"},"202":{"description":"Accepted; poll existing operation"},"402":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"default":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[]}},"/v1/cloud":{"get":{"summary":"List data spaces in this API project","description":"Required scope: cloud:read. Allowances are enforced server-side.","security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Success"},"201":{"description":"Created"},"202":{"description":"Accepted; poll existing operation"},"402":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"default":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[]},"post":{"summary":"Create a data space; dedicated capacity requires settled payment","description":"Required scope: cloud:write. Allowances are enforced server-side.","security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["plan","name"],"properties":{"plan":{"const":"starter"},"name":{"type":"string","minLength":2,"maxLength":80}},"additionalProperties":false},{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":2,"maxLength":80},"region":{"default":"emea","type":"string","enum":["emea","apac","americas"]},"instance_size":{"default":"micro","type":"string","enum":["micro","small","medium"]},"confirm_purchase":{"type":"boolean","const":true}},"required":["name","region","instance_size","confirm_purchase"],"additionalProperties":false}]}}}},"responses":{"200":{"description":"Success"},"201":{"description":"Created"},"202":{"description":"Accepted; poll existing operation"},"402":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"default":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[]}},"/v1/cloud/{cloud_id}":{"get":{"summary":"Data space status","description":"Required scope: cloud:read. Allowances are enforced server-side.","security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Success"},"201":{"description":"Created"},"202":{"description":"Accepted; poll existing operation"},"402":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"default":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[{"name":"cloud_id","in":"path","required":true,"schema":{"type":"string"}}]}},"/v1/cloud/{cloud_id}/connection":{"get":{"summary":"Public connection settings; never admin credentials","description":"Required scope: cloud:read. Allowances are enforced server-side.","security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Success"},"201":{"description":"Created"},"202":{"description":"Accepted; poll existing operation"},"402":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"default":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[{"name":"cloud_id","in":"path","required":true,"schema":{"type":"string"}}]}},"/v1/cloud/{cloud_id}/functions":{"get":{"summary":"List functions","description":"Required scope: cloud:read. Allowances are enforced server-side.","security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Success"},"201":{"description":"Created"},"202":{"description":"Accepted; poll existing operation"},"402":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"default":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[{"name":"cloud_id","in":"path","required":true,"schema":{"type":"string"}}]},"post":{"summary":"Save bounded JavaScript function","description":"Required scope: cloud:functions. Allowances are enforced server-side.","security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","pattern":"^(?:[a-z][a-z0-9\\-]{1,62})$"},"code":{"type":"string","minLength":1,"maxLength":128000},"verify_jwt":{"default":true,"type":"boolean"}},"required":["name","code","verify_jwt"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success"},"201":{"description":"Created"},"202":{"description":"Accepted; poll existing operation"},"402":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"default":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[{"name":"cloud_id","in":"path","required":true,"schema":{"type":"string"}}]}},"/v1/cloud/{cloud_id}/functions/{name}/invoke":{"post":{"summary":"Invoke a shared Starter function","description":"Required scope: cloud:functions. Allowances are enforced server-side.","security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"Success"},"201":{"description":"Created"},"202":{"description":"Accepted; poll existing operation"},"402":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"default":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[{"name":"cloud_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"name","in":"path","required":true,"schema":{"type":"string"}}]}},"/v1/cloud/{cloud_id}/database":{"get":{"summary":"List shared Starter collections","description":"Required scope: cloud:read. Allowances are enforced server-side.","security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Success"},"201":{"description":"Created"},"202":{"description":"Accepted; poll existing operation"},"402":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"default":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[{"name":"cloud_id","in":"path","required":true,"schema":{"type":"string"}}]},"post":{"summary":"Shared Starter records, or SQL on a funded dedicated database","description":"Required scope: cloud:write. Allowances are enforced server-side.","security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"query":{"type":"string","minLength":1,"maxLength":40000},"read_only":{"default":true,"type":"boolean"},"confirm_write":{"default":false,"type":"boolean"}},"required":["query","read_only","confirm_write"],"additionalProperties":false},{"type":"object","required":["action"],"properties":{"action":{"enum":["create_collection","list","insert","update","delete"]},"name":{"type":"string","description":"Collection name when creating"},"table":{"type":"string","description":"Existing collection for row operations"},"id":{"type":"string","format":"uuid"},"data":{"type":"object"},"public_read":{"type":"boolean","default":false},"offset":{"type":"integer","minimum":0,"maximum":2000}},"additionalProperties":false}]}}}},"responses":{"200":{"description":"Success"},"201":{"description":"Created"},"202":{"description":"Accepted; poll existing operation"},"402":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"default":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[{"name":"cloud_id","in":"path","required":true,"schema":{"type":"string"}}]}},"/v1/cloud/{cloud_id}/auth":{"get":{"summary":"Application authentication settings","description":"Required scope: cloud:read. Allowances are enforced server-side.","security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Success"},"201":{"description":"Created"},"202":{"description":"Accepted; poll existing operation"},"402":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"default":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[{"name":"cloud_id","in":"path","required":true,"schema":{"type":"string"}}]},"patch":{"summary":"Configure application authentication","description":"Required scope: cloud:write. Allowances are enforced server-side.","security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"site_url":{"type":"string","format":"uri"},"disable_signup":{"default":false,"type":"boolean"}},"required":["site_url","disable_signup"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success"},"201":{"description":"Created"},"202":{"description":"Accepted; poll existing operation"},"402":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"default":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[{"name":"cloud_id","in":"path","required":true,"schema":{"type":"string"}}]}},"/v1/cloud/{cloud_id}/storage":{"get":{"summary":"List files or buckets","description":"Required scope: cloud:read. Allowances are enforced server-side.","security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Success"},"201":{"description":"Created"},"202":{"description":"Accepted; poll existing operation"},"402":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"default":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[{"name":"cloud_id","in":"path","required":true,"schema":{"type":"string"}}]}},"/v1/cloud/{cloud_id}/secrets":{"post":{"summary":"Save secret without returning its value","description":"Required scope: cloud:write. Allowances are enforced server-side.","security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","pattern":"^[A-Z][A-Z0-9_]{1,99}$"},"value":{"type":"string","minLength":1,"maxLength":10000}},"required":["name","value"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success"},"201":{"description":"Created"},"202":{"description":"Accepted; poll existing operation"},"402":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"default":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[{"name":"cloud_id","in":"path","required":true,"schema":{"type":"string"}}]}},"/v1/cloud/hosting":{"get":{"summary":"Hosting projects, deployments, metrics and account allowances","description":"Required scope: cloud:read. Allowances are enforced server-side.","security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Success"},"201":{"description":"Created"},"202":{"description":"Accepted; poll existing operation"},"402":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"default":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[]}},"/v1/cloud/hosting/projects":{"post":{"summary":"Create a hosting project bound to this API project","description":"Required scope: cloud:hosting. Allowances are enforced server-side.","security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":2,"maxLength":80},"slug":{"type":"string","minLength":2,"maxLength":48},"source":{"type":"string","enum":["upload","github"]},"repository":{"default":null,"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_.-]+\\/[A-Za-z0-9_.-]+$"},{"type":"null"}]},"branch":{"default":"main","type":"string","minLength":1,"maxLength":120,"pattern":"^[a-zA-Z0-9_./-]+$"},"root_directory":{"default":".","type":"string","maxLength":160},"framework":{"default":"static","type":"string","enum":["static","vite","astro","next-export"]},"output_directory":{"default":".","type":"string","maxLength":160},"auto_deploy":{"default":false,"type":"boolean"},"build_env":{"default":{},"type":"object","propertyNames":{"type":"string","pattern":"^(VITE_|NEXT_PUBLIC_|PUBLIC_)[A-Z0-9_]{1,80}$"},"additionalProperties":{"type":"string","maxLength":2000}}},"required":["name","slug","source","repository","branch","root_directory","framework","output_directory","auto_deploy","build_env"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success"},"201":{"description":"Created"},"202":{"description":"Accepted; poll existing operation"},"402":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"default":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[]}},"/v1/cloud/hosting/projects/{project_id}/deployments":{"post":{"summary":"Deploy an immutable version","description":"Required scope: cloud:hosting. Allowances are enforced server-side.","security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"idempotency_key":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"environment":{"type":"string","enum":["preview","production"]},"confirm_public":{"type":"boolean","const":true},"files":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"content":{"type":"string","maxLength":28000000},"encoding":{"type":"string","const":"base64"}},"required":["path","content","encoding"],"additionalProperties":false}}},"required":["idempotency_key","environment","confirm_public"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success"},"201":{"description":"Created"},"202":{"description":"Accepted; poll existing operation"},"402":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"default":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string"}}]}},"/v1/cloud/hosting/projects/{project_id}/logs/{deployment_id}":{"get":{"summary":"Read bounded build logs","description":"Required scope: cloud:read. Allowances are enforced server-side.","security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Success"},"201":{"description":"Created"},"202":{"description":"Accepted; poll existing operation"},"402":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"default":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string"}}]}},"/v1/cloud/hosting/projects/{project_id}/promote":{"post":{"summary":"Promote a ready version","description":"Required scope: cloud:hosting. Allowances are enforced server-side.","security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["deployment_id","confirm_public"],"properties":{"deployment_id":{"type":"string","format":"uuid"},"confirm_public":{"const":true}},"additionalProperties":false}}}},"responses":{"200":{"description":"Success"},"201":{"description":"Created"},"202":{"description":"Accepted; poll existing operation"},"402":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"default":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string"}}]}},"/v1/cloud/hosting/projects/{project_id}/settings":{"patch":{"summary":"Update build settings; pending builds must finish first. Build variables are public.","description":"Required scope: cloud:hosting. Allowances are enforced server-side.","security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":2,"maxLength":80},"branch":{"default":"main","type":"string","minLength":1,"maxLength":120,"pattern":"^[a-zA-Z0-9_./-]+$"},"root_directory":{"default":".","type":"string","maxLength":160},"framework":{"default":"static","type":"string","enum":["static","vite","astro","next-export"]},"output_directory":{"default":".","type":"string","maxLength":160},"auto_deploy":{"default":false,"type":"boolean"},"build_env":{"default":{},"type":"object","propertyNames":{"type":"string","pattern":"^(VITE_|NEXT_PUBLIC_|PUBLIC_)[A-Z0-9_]{1,80}$"},"additionalProperties":{"type":"string","maxLength":2000}}},"additionalProperties":false}}}},"responses":{"200":{"description":"Success"},"201":{"description":"Created"},"202":{"description":"Accepted; poll existing operation"},"402":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"default":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string"}}]}},"/v1/cloud/hosting/projects/{project_id}/archive":{"post":{"summary":"Archive or restore an owned site, preserving usage and history; restore remains unpublished","description":"Required scope: cloud:hosting. Allowances are enforced server-side.","security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["archived","confirm"],"properties":{"archived":{"type":"boolean"},"confirm":{"const":true}},"additionalProperties":false}}}},"responses":{"200":{"description":"Success"},"201":{"description":"Created"},"202":{"description":"Accepted; poll existing operation"},"402":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"default":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string"}}]}},"/v1/cloud/hosting/projects/{project_id}/unpublish":{"post":{"summary":"Unpublish a site","description":"Required scope: cloud:hosting. Allowances are enforced server-side.","security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["confirm"],"properties":{"confirm":{"const":true}},"additionalProperties":false}}}},"responses":{"200":{"description":"Success"},"201":{"description":"Created"},"202":{"description":"Accepted; poll existing operation"},"402":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"default":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string"}}]}},"/v1/cloud/hosting/projects/{project_id}/domains":{"post":{"summary":"Add custom domain; requires DNS verification","description":"Required scope: cloud:hosting. Allowances are enforced server-side.","security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["hostname"],"properties":{"hostname":{"type":"string"}}}}}},"responses":{"200":{"description":"Success"},"201":{"description":"Created"},"202":{"description":"Accepted; poll existing operation"},"402":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"default":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string"}}]}},"/v1/cloud/hosting/projects/{project_id}/domains/{domain_id}":{"post":{"summary":"Verify domain ownership and HTTPS readiness","description":"Required scope: cloud:hosting. Allowances are enforced server-side.","security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"Success"},"201":{"description":"Created"},"202":{"description":"Accepted; poll existing operation"},"402":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"default":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Disconnect a domain and queue certificate cleanup","description":"Required scope: cloud:hosting. Allowances are enforced server-side.","security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["confirm"],"properties":{"confirm":{"const":true}},"additionalProperties":false}}}},"responses":{"200":{"description":"Success"},"201":{"description":"Created"},"202":{"description":"Accepted; poll existing operation"},"402":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"default":{"description":"Error; no automatic retry. Inspect the request/deployment ID after uncertain responses.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string"}}]}}},"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer"}}}}