API keys
Create a Workspace API key to call the Hop API from scripts, CI and agents.
An API key belongs to one Workspace and carries the scopes you choose. Only Workspace owners can create, rename and revoke API keys.
Create an API key
Choose a name, scopes and expiry
Select Create API key. Give the key a name you will recognise, for example
CI deploy, select only the scopes it needs, and set when it expires (1 to 365 days, 30 by default). Write and revoke don't include read, so select both when the key needs both.Copy the key
Hop shows the key, which starts with
hop_pat_, only once. Copy it and store it in a secret manager or your CI secrets.
Use the key
Send the key as a Bearer token. The key is bound to its Workspace, so you do not send a Workspace ID:
Rename or revoke a key
In Settings › API keys, open the key's ⋯ menu and select Rename or Revoke. Requests that use a revoked key fail, and you cannot undo a revocation.
To see when a key expires, hover the info icon beside its creation date.
Each key shows one colored icon per resource it can reach. Hover an icon to see what the key can do there.