paperclip_create_agent_key
Create a long-lived API key for an agent. Use when provisioning a new key after onboarding or rotating a compromised one.
Instructions
⚠ Board-only: Create a long-lived API key for an agent. The key value is shown only once — store it securely.
Args:
agentId: string — Agent UUID (example: "agt_abc123")
name: string (optional) — Key label for identification (example: "prod-key")
expiresAt: string (optional) — ISO 8601 expiry datetime (example: "2027-01-01T00:00:00.000Z")
Returns: Returns the created key record: id, name, key (plaintext, shown once), agentId, expiresAt.
Examples:
Use when: provisioning a new API key after onboarding an agent or rotating a compromised key
Don't use when: the agent already has a valid key — list existing keys via paperclip_get_agent first
Error Handling:
401: authentication failed → check PAPERCLIP_API_KEY
403: permission denied → this tool requires a board (human) API key
404: agent not found → verify ID with paperclip_list_agents
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"agentId": "<agentId>"
},
"name": "paperclip_create_agent_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agentId | Yes | Agent UUID | |
| name | No | Key label | |
| expiresAt | No | ISO 8601 expiry datetime (e.g. '2027-01-01T00:00:00.000Z') |