Create a temporary API key
sec_create_api_keyCreate a temporary SEC Blast API key (1 hour to 7 days) for scripting against the SEC EDGAR REST API. Returns the key, expiry, base URL, and Authorization header; revoke it on the Keys page.
Instructions
Create a temporary SEC Blast API key (1 hour to 7 days) for scripting against the SEC EDGAR REST API. Returns the key, when it expires, the base URL, the Authorization header, and a curl example. Requests with the key count toward the plan's allowance and rate. The key appears on the Keys page, where you can revoke it. Input: hours (1 to 168) or days (1 to 7), not both; default 24 hours; optional name. Example: {"hours": 4}.
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": "sec_create_api_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Lifetime in days, 1 to 7. Default 1. Not with hours. | |
| name | No | A label for the key on the Keys page, up to 60 characters. | |
| hours | No | Lifetime in hours, 1 to 168. Default 24. Not with days. |