Skip to content

Listar canales externos del agente​

GET
/v1/org/{org_id}/agent/{agent_id}/channel

agent.view — OWNER ADMIN OPERATOR VIEWER

Autorizaciones​

bearer

Token de servicio (kjtk_live_…), creado desde el panel en Ajustes → Tokens de servicio. Pertenece a una organización y lleva sus propios permisos.

Tipo
HTTP (bearer)
o
JWT

Sesión de una persona en el panel. No sirve para integrar.

Tipo
HTTP (bearer)

Parámetros​

Parámetros de la ruta

org_id*
Tipo
number
Requerido
agent_id*
Tipo
number
Requerido

Respuestas​

application/json
JSON
[
  
{
  
  
"id": 1,
  
  
"agent_id": 3,
  
  
"transport": "TELEGRAM",
  
  
"scope": "EXTERNAL",
  
  
"direction": "BIDIRECTIONAL",
  
  
"name": "Soporte Telegram",
  
  
"target": "@kujira_support_bot",
  
  
"bot_username": "string",
  
  
"has_token": true,
  
  
"whitelist": [
  
  
  
[
  
  
  
  
"1512401528445730899"
  
  
  
]
  
  
],
  
  
"label_whitelist": [
  
  
  
[
  
  
  
  
"Kujira"
  
  
  
]
  
  
],
  
  
"mention_off": [
  
  
  
[
  
  
  
  
"-100500"
  
  
  
]
  
  
],
  
  
"webhook_registered": true,
  
  
"inbound_path": "/webhooks/webhook/ab12cd34",
  
  
"invite_url": "https://discord.com/oauth2/authorize?client_id=123&scope=bot&permissions=68608",
  
  
"webhook": {
  
  
  
"outbound_url": "string",
  
  
  
"has_outbound_secret": false,
  
  
  
"has_inbound_secret": true,
  
  
  
"signature_header": "x-plane-signature",
  
  
  
"echo_filter": {
  
  
  
  
"actor_paths": [
  
  
  
  
  
"string"
  
  
  
  
],
  
  
  
  
"self_ids": [
  
  
  
  
  
"string"
  
  
  
  
]
  
  
  
}
  
  
},
  
  
"github": {
  
  
  
"installation_id": 82345678,
  
  
  
"repos": [
  
  
  
  
[
  
  
  
  
  
"calltek/kj-backend"
  
  
  
  
]
  
  
  
],
  
  
  
"events": [
  
  
  
  
[
  
  
  
  
  
"pull_request",
  
  
  
  
  
"pull_request_review"
  
  
  
  
]
  
  
  
],
  
  
  
"listen_scope": "all",
  
  
  
"raw_payload": false,
  
  
  
"oauth": {
  
  
  
  
"authorized": true,
  
  
  
  
"user_login": "n0v4-SYS",
  
  
  
  
"expires_at": "string"
  
  
  
}
  
  
},
  
  
"google": {
  
  
  
"connected": true,
  
  
  
"google_email": "soporte@gmail.com"
  
  
},
  
  
"drive": {
  
  
  
"folder_id": "1AbCdEfGhIjKlMnOpQrStUvWxYz",
  
  
  
"folder_name": "Facturas"
  
  
},
  
  
"calendar": {
  
  
  
"calendar_whitelist": [
  
  
  
  
{
  
  
  
  
  
"id": "primary",
  
  
  
  
  
"name": "Agenda Calltek"
  
  
  
  
}
  
  
  
],
  
  
  
"reminder_lead_minutes": 15
  
  
},
  
  
"instructions": "Review PRs where you are requested; approve if clean, else comment.",
  
  
"notify_conversation_id": 42,
  
  
"notify_conversation": {
  
  
  
"id": 42,
  
  
  
"ref": "MZROL9UC",
  
  
  
"title": "Avisos infra",
  
  
  
"contact_name": "Jonatan",
  
  
  
"transport": "TELEGRAM"
  
  
},
  
  
"is_active": true,
  
  
"inactive_reason": "string",
  
  
"created_at": "string",
  
  
"last_activity_at": "string",
  
  
"alert_recipient_user_ids": [
  
  
  
[
  
  
  
  
4,
  
  
  
  
9
  
  
  
]
  
  
]
  
}
]

Pruébalo​

Autorización
Variables
Clave
Valor

Ejemplos​