# The key tool requests are signed with

Source: https://docs.usetone.ai/reference/tools/signingSecret

> Every request an agent's tool sends to your API carries `x-tone-timestamp` and `x-tone-signature: v2=<hex>`, an HMAC-SHA256 with this key over `{timestamp}.{METHOD}.{path?query}.{raw body}` (an empty body for a GET).

`GET /v1/tools/signing-secret`
Every request an agent's tool sends to your API carries `x-tone-timestamp` and `x-tone-signature: v2=<hex>`, an HMAC-SHA256 with this key over `{timestamp}.{METHOD}.{path?query}.{raw body}` (an empty body for a GET). Recompute it over the raw bytes and compare in constant time, and reject a timestamp more than five minutes old. A live key or the dashboard only: a test key gets `403`.

Requires the `admin` scope.

## Response

| Field | Type | | Meaning |
|---|---|---|---|
| `algorithm` | string | required | How `x-tone-signature: v2=…` is computed. |
| `secret` | string | required | The key every tool request to your API is signed with. Keep it server-side. |

### Example response

```json
{
  "data": {
    "algorithm": "HMAC-SHA256 over \"{x-tone-timestamp}.{METHOD}.{path?query}.{raw body}\", hex",
    "secret": "tsk_9c1f…"
  }
}
```
