Skip to main content
GET /v1/agent/tasks lists available task names and parameter schemas. POST /v1/agent runs one task in an existing session. With TILION_API_KEY and TILION_SESSION_ID set, this example reads the heading from a public test page.
The example returns Herman Melville - Moby-Dick in data.heading. The response also contains a steps trace and an error field.
A task can return HTTP 200 with ok: false. With async_mode: true, the initial ok: false and status: "pending" indicate that work is still running. Poll the returned job_id for the task result.
Tasks leave the session open. Close it after processing the result. See Agent tasks for the catalogue and approval handling.