How to secure an API integration from keys to record access
Give integrations limited access and test scope checks, credential rotation and revocation.

In short
- Give each integration its own account and separate credentials per environment.
- Knowing the caller’s identity is only the start.
- Test rotation away from production.
- Next steps
On this page
Use separate integration credentials
Give each integration its own account and separate credentials per environment. Limit what it can read or write. Keep credentials in a secret store and out of logs. Give temporary credentials an expiry date and an owner.
Check access on every request
Knowing the caller’s identity is only the start. Check its organisation and record access on the server and validate inputs. Test a valid account that attempts to read a different customer’s record.
Rehearse revocation
Test rotation away from production. Decide if two credentials may work during a short overlap and when the old one is disabled. Log useful request references without recording tokens. Verify you can pause the affected integration during an incident.
Next steps
Creagrid / actie
Practical checklist
Describe the problem and intended outcome.
Involve the people who use the process every day.
Test the riskiest assumption with a small prototype.
Define tests, ownership and maintenance up front.

