Skip to main content
POST
Stop working on a task's screen

Authorizations

X-Api-Key
string
header
required

Workspace API key, created in the dashboard under Settings → API Keys.

Path Parameters

id
string
required

The task id.

Query Parameters

workspaceId
string<uuid>

Workspace the request is scoped to. Optional for API keys: a key is bound to one workspace when it is created, and naming any other workspace returns an opaque 404.

Response

Stop acknowledged

success
boolean
required

True once the stop was acknowledged.

sessionDurationMs
integer
required

How long the run this stop ended was on the phone, in milliseconds, up to this stop. 0 when the stop is a noop, or when the run was stopped before it took the phone.

id
string
required

The task id.

status
string
required

What the stop did: noop when nothing was running, otherwise the stop the phone acknowledged.

creditsBilled
integer

Credits the task has been charged so far, every turn included. A turn this stop ended is charged as its run winds down, so its charge can land just after this answer; getInteractStatus reads the figure again.