> ## 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.

# revoke • AI Agent SDK

> revoke: Revoke authorization for a channel.

# revoke

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**PairingProtocol**](../classes/PairingProtocol) class in the [**protocols**](../modules/protocols) module.

Revoke authorization for a channel.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def revoke(channel_id: str, channel_type: str) -> bool
```

## Parameters

<ParamField query="channel_id" type="str" required={true}>
  Channel identifier
</ParamField>

<ParamField query="channel_type" type="str" required={true}>
  Type of channel
</ParamField>

### Returns

<ResponseField name="Returns" type="bool">
  True if revocation successful, False if not found
</ResponseField>

## Source

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