Listar equipes
curl --request GET \
--url https://{host}/channel-api/teams \
--header 'Authorization: <api-key>'import requests
url = "https://{host}/channel-api/teams"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://{host}/channel-api/teams', 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://{host}/channel-api/teams",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$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 := "https://{host}/channel-api/teams"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{host}/channel-api/teams")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/channel-api/teams")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"id": "66f1f0c2e4b0a1b2c3d4e100",
"name": "Suporte",
"description": null,
"status": "active",
"members": [
"<string>"
]
}
]{
"statusCode": 401,
"message": "Credencial ausente ou inválida",
"error": "Unauthorized"
}{
"statusCode": 404,
"message": "Not Found",
"error": "Not Found"
}{
"statusCode": 429,
"message": "Rate limit exceeded. Maximum 120 requests per 60s per API key."
}API Reference
Listar equipes
Lista as equipes, para escolher o destino de uma transferência. Scope: teams:read.
GET
/
channel-api
/
teams
Listar equipes
curl --request GET \
--url https://{host}/channel-api/teams \
--header 'Authorization: <api-key>'import requests
url = "https://{host}/channel-api/teams"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://{host}/channel-api/teams', 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://{host}/channel-api/teams",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$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 := "https://{host}/channel-api/teams"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{host}/channel-api/teams")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/channel-api/teams")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"id": "66f1f0c2e4b0a1b2c3d4e100",
"name": "Suporte",
"description": null,
"status": "active",
"members": [
"<string>"
]
}
]{
"statusCode": 401,
"message": "Credencial ausente ou inválida",
"error": "Unauthorized"
}{
"statusCode": 404,
"message": "Not Found",
"error": "Not Found"
}{
"statusCode": 429,
"message": "Rate limit exceeded. Maximum 120 requests per 60s per API key."
}Authorizations
API key de conta, no formato ApiKey <token> (ex.: ApiKey zk_live_...). Criada em Configurações → API Keys por um usuário com a permissão api_keys:manage. O token é exibido uma única vez. Cada rota exige um scope; key sem o scope, ou recurso fora dos canais permitidos da key, responde 404.