Run a tool on an entity, now or on a schedule

POST /Platform/jobs/execute-tool

Run a tool on an entity, now or on a schedule.

Without when the tool runs now and the receipt names the execution, not the tool's result (run a tool through the entities resource to read its result); with when a ScheduledJob is created and the receipt names the job (list, pause, test-run or cancel it with the other routes here). The tool runs with its real side effects: an irreversible tool (sending a message, charging a card) is not mocked. To test-run a job first, create it and use the job simulation route.

A scheduled job runs as you, with your access when it runs (and, when you schedule it with an API key, that key's): a route you could not call yourself is refused, and the job is paused if you leave the organization or the key is revoked.

Body parameters

Returns

ToolExecutionReceipt

Example request

curl -X POST "https://api.hilus.ai/Platform/jobs/execute-tool" \
  -H "Authorization: Bearer $HILUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'