---
title: "Choose which agent answers a chat app [write]"
method: PUT
path: "/plugins/{name}/answer"
---

# Choose which agent answers a chat app \[write\]

`PUT /plugins/{name}/answer`

## Request

- Base URL: `https://api.agentsky.dev/v1`
- URL: `https://api.agentsky.dev/v1/plugins/{name}/answer`
- Auth: HTTP bearer

chat:<platform>, or a merged product whose chat app it is (app:slack_v2); 422 not_a_chat_app otherwise. `agent_id` binds the agent's default chat (409 no_default_session when it has none), or `session_id` a chat. Forwarded to the channel service's PUT /channels/connections/{id}/binding with your own credential; `connection_id` names the chat-app connection when you have several.

## Path parameters

- `name` string, required

## Request body

- object
  - `agent_id` string
  - `session_id` string
  - `connection_id` string

## Response `200`

OK

- object
  - `plugin_id` string
  - `connection_id` string
  - `session_id` string
  - `result` object

## 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/plugins/:name/answer/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)
