About API keys
- Keys use the format 1eye_live_… and are passed as a Bearer token in the Authorization header
- A new key’s full value is shown exactly once, at creation — copy it somewhere safe right away
- After that, keys are shown in a masked format, like 1eye_live_••••••••8f21
- A key is either active or revoked — once revoked, a key cannot be restored
Create an API key
- Open your 1eye workspace and go to Developers > API Keys
- Select New API Key
- Give the key a descriptive name, such as Prod Key or Staging Key
- Copy the full key value shown — it will not be shown again
Using your API key
Pass the key as a Bearer token in the Authorization header of every request:Revoke a key
Revoking a key immediately blocks it from authenticating further requests. This cannot be undone.- Go to Developers > API Keys
- Find the key and select Revoke
- Confirm the action
If you lose a key
A key’s full value can’t be retrieved again after creation. If a key is lost or exposed, don’t try to recover it — replace it:- Create a new API key
- Update your integration to use the new key
- Revoke the old key
Best practices
- Use separate keys per environment — Create distinct keys for production, staging, and testing so you can revoke one without affecting the others.
- Name keys clearly — Use names like Prod Key or Staging Key so your team knows what each key is used for.
- Revoke keys you no longer use — Remove unused or old keys instead of leaving them active.
- Never share a key in plain text — store it in a secrets manager or environment variable, not in code or chat