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

# Signing Payload • AI Agent SDK

> signing_payload: Canonical bytes the device signs and the gateway verifies.

# signing\_payload

Method

> This is a method of the [**DeviceAuth**](https://praison.ai/docs/sdk/reference/praisonaiagents/classes/DeviceAuth.md) class in the [**protocols**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/protocols.md) module.

Canonical bytes the device signs and the gateway verifies.

Binds the nonce to this device, the signing time and the target agent so
a captured proof cannot be replayed for another device or agent.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def signing_payload(agent_id: str) -> bytes
```

## Parameters

**agent\_id** `str` *required*

No description available.

### Returns

**Returns** `bytes`

The result of the operation.

## Uses

* `encode`

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/gateway/protocols.py#L390)
>
> `praisonaiagents/gateway/protocols.py` at line 390


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.