approve • AI Agent SDK
approve: Approve a pairing code, authorizing the channel.
approve
Method
</div>
This is a method of the PairingProtocol class in the protocols module.
Approve a pairing code, authorizing the channel.
Signature
def approve(channel_type: str, code: str, user_id: str, user_name: str) -> boolParameters
ParamField
strType of channel
ParamField
strThe pairing code to approve
ParamField
strUser identifier (optional, defaults to empty string)
ParamField
strHuman-readable username (optional, defaults to empty string)
Returns
ResponseField
boolTrue if approval successful, False if code invalid/expired
Source
View on GitHubpraisonaiagents/gateway/protocols.py at line 3081