Documentation / Start here
Keys, scopes and limits
Agent keys, what each scope allows, rate limits and errors.
Agent keys
Create keys under Settings, Agent keys. A key belongs to one team, has a named person accountable for it, a set of scopes and an expiry date. It looks like kz_ followed by 64 hexadecimal characters, and it is shown once. Kaze stores only a hash.
Send it on every request:
Authorization: Bearer kz_0123…Revoke a key at any time. Requests with a revoked or expired key get 401.
Declaring what a key can reach
When you create a key you say whether the agent behind it can reach private data and the internet. Kaze uses this to refuse risky combinations: an agent that can read private data, sees untrusted text and can send data out is refused work that would put all three together.
Scopes
The scopes and the tools each one allows are listed in the tool reference.
Rate limits
| Limit | Allowance |
|---|---|
| Agent calls | 240 a minute per key, with bursts of 120 |
| Inbound webhook deliveries | 120 a minute per connection |
| Failed authentication | 60 a minute per connection, counted separately so guessing cannot block real deliveries |
Over a limit, Kaze answers 429. Wait and retry.
Errors
Errors are JSON with an error message a person can read.
| Status | Means |
|---|---|
| 400 | The input is invalid. issues lists what is wrong |
| 401 | Missing, invalid, expired or revoked key |
| 403 | The key's scope, the team's rules or a stop forbids it |
| 404 | No such tool, item or team |
| 409 | Conflict, such as a stopped run, a used-up budget or a full status |
| 413 | The body is larger than 256 KB (2 MB for JUnit) |
| 422 | A rule refused it, for example the item is not ready |
| 429 | Rate limited |