{"openapi":"3.1.0","info":{"title":"Darwin Agentic Cloud","description":"Verifiable compute for AI agents with cryptographically signed attestations.","version":"2.0.0"},"paths":{"/healthz":{"get":{"tags":["health"],"summary":"Healthz","operationId":"healthz_healthz_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Healthz Healthz Get"}}}}}}},"/v0/identity":{"get":{"tags":["identity"],"summary":"Identity","operationId":"identity_v0_identity_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentityResponse"}}}}}}},"/v0/run":{"post":{"tags":["run"],"summary":"Run","operationId":"run_v0_run_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/attestations/verify":{"post":{"tags":["attestations"],"summary":"Verify","operationId":"verify_v0_attestations_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/attestations/stats":{"get":{"tags":["attestations"],"summary":"Stats","operationId":"stats_v0_attestations_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttestationStatsResponse"}}}}}}},"/v0/attestations":{"get":{"tags":["attestations"],"summary":"List Attestations","operationId":"list_attestations_v0_attestations_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":20,"title":"Limit"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttestationListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/attestations/{attestation_id}":{"get":{"tags":["attestations"],"summary":"Get Attestation","operationId":"get_attestation_v0_attestations__attestation_id__get","parameters":[{"name":"attestation_id","in":"path","required":true,"schema":{"type":"string","title":"Attestation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Attestation V0 Attestations  Attestation Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AttestationListResponse":{"properties":{"attestations":{"items":{"$ref":"#/components/schemas/AttestationSummary"},"type":"array","title":"Attestations"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["attestations","count"],"title":"AttestationListResponse"},"AttestationStatsResponse":{"properties":{"total_count":{"type":"integer","title":"Total Count"},"total_cost_usd":{"type":"number","title":"Total Cost Usd"},"by_status":{"additionalProperties":{"type":"integer"},"type":"object","title":"By Status"}},"type":"object","required":["total_count","total_cost_usd","by_status"],"title":"AttestationStatsResponse"},"AttestationSummary":{"properties":{"attestation_id":{"type":"string","title":"Attestation Id"},"workload_id":{"type":"string","title":"Workload Id"},"signer_key_id":{"type":"string","title":"Signer Key Id"},"substrate_id":{"type":"string","title":"Substrate Id"},"status":{"type":"string","title":"Status"},"issued_at":{"type":"number","title":"Issued At"},"cost_usd":{"type":"number","title":"Cost Usd"},"wall_time_sec":{"type":"number","title":"Wall Time Sec"},"schema_version":{"type":"string","title":"Schema Version"}},"type":"object","required":["attestation_id","workload_id","signer_key_id","substrate_id","status","issued_at","cost_usd","wall_time_sec","schema_version"],"title":"AttestationSummary"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"IdentityResponse":{"properties":{"key_id":{"type":"string","title":"Key Id"},"public_key_b64":{"type":"string","title":"Public Key B64"},"substrate_id":{"type":"string","title":"Substrate Id"},"schema":{"type":"string","title":"Schema"},"version":{"type":"string","title":"Version"}},"type":"object","required":["key_id","public_key_b64","substrate_id","schema","version"],"title":"IdentityResponse"},"RunRequest":{"properties":{"code":{"type":"string","title":"Code","description":"Source code to execute."},"language":{"type":"string","title":"Language","description":"Language: 'python' or 'node'.","default":"python"},"inputs":{"additionalProperties":true,"type":"object","title":"Inputs","description":"Optional inputs."},"cost_cap_usd":{"type":"number","minimum":0.0,"title":"Cost Cap Usd","description":"Cost ceiling in USD.","default":0.01},"timeout_sec":{"type":"integer","maximum":600.0,"minimum":1.0,"title":"Timeout Sec","description":"Timeout in seconds.","default":30},"memory_mb":{"type":"integer","maximum":8192.0,"minimum":64.0,"title":"Memory Mb","description":"Memory limit in MB.","default":512}},"type":"object","required":["code"],"title":"RunRequest"},"RunResponse":{"properties":{"attestation":{"additionalProperties":true,"type":"object","title":"Attestation"},"signature_b64":{"type":"string","title":"Signature B64"},"public_key_b64":{"type":"string","title":"Public Key B64"}},"type":"object","required":["attestation","signature_b64","public_key_b64"],"title":"RunResponse"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VerifyRequest":{"properties":{"attestation":{"additionalProperties":true,"type":"object","title":"Attestation"},"signature_b64":{"type":"string","title":"Signature B64"},"public_key_b64":{"type":"string","title":"Public Key B64"}},"type":"object","required":["attestation","signature_b64","public_key_b64"],"title":"VerifyRequest"},"VerifyResponse":{"properties":{"verified":{"type":"boolean","title":"Verified"}},"type":"object","required":["verified"],"title":"VerifyResponse"}}}}