About API keys
1eye Production API keys begin with:Authorization header:
The API Keys table
The API Keys page shows the API keys associated with your workspace. For each key, you can view its name, status, masked API key, creation and update information, and available actions. You can also view API request activity for an individual key or across your workspace.Create an API key
- Open your 1eye workspace and go to Developers → API Keys
- Select New API Key
- Enter a descriptive name, such as
ProductionorStaging - Create the key
- Copy the full API key and store it securely
Use an API key
Include your API key in theAuthorization header of every request:
Rotate an API key
Rotate an API key when you need to replace its current secret, such as during routine credential rotation or if you believe the key may have been exposed.- Go to Developers → API Keys
- Find the API key you want to rotate
- Select Rotate API Key
- Confirm the action
- Copy and securely store the new API key value
- Update your integration to use the new value
Revoke an API key
Revoke an API key when it is no longer needed. Revoking a key prevents it from authenticating future API requests and cannot be undone.- Go to Developers → API Keys
- Find the API key you want to revoke
- Select Revoke API Key
- Confirm the action
If you lose an API key
The full value of an API key cannot be retrieved after it has been shown. If you lose the key value, rotate the API key to generate a new value:- Go to Developers → API Keys
- Find the affected key
- Select Rotate API Key
- Copy and securely store the new value
- Update your integration
Rate limits
Rate limits apply at the workspace level, not per API key. All API keys within the same workspace share the workspace’s request limits. Creating additional API keys does not increase API capacity.Best practices
- Use separate keys for separate environments — Create distinct keys for production, staging, testing, or individual integrations.
- Use descriptive names — Names such as
Production,Staging, orData Warehousemake keys easier to identify and manage. - Store keys securely — Keep API keys in a secrets manager or environment variable instead of source code.
- Never expose keys in client-side code — API keys should only be used from secure server-side environments.
- Never share keys in plain text — Avoid sending API keys through chat, email, tickets, or other unsecured channels.
- Rotate keys periodically — Rotate credentials according to your organization’s security practices.
- Rotate exposed keys immediately — If a key may have been compromised, rotate it and update the affected integrations.
- Revoke unused keys — Revoke credentials that are no longer needed.