Create an API key
- Go to Settings → Account Settings → API Keys and select User API Keys.
- Click New API Key.
- Enter a key name.
- Set an expiration date if you want. The default is no expiration. Accounts with a key lifetime limit cannot set a date past that limit.
- Click Create Key and copy the key. The key is shown only once.

The Create API Key dialog, with the key name and expiration date.
Refresh an API key
Refreshing a key through the REST API gives you a new key with the same name and description and revokes the old one. If you need time to update the systems that use it, pass a grace period and the old key stays valid for that many seconds. The new key cannot expire later than the original. You can refresh keys you created, and account admins can refresh any key.Revoke an API key
Revoke API key is in the key’s menu. A revoked key stops working immediately.The developer access lock under Account Settings → Security stops users from creating or refreshing API keys. It also blocks user keys from the REST and GraphQL APIs. Service keys keep working.