Skip to main content
POST
/
v1
/
tasks
/
{id}
/
close
Close an agent task
curl --request POST \
  --url https://sync.ablo.app/v1/tasks/{id}/close \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "costInputTokens": 1,
  "costOutputTokens": 1,
  "costComputeMs": 1
}
'
{
  "id": "<string>",
  "agentId": "<string>",
  "organizationId": "<string>",
  "surface": "<string>",
  "parentTaskId": "<string>",
  "onBehalfOfUserId": "<string>",
  "openedAt": "2023-11-07T05:31:56Z",
  "closedAt": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.abloatai.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key (sk_live_…) or Biscuit capability token. The same header carries both — the server discriminates by token shape.

Path Parameters

id
string
required

Body

application/json
costInputTokens
integer
required
Required range: x >= 0
costOutputTokens
integer
required
Required range: x >= 0
costComputeMs
integer
required
Required range: x >= 0

Response

Task closed

id
string
object
enum<string>
Available options:
task
agentId
string
organizationId
string
surface
string
parentTaskId
string | null
onBehalfOfUserId
string | null
openedAt
string<date-time>
closedAt
string<date-time> | null