Skip to main content
Security Safeguards

API Security

API security protects the data, actions and availability exposed through an application programming interface.

API security protects the data and actions that software makes available through an API. An API is a defined way for one program to use another service. Its security controls should allow intended work and block access that is not allowed. These controls matter from design through daily use.

What API security checks

First, the service checks who or what is calling. It then checks what that caller may do. A valid login does not grant access to every patient's file. Each request needs the right checks for the record and task involved.

OWASP's API Security Top 10 lists common risks in these areas. They include weak access rules and requests that use too many resources. NIST's API protection guide covers controls before launch and while an API runs.

Example in healthcare

A referral API may send a file from a clinic to a specialist. The service should check the caller and the receiving practice. It should also check that the caller may share that file. Bad input should fail without placing patient details in an error log.

Checks beyond a login

Test requests with the wrong patient or practice ID. Check old API versions and remove access when an integration ends. Limit the size and rate of costly requests. Keep tokens out of logs and protect data as it travels.

Use audit logging to help trace access and faults. A gateway can enforce some common rules. The application still needs to know which records each caller may use.

Share this definition with your team

View link to copy manually

Stay current on HIPAA hosting

Practical guidance on compliance, hosting and the rules that actually apply to your practice.