Test-run a scheduled job now, as a dry run
POST /Platform/jobs/simulate
Test-run a scheduled job now, as a dry run.
Runs the job's stored invocation against its stored target immediately.
The job itself is untouched: next_run_at, status and active
are all left as they were, so a simulation never consumes an occurrence
or disturbs the real schedule.
The run is always a DRY RUN: tools declaring a mock_response return
it, and every irreversible tool is short-circuited to
"Success (mocked)". Read-only tools still execute for real, so the
agent sees true data and picks a true trajectory — it just cannot send,
charge, or write. To run a job for real, use run_job_now.
The test run reads as you, and is held to both your access and that of the job's creator, so it is refused wherever the real run would be.
Mock is applied to the target's whole entity graph immediately before
invocation (it is a runtime-only flag that no reload can preserve), and
for an Agent.invoke job it is re-applied to the conversation graph
inside the turn as well.
Body parameters
job_id: str. The ScheduledJob to test-run.
Returns
JobSimulation
status: "ran" or "failed". Whether the stored invocation completed or the tool failed.job_id: str. Simulated ScheduledJob identifier.mocked: bool. Whether irreversible operations were mocked.tool: str. Invoked tool name.target: str. Target entity type and identifier.mock_applied_to_entities: int or null. Number of entities marked for mocking.result: optional JsonValue. Tool result encoded as public JSON, including media references.failure: optional str or null. Tool failure message when status is failed.conversation_id: optional str or null. Conversation started by an agent invocation.schedule_unchanged: bool. Whether the next scheduled occurrence remained unchanged.next_run_at: moment or null. Next scheduled occurrence as an ISO timestamp.
Example request
curl -X POST "https://api.hilus.ai/Platform/jobs/simulate" \
-H "Authorization: Bearer $HILUS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'