---
title: "Set where the surface routes — a session or your webhook endpoint (single active binding) [write]"
method: PUT
path: "/channels/connections/{id}/binding"
tags: ["channels"]
---

# Set where the surface routes — a session or your webhook endpoint (single active binding) \[write\]

`PUT /channels/connections/{id}/binding`

## Request

- Base URL: `https://api.agentsky.dev/v1`
- URL: `https://api.agentsky.dev/v1/channels/connections/{id}/binding`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Request body

- object
  - `destination` object, required: Exactly one of webhook (endpoint id) or session (session id)
    - `webhook` string
    - `session` string

## Response `200`

OK

- object
  - `connection_id` string
  - `binding_id` string
  - `session` string
  - `webhook` string

## Other responses

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

## Changes

- **2026-11-02** `e5e8f0229a99`: 1 info
  - added the optional property `error/request_id` to the response with the `default` status

[Operation history](https://skmtc.dev/agentsky/apis/agentsky-developer-api/changes/channels/connections/:id/binding/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)
