Manage API keys
Generate, copy, rename, disable, delete, and replace your platform's API keys in the Preczn Dashboard.
Manage your platform's API keys in the Dashboard. Generate a key for each integration or service, disable a key you no longer trust, and replace keys without downtime. For what each kind of key does, see API keys.
You manage API keys only in the Dashboard. The API has no endpoints for them.
The API Keys page lists each key with its name, the key itself, its type, and its status:
Generate a key
A new key takes the mode the Dashboard is in when you generate it. To generate a Live mode key, switch the Dashboard to Live mode first. See Live vs. test mode.
- Go to Settings → API Keys.
- Select Generate New Key.
- In Credential Name, enter a name between 3 and 25 characters.
- In Type, select Public or Private.
- Select Generate Key.
The new key is active. To copy it, select the copy icon next to the key in the Key column. You can view and copy a key at any time from this page.
Rename a key
- On the API Keys page, select Edit on the key's row.
- In Credential Name, enter the new name.
- Select Update.
Disable or enable a key
A disabled key stops working: requests with it return 401. Enable the key again to restore it.
- On the API Keys page, select More actions (⋮) on the key's row.
- Select Disable, or Enable for a disabled key.
- In Update Key Status, select Yes.
Delete a key
Deleting a key removes it permanently. Requests with a deleted key return 401. Before you delete a key, confirm that no integration still uses it.
- On the API Keys page, select More actions (⋮) on the key's row.
- Select Delete.
- Select Yes to confirm.
Replace a key
Keys don't expire. Replace a key on your own schedule, or right away if it might be exposed. Use a separate key for each integration or service, so you can replace one without touching the others.
- Generate a new key of the same type, in the same mode.
- Update your integration to use the new key.
- Confirm that requests with the new key succeed.
- Disable the old key. When nothing breaks, delete it.
Updated about 2 hours ago
