---
title: "Report on a task from the server its agent runs on [task pass]"
method: POST
path: "/tasks/{id}/callback"
tags: ["tasks"]
---

# Report on a task from the server its agent runs on \[task pass\]

`POST /tasks/{id}/callback`

## Request

- Base URL: `https://api.agentsky.dev/v1`
- URL: `https://api.agentsky.dev/v1/tasks/{id}/callback`
- Auth: HTTP bearer

Authorized by the pass handed to that server with the turn, sent as `Authorization: Bearer`, and by nothing else: any other credential is refused with 403. `message` shows progress and keeps the turn open. `result` is the answer; `request` asks the person a question, which they answer like any other request on the task; `error` says the work could not be done. Those three end the turn and the pass, so write the task's files first. 409 `turn_ended` once the turn is over; 401 for a pass that has ended.

## Path parameters

- `id` string, required

## Request body

- union
  - object: Something to show while the work goes on. The turn stays open.
    - `type` 'message', required
    - `text` string, required
  - object: The answer. Ends the turn and the pass.
    - `type` 'result', required
    - `text` string, required
  - object: A question for the person. Ends the turn and the pass; the answer arrives as the task's next turn, with a new pass.
    - `type` 'request', required
    - `question` string, required
    - `options` object[]
      - `id` string, required
      - `label` string, required
      - `description` string
    - `allow_free_text` boolean: Whether the person may type an answer. Defaults to true; must be true when there are no options.
  - object: The work could not be done. Ends the turn and the pass; the person reads the message.
    - `type` 'error', required
    - `message` string, required

## Response `200`

Recorded

- object
  - `ok` boolean, required
  - `request_id` string: The id of the request that was raised, for `request`.

## Other responses

- `default`: Error — { error: { code, message } }

## Changes

- **2026-11-02** `e5e8f0229a99`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/agentsky/apis/agentsky-developer-api/changes/tasks/:id/callback/post.md)

---

[API](https://skmtc.dev/agentsky/apis/agentsky-developer-api.md) - [All operations](https://skmtc.dev/agentsky/apis/agentsky-developer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/agentsky/apis/agentsky-developer-api/revisions/0d435187cd55?raw)
