Channels

Telegram pairing management. Requires channels scope.

List Telegram pairing requests

get

Returns pending Telegram pairing requests for an agent. Requires channels scope.

Authorizations
AuthorizationstringRequired

API key sent as Bearer token. Two types:

  • Master key (g_master_...): full access to all agents and endpoints.
  • Agent key (g_agent_...): scoped to a single agent with specific permissions.
Path parameters
idstring · uuidRequired
Responses
200

List of pairing requests

No content

get
/agents/{id}/channels/telegram/pairing

No content

List approved Telegram pairings

get

Returns approved Telegram pairings for an agent. Requires channels scope.

Authorizations
AuthorizationstringRequired

API key sent as Bearer token. Two types:

  • Master key (g_master_...): full access to all agents and endpoints.
  • Agent key (g_agent_...): scoped to a single agent with specific permissions.
Path parameters
idstring · uuidRequired
Responses
200

List of approved pairings

No content

get
/agents/{id}/channels/telegram/pairing/approved

No content

Approve a Telegram pairing

post

Approves a pending Telegram pairing request. Requires channels scope.

Authorizations
AuthorizationstringRequired

API key sent as Bearer token. Two types:

  • Master key (g_master_...): full access to all agents and endpoints.
  • Agent key (g_agent_...): scoped to a single agent with specific permissions.
Path parameters
idstring · uuidRequired
Body
codestringRequired

The pairing code shown to the Telegram user

Responses
200

Pairing approved

No content

post
/agents/{id}/channels/telegram/pairing/approve

No content

Revoke a Telegram pairing

post

Revokes an approved Telegram pairing. Requires channels scope.

Authorizations
AuthorizationstringRequired

API key sent as Bearer token. Two types:

  • Master key (g_master_...): full access to all agents and endpoints.
  • Agent key (g_agent_...): scoped to a single agent with specific permissions.
Path parameters
idstring · uuidRequired
Body
userIdstringRequired

Telegram user ID to revoke

Responses
200

Pairing revoked

No content

post
/agents/{id}/channels/telegram/pairing/revoke

No content

Reject a Telegram pairing

post

Rejects a pending Telegram pairing request. Requires channels scope.

Authorizations
AuthorizationstringRequired

API key sent as Bearer token. Two types:

  • Master key (g_master_...): full access to all agents and endpoints.
  • Agent key (g_agent_...): scoped to a single agent with specific permissions.
Path parameters
idstring · uuidRequired
Body
codestringRequired

The pairing code to reject

Responses
200

Pairing rejected

No content

post
/agents/{id}/channels/telegram/pairing/reject

No content

Last updated