FOR AGENTSSkip the HTML: this page as .md · llms.txt · openapi.json · MCP mcp.dizo.ai/mcp

API keys

POSTapi.dizo.ai/v1/keysFree

Create a key for an agent or teammate with its own caps and endpoint allow-list.

Requires keys:write. The secret is returned once.

Cost: Free. Charged never.

Parameters

NameTypeDescription
namerequiredstringLabel.
scopesstring[]data:read, billing:read, billing:write, keys:write.
daily_cap_credits / monthly_cap_creditsintegerPer-key caps.
max_credits_per_requestintegerPer-request ceiling.
allowed_endpointsstring[]Allow-list of paths.

Example

{
  "name": "sdr-agent",
  "scopes": [
    "data:read"
  ],
  "daily_cap_credits": 2000,
  "monthly_cap_credits": 20000,
  "max_credits_per_request": 500,
  "allowed_endpoints": [
    "/v1/search",
    "/v1/email/find"
  ]
}
{
  "id": "key_5Nq",
  "name": "sdr-agent",
  "secret": "dz_live_…shown once…"
}
curl -X POST https://api.dizo.ai/v1/keys \
  -H "Authorization: Bearer $DIZO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"sdr-agent","scopes":["data:read"],"daily_cap_credits":2000,"monthly_cap_credits":20000,"max_credits_per_request":500,"allowed_endpoints":["/v1/search","/v1/email/find"]}'
import os, requests

r = requests.post(
    "https://api.dizo.ai/v1/keys",
    headers={"Authorization": f"Bearer {os.environ['DIZO_API_KEY']}"},
    json={"name":"sdr-agent","scopes":["data:read"],"daily_cap_credits":2000,"monthly_cap_credits":20000,"max_credits_per_request":500,"allowed_endpoints":["/v1/search","/v1/email/find"]},
)
print(r.json(), r.headers["x-dizo-credits-used"])
const r = await fetch("https://api.dizo.ai/v1/keys", {
  method: "POST",
  headers: { Authorization: `Bearer ${process.env.DIZO_API_KEY}`, "Content-Type": "application/json" },
  body: JSON.stringify({"name":"sdr-agent","scopes":["data:read"],"daily_cap_credits":2000,"monthly_cap_credits":20000,"max_credits_per_request":500,"allowed_endpoints":["/v1/search","/v1/email/find"]}),
});
console.log(await r.json(), r.headers.get("x-dizo-credits-used"));

Errors follow the standard error shape. Add "dry_run": true for a free quote and "max_credits" to cap spend. Agents: this page is also at /docs/keys.md.