---
title: "Post each run's answer to a conversation in a connected chat [write]"
method: PUT
path: "/routines/{id}/deliver-to"
---

# Post each run's answer to a conversation in a connected chat \[write\]

`PUT /routines/{id}/deliver-to`

## Request

- Base URL: `https://api.agentsky.dev/v1`
- URL: `https://api.agentsky.dev/v1/routines/{id}/deliver-to`
- Auth: HTTP bearer

When a turn of a run's session ends and the run is not waiting on its owner, the last thing the agent said (at most 3,000 characters) is posted in the conversation with a link to the run, once per run. `thread_id` defaults to the chat itself. A run a chat message started answers where that message was instead. Only the routine's creator can set this (403 otherwise), on a connected chat of their own in this workspace (404 otherwise). An archived routine answers 409.

## Path parameters

- `id` string, required

## Request body

- object
  - `type` 'channel_thread', required
  - `connection_id` string, required
  - `thread_id` string

## Response `200`

OK

- object
  - `deliver_to` object, required
    - `routine_id` string, required
    - `type` 'channel_thread', required
    - `connection_id` string, required
    - `thread_id` string, required
    - `created_at` string, required

## Other responses

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

## Changes

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

[Operation history](https://skmtc.dev/agentsky/apis/agentsky-developer-api/changes/routines/:id/deliver-to/put.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)
