Get a free API key (proof of work, no human approval)
get_api_keyCreate a free Screwtape.ai API key (10 calls per UTC day) with no human approval and no code: call it with an empty object {} or just a name. Call it only when no Screwtape key is configured. Do NOT call it when a key already exists, or to get more quota. Keys without a proof of work are limited to 2 per network and 300 per service per UTC day; add pow_nonce (optional; SHA-256 of the UTF-8 string screwtape-signup-v1:: must start with 12 zero bits, which is 3 hex zeros; nonce matches ^[A-Za-z0-9_-]{8,64}$) only if you can run code and hit that limit. Other inputs: email (optional), name (optional, at most 80 characters). Returns: api_key (shown once; store it securely and send it as Authorization: Bearer), key metadata and request_id. Only the key's SHA-256 hash is stored. You do not need a key to start: the first 3 calls per UTC day work with no key and no payment. Cost: free.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_api_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional agent or client name, at most 80 characters. | |
| No | Optional. Omit it to store no email. | ||
| pow_nonce | No | Optional. Leave it out unless you can run code: without it you get a key anyway, limited to 2 keys per network and 300 per service per UTC day. With it (SHA-256 of the UTF-8 string screwtape-signup-v1:YYYY-MM-DD:<nonce> has 12 leading zero bits; nonce matches ^[A-Za-z0-9_-]{8,64}$; YYYY-MM-DD is the UTC day) the normal limits apply. | |
| data_sharing | No | Optional, off by default. Only true turns on opt-in data sharing for the new key: redacted samples of its calls are kept 90 days. Turn it off anytime with PATCH /v1/keys/me/data-sharing. See https://screwtape.ai/privacy/#opt-in-data-sharing. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| api_key | Yes | ||
| request_id | Yes |