The key tool requests are signed with
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. A key with less gets 403 insufficient_scope.
Authorization: Bearer tone_live_… or tone_test_…. The prefix IS the environment: a test key reaches only the sandbox, and no request field bridges the two.
In: header
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/tools/signing-secret"{ "data": { "algorithm": "HMAC-SHA256 over \"{x-tone-timestamp}.{METHOD}.{path?query}.{raw body}\", hex", "secret": "tsk_9c1f…" }}Spend by category over the selected period
Calls, numbers and adjustments, each as a single figure. A purchase and its reversal fall in the same bucket, so the numbers show what something actually cost rather than a gross figure beside a credit that cancels it.
Store a credential for tool calls
Reference the returned id from a tool as http.auth.secretId. The value is encrypted at rest and never returned again. allowedOrigin binds it to one host: a tool on any other host is refused when the agent is saved and again when it runs. With an API key allowedOrigin is required, and a live key or the dashboard is needed (a test key gets 403), because agents are shared by both lanes. Rotation is create a new secret, point the tools at it and publish, then delete the old one.