Skip to main content
POST
Stop a task

Authorizations

Authorization
string
header
required

An org API key (gh_live_…) from Settings → API keys in the console.

Path Parameters

task_id
string
required

The task’s id.

Response

OK

object
any
task_id
string
kind
enum<string>

computer for a task on a computer or a cloud browser; chat for a run of a chat procedure in a conversation (its steps without AI, the model following it, or both). A chat run's events are what it did, and cost_cents is what its replies came to; it is never charged on its own, its replies are.

Available options:
computer,
chat
procedure
object | null

For a chat run: the procedure it ran and how.

session_id
string | null

The computer or browser session it ran on. Null for a chat procedure's run (kind chat).

agent_id
string
status
enum<string>

paused: waiting on a request in its conversation (an approval or question item) to be decided there.

Available options:
queued,
running,
paused,
completed,
failed,
stopped
done
boolean
prompt
string
result
string | null

The agent’s summary when it finished.

error
string | null

Why the task failed or was stopped, for example a guardrail limit, a task outside the agent’s guardrails.scope, or a safety check.

conversation_id
string | null

The conversation where its questions and approvals are asked and decided: the chat’s, for a task an agent started from a conversation, or one of its own (with its agent, holding the task) for a task started directly. Decide in it with POST /v1/conversations/{conversation_id}/decisions. Null for tasks from before every task had one.

paused_for
object | null

While status is paused: the request in its conversation it waits on.

pending
Question · object

What the agent waits on: the open request in its conversation (conversation_id says which), decided there.

cursor
integer

The latest event’s cursor.

metadata
object

Your own ids and labels (e.g. a ticket or customer id), returned as given.

Example:
created_at
string<date-time>
updated_at
string<date-time>
active_seconds
integer

Time spent running (not waiting on a person).

model
string | null

The model it ran on, fixed when it started (the agent’s, or the default). It sets the price of its tokens. Null for tasks from before agents had a model.

Example:

"gpt-6-astra"

effort
enum<string> | null

The reasoning level it ran at, fixed when it started (the agent’s, or the default). Higher levels think more, so use more tokens.

Available options:
low,
medium,
high,
null
usage
object | null

What its model calls (its steps and guardrail checks) used, kept up to date while it runs. Null before its first model call, and for tasks from before 2026-10-18.

cost_cents
integer | null

What it cost from the org’s balance, in US cents: its usage at the model’s price, rounded up to a whole cent, less any refund (a task our own restart ended is refunded). 0 when support made the org’s use free. Null until it ends, or when the server doesn’t bill.

agent_version
integer | null

The agent version it ran: the published one when it started, or the one asked for with agent_version. When it ran the draft (agent_draft), the version published then.

Example:

3

agent_draft
boolean

It ran the agent’s unpublished draft (agent_version: "draft").

created_by
Person · object

Who started it: a person (in the console) or an API key. Null when it was started with a session token.

replay_url
string

The replay in the console.

recording
object
events
object[]

With include=events.

procedures
object[]

In GET /v1/tasks/{task_id}: the procedures the task followed.

interrupted
boolean

False when the task had already finished.