Operating system set to macOS
Documentation jurisdiction set to United States
Sign inConnect Claude

Run Tool Body Api V1 Workstreams Tools Run Body Post

post/api/v1/workstreams/tools/run-body

Run a tool body on sample inputs without saving it

Runs the Python body once in the sandbox on the sample inputs and records the run for the caller. Nothing is created or saved. A body must have a successful run by the same person in the last 30 minutes before it can be created or saved.

Request bodyapplication/json

FieldTypeDescription
bodyrequiredstringPython source defining run(params) -> dict.
parametersobjectJSON Schema the sample inputs must satisfy.
show nested
Empty object.
paramsobjectThe sample inputs.
show nested
Empty object.
expected_body_sha256string | nullRefuse the run when the body's sha256 differs from this.

Responses

200Successful Response
FieldTypeDescription
statusrequiredstring—
resultrequiredany—
duration_msinteger | null—
executorstring | null—
tool_versionstring | null—
limitsrequiredobject—
show nested
Empty object.
allowed_importsrequiredstring[]—
body_sha256requiredstring—
422Validation Error
FieldTypeDescription
detailValidationError[]—
item shape
curl https://api.dev.arch.ie/api/v1/workstreams/tools/run-body \
  -X POST \
  -H "Authorization: Bearer sk_..." \
  -H "Content-Type: application/json" \
  -d '{
       "body": "string",
       "parameters": {},
       "params": {},
       "expected_body_sha256": null
     }'
API Reference · Archie for developers