Create a workspace-scoped API key
On API keys, choose Create key, name it, pick an expiration, set Linked account (yourself or the service account) and scope it to the workspace. The key is shown once; verapli captures it by selector into your env file.
verapli captures ANTHROPIC_API_KEY here by plain code: encrypted in your browser, never shown to AI.
If something goes wrong (3)
- Create key button is disabled.: Your workspace role cannot create keys (Workspace User); ask an admin for Workspace Developer, or for a service account key. [3]
- 400 error saying the key is not scoped to a workspace.: Send the anthropic-workspace-id header with the workspace's wrkspc_ id, or create a key scoped to that workspace. [2]
- 401 authentication_error after some weeks.: The key expired; expired keys cannot be reactivated - create a new one. [2]
Where: https://platform.claude.com/settings/keys