Stop the channel runner
curl --request POST \
--url http://localhost:3000/api/v1/channels/stop \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:3000/api/v1/channels/stop"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:3000/api/v1/channels/stop', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/api/v1/channels/stop",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:3000/api/v1/channels/stop"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://localhost:3000/api/v1/channels/stop")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/api/v1/channels/stop")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"action": "<string>",
"changed": true,
"pm2Status": 123,
"previousPid": 123,
"reason": "<string>",
"runnerEnv": {
"consumeOutbound": "<string>",
"slackSocketMode": true
},
"status": {
"channels": {
"cpu": 123,
"managed": true,
"memoryBytes": 123,
"memoryMb": 123,
"name": "<string>",
"pid": 123,
"pmId": 123,
"running": true,
"status": "<string>"
},
"pm2Available": true,
"processName": "<string>",
"processes": [
{
"cpu": 123,
"managed": true,
"memoryBytes": 123,
"memoryMb": 123,
"name": "<string>",
"pid": 123,
"pmId": 123,
"running": true,
"status": "<string>"
}
],
"health": {
"checkedAt": 123,
"reachable": true,
"status": "ready",
"reason": "<string>"
},
"runner": {
"adapters": [
{
"channelId": "<string>",
"id": "<string>",
"status": "disabled",
"connectedAt": 123,
"lastPongAt": 123,
"reason": "<string>",
"reconnectCount": 4503599627370495
}
],
"observedAt": 123,
"outbound": {
"consumer": "<string>",
"consuming": true,
"enabled": true,
"infrastructureReady": true,
"stream": "<string>",
"lastError": {
"at": 123,
"message": "<string>",
"phase": "consume_loop"
},
"lastMessageAt": 123,
"publishOutbox": {
"pendingCount": 4503599627370495,
"lastError": {
"at": 123,
"message": "<string>"
},
"lastPublishedAt": 123,
"nextAttemptAt": 123,
"oldestPendingAt": 123
}
},
"pid": 123,
"running": true,
"schemaVersion": 1,
"startedAt": 123
}
},
"target": {
"bundlePath": "<string>",
"cwd": "<string>",
"sourceProjectRoot": "<string>"
}
}channels
Stop the channel runner
POST
/
api
/
v1
/
channels
/
stop
Stop the channel runner
curl --request POST \
--url http://localhost:3000/api/v1/channels/stop \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:3000/api/v1/channels/stop"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:3000/api/v1/channels/stop', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/api/v1/channels/stop",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:3000/api/v1/channels/stop"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://localhost:3000/api/v1/channels/stop")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/api/v1/channels/stop")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"action": "<string>",
"changed": true,
"pm2Status": 123,
"previousPid": 123,
"reason": "<string>",
"runnerEnv": {
"consumeOutbound": "<string>",
"slackSocketMode": true
},
"status": {
"channels": {
"cpu": 123,
"managed": true,
"memoryBytes": 123,
"memoryMb": 123,
"name": "<string>",
"pid": 123,
"pmId": 123,
"running": true,
"status": "<string>"
},
"pm2Available": true,
"processName": "<string>",
"processes": [
{
"cpu": 123,
"managed": true,
"memoryBytes": 123,
"memoryMb": 123,
"name": "<string>",
"pid": 123,
"pmId": 123,
"running": true,
"status": "<string>"
}
],
"health": {
"checkedAt": 123,
"reachable": true,
"status": "ready",
"reason": "<string>"
},
"runner": {
"adapters": [
{
"channelId": "<string>",
"id": "<string>",
"status": "disabled",
"connectedAt": 123,
"lastPongAt": 123,
"reason": "<string>",
"reconnectCount": 4503599627370495
}
],
"observedAt": 123,
"outbound": {
"consumer": "<string>",
"consuming": true,
"enabled": true,
"infrastructureReady": true,
"stream": "<string>",
"lastError": {
"at": 123,
"message": "<string>",
"phase": "consume_loop"
},
"lastMessageAt": 123,
"publishOutbox": {
"pendingCount": 4503599627370495,
"lastError": {
"at": 123,
"message": "<string>"
},
"lastPublishedAt": 123,
"nextAttemptAt": 123,
"oldestPendingAt": 123
}
},
"pid": 123,
"running": true,
"schemaVersion": 1,
"startedAt": 123
}
},
"target": {
"bundlePath": "<string>",
"cwd": "<string>",
"sourceProjectRoot": "<string>"
}
}Authorizations
Runtime context-key (rctx_*) issued by the Ravi gateway. Required for every non-open scope. Bootstrap the first key with ravi daemon init-admin-key; rotate, derive, and revoke via the ravi context family. Specs: runtime/context-keys, sdk/auth.