Bind channel
curl --request PUT \
--url https://revor.ai/api/v2/agents/{agentId}/channel-bindings/{channel} \
--header 'Content-Type: application/json' \
--data '
{
"expected_updated_at": "<string>",
"account_id": "<string>"
}
'import requests
url = "https://revor.ai/api/v2/agents/{agentId}/channel-bindings/{channel}"
payload = {
"expected_updated_at": "<string>",
"account_id": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({expected_updated_at: '<string>', account_id: '<string>'})
};
fetch('https://revor.ai/api/v2/agents/{agentId}/channel-bindings/{channel}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://revor.ai/api/v2/agents/{agentId}/channel-bindings/{channel}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'expected_updated_at' => '<string>',
'account_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://revor.ai/api/v2/agents/{agentId}/channel-bindings/{channel}"
payload := strings.NewReader("{\n \"expected_updated_at\": \"<string>\",\n \"account_id\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://revor.ai/api/v2/agents/{agentId}/channel-bindings/{channel}")
.header("Content-Type", "application/json")
.body("{\n \"expected_updated_at\": \"<string>\",\n \"account_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://revor.ai/api/v2/agents/{agentId}/channel-bindings/{channel}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"expected_updated_at\": \"<string>\",\n \"account_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyAgents
Bind channel
Bind or rebind a channel to an agent.
PUT
/
api
/
v2
/
agents
/
{agentId}
/
channel-bindings
/
{channel}
Bind channel
curl --request PUT \
--url https://revor.ai/api/v2/agents/{agentId}/channel-bindings/{channel} \
--header 'Content-Type: application/json' \
--data '
{
"expected_updated_at": "<string>",
"account_id": "<string>"
}
'import requests
url = "https://revor.ai/api/v2/agents/{agentId}/channel-bindings/{channel}"
payload = {
"expected_updated_at": "<string>",
"account_id": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({expected_updated_at: '<string>', account_id: '<string>'})
};
fetch('https://revor.ai/api/v2/agents/{agentId}/channel-bindings/{channel}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://revor.ai/api/v2/agents/{agentId}/channel-bindings/{channel}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'expected_updated_at' => '<string>',
'account_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://revor.ai/api/v2/agents/{agentId}/channel-bindings/{channel}"
payload := strings.NewReader("{\n \"expected_updated_at\": \"<string>\",\n \"account_id\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://revor.ai/api/v2/agents/{agentId}/channel-bindings/{channel}")
.header("Content-Type", "application/json")
.body("{\n \"expected_updated_at\": \"<string>\",\n \"account_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://revor.ai/api/v2/agents/{agentId}/channel-bindings/{channel}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"expected_updated_at\": \"<string>\",\n \"account_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyBind or rebind a channel to an agent.
Overview
| Method | PUT |
| Path | /api/v2/agents/{agentId}/channel-bindings/{channel} |
| Permission | agents.bindings:write |
Path parameters
Request body
cURL
curl -X PUT "https://revor.ai/api/v2/agents/{agentId}/channel-bindings/{channel}" \
-H "Authorization: Bearer sk-revor-REPLACE_ME" \
-H "Content-Type: application/json" \
-d '{
"expected_updated_at": "2026-11-13T04:44:50.096+00:00",
"account_id": "account-uuid"
}'
Response
200
{
"ok": true,
"request_id": "req_xxx",
"item": {
"id": "agent-uuid",
"updated_at": "2026-11-13T04:44:50.096+00:00"
}
}
Behavior
- Each operation changes one channel and preserves the others.
- PATCH rejects binding fields.
- Existing ownership, channel matching, autoreply account occupancy, and active-agent rules apply.
Errors
| HTTP | Code | Meaning |
|---|---|---|
400 | agent_input_invalid | Request does not match the contract |
403 | permission_denied | Missing required permission |
404 | agent_not_found | Agent does not exist, was deleted, or belongs to another user |
409 | agent_config_conflict | Version expired or concurrent modification |
409 | agent_account_already_bound | Account occupancy conflict |
500 | agent_operation_failed | Operation failed. Read current state before retrying |

