{"components":{"schemas":{"ExecutionRequest":{"properties":{"code":{"description":"Python source for the entrypoint file.","type":"string"},"entrypoint":{"default":"main.py","description":"Filename the `code` is written to under the exec root.","type":"string"},"files":{"additionalProperties":{"type":"string"},"description":"Extra files seeded into the exec fs, keyed by path.","type":"object"},"stdin":{"description":"Text fed to the program's stdin, split by newline.","type":"string"}},"required":["code"],"type":"object"},"ExecutionResponse":{"properties":{"error":{"description":"Present when status is failed or halted.","nullable":true,"type":"string"},"executionId":{"format":"uuid","type":"string"},"result":{"description":"repr() of the terminal value, or null.","nullable":true,"type":"string"},"status":{"enum":["completed","failed","halted"],"type":"string"},"stdout":{"type":"string"}},"required":["executionId","status","stdout"],"type":"object"}},"securitySchemes":{"bearerAuth":{"scheme":"bearer","type":"http"}}},"info":{"description":"Run arbitrary Python on the sandboxed Sucuri engine. Each execution gets a filesystem virtualized onto an object store under its execution id; files the program writes persist as blobs keyed `<execution-id>/<path>`.","title":"Sucuri Execution Service","version":"0.1.0"},"openapi":"3.0.3","paths":{"/":{"get":{"responses":{"200":{"description":"OpenAPI 3 document (JSON)."}},"summary":"This OpenAPI schema"}},"/docs":{"get":{"responses":{"200":{"description":"HTML docs page."}},"summary":"Swagger-style API docs (HTML)"}},"/executions":{"post":{"description":"Runs the supplied Python code to completion and returns the result inline. Requires `Authorization: Bearer <SUCURI_API_KEY>`.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecutionRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecutionResponse"}}},"description":"The program ran (possibly to an error — see `status`)."},"400":{"description":"Malformed request body."},"401":{"description":"Missing or invalid API key."}},"security":[{"bearerAuth":[]}],"summary":"Create and run an execution (synchronous)"}},"/healthz":{"get":{"responses":{"200":{"description":"Service is up."}},"summary":"Liveness/readiness probe"}}}}