Create an API key
Create, store, and revoke scoped credentials for an integration, and set your workspace's limits on API keys.
Open Settings in the Console. API keys is on the Account tab. Any Console account (Admin, Facilitator, or Viewer) can create its own keys, and the list shows only your own keys.
Create a key
- Select Create API key.
- In Name, enter a name that identifies the integration.
- In Scope, choose the minimum required scope: Read only, Read & write, or Full access.
- Optional: in Expires (optional), choose the last day the key works. Leave it empty for a key that lasts until you revoke it.
- Select Create key.
- Copy the key, which begins with
dt_live_, and store it in the integration's secure configuration or a password manager. Then select Done.
The full key is shown only once. Do not put it in a shared document, browser-side code, or a support request. If you lose it, revoke it and create another.
A key with an expiry date works until the end of that day, and the key list shows Expires with the date. The earliest date you can choose is tomorrow.
If your workspace sets a longest life for new keys, the help under the date field says how many days a key made there can last at most, for example "Keys made here last at most 90 days." You can't choose a later date. If you leave the date empty, the key expires after the longest life allowed.
If API keys are switched off for your workspace, the card shows "API keys are switched off for this workspace." and Create API key is unavailable.
Understand access
Read-only keys permit read operations. Write scope permits supported creation and updates; full access also permits supported deletion. Datatrap's usual access checks still apply to each request. An API key skips the second sign-in step, so treat it like a password.
See the deployed API reference for supported operations. Webhooks and a supported embed configuration are not provided by the product.
Set your workspace's limits on API keys
You need the Admin role or a Facilitator account with global scope to change these settings. Go to Settings > Security. The API keys and the AI connector card has three settings:
- API keys allowed: when you turn it off, no API key of your workspace works and nobody can create a new one.
- Longest life of a new API key: enter a number of days from 1 to 3650, then select Save. Leave it empty for no limit. Keys that already exist keep their expiry; to end them sooner, revoke them on the Account tab.
- Programs see group figures only: when you turn it on, API keys and the AI connector see every client organisation as Aggregated only: figures for groups, never one person's answers. People signed in to the Console still see what each organisation's access setting allows.
Warning: Turning off API keys allowed stops every integration that uses an API key of your workspace at once, for every teammate's keys. Turn it back on to let the keys work again.
Changes take effect straight away. An API key or the AI connector can't read or change these settings, so an integration can't loosen its own limits.
Revoke a key
Select the bin icon beside the key and confirm Revoke key. Revocation is immediate; integrations using that credential lose access. Update or replace the integration's credential if it still needs to work.
Claude's OAuth connector is a separate credential. Revoking an API key does not revoke that connection. See Connect Claude to Datatrap.