> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Pairing Protocol • AI Agent SDK

> PairingProtocol: Protocol for channel pairing implementations.

# PairingProtocol

> Defined in the [**protocols**](../modules/protocols) module.

<Badge color="blue">AI Agent</Badge>

Protocol for channel pairing implementations.

Manages the authorization of external channels (Telegram, Slack, UI)
to communicate with the gateway through signed codes.

## Methods

<CardGroup cols={2}>
  <Card title="generate_code()" icon="function" href="../functions/PairingProtocol-generate_code">
    Generate a new pairing code for a channel.
  </Card>

  <Card title="approve()" icon="function" href="../functions/PairingProtocol-approve">
    Approve a pairing code, authorizing the channel.
  </Card>

  <Card title="is_paired()" icon="function" href="../functions/PairingProtocol-is_paired">
    Check if a channel is authorized.
  </Card>

  <Card title="list_paired()" icon="function" href="../functions/PairingProtocol-list_paired">
    List all authorized channels.
  </Card>

  <Card title="revoke()" icon="function" href="../functions/PairingProtocol-revoke">
    Revoke authorization for a channel.
  </Card>

  <Card title="list_pending()" icon="function" href="../functions/PairingProtocol-list_pending">
    List pending pairing requests.
  </Card>
</CardGroup>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/gateway/protocols.py#L2153">
  `praisonaiagents/gateway/protocols.py` at line 2153
</Card>
