Skip to main content

Add Restricted API Key

POST 

/apikey/restricted/add

Issues an API key owned by the authenticated user, in that user's current company, restricted to allowedPermissions (at least one) and valid until expiresAt (UTC milliseconds, for example now plus 7 days). Requires the apikey:manage permission on the authenticated user, and a signed-in user: an API key cannot call this. The response is the only time the key is returned, and the key is not kept in API history. From the CLI, send the response straight into a secret store instead of printing it, for example terros apikey restricted add ... | jq -r .apiKey | <command that reads the secret from stdin>. This operation is not offered as a hosted MCP tool, so a key never passes through chat.

Request​

Responses​

Success