API security depends on inventory and ownership. An API is a business interface, not just a URL. It exposes a workflow, data, or capability to another system or user. Security starts when teams can identify the interface, its owner, its consumers, and the decisions it permits.
The OWASP API Security Top 10 highlights risks such as broken object-level authorisation, broken authentication, unrestricted resource consumption, and unsafe consumption of APIs. Those risks are difficult to manage when the estate is unknown.
On this page
- Build an API inventory
- Authorisation is about the object
- Control machine identities
- Design for resource limits
- Treat API data as a workflow
- Use versioning and retirement deliberately
- Monitor the calls that matter
- What does not matter as much as a complete estate view
- Turn the design into an operating control
- Test the failure path
- Measure the result without false precision
- Review change and ownership
- Keep the handoff explicit
Build an API inventory
Record public, partner, internal, administrative, mobile, GraphQL, webhook, and machine-to-machine interfaces. Include versions, hosts, methods, data classes, authentication, consumers, owner, and lifecycle status.
Compare the inventory with gateway logs, code repositories, DNS, and deployment records. A document written from memory will miss shadow and forgotten interfaces.
- Endpoint and version.
- Owner, consumer, and data class.
- Authentication, exposure, and lifecycle status.
Authorisation is about the object
Authentication answers who is calling. Authorisation must also answer whether that caller may access this object, perform this action, in this context. A valid token does not make every object available.
Test access across users, tenants, roles, records, and states. Use server-side checks and avoid trusting identifiers or permissions supplied only by the client.
- Caller and tenant context.
- Object and action permission.
- Positive and negative tests.
Control machine identities
Service accounts, API keys, certificates, and workload identities often live longer and have broader access than human accounts. Give them an owner, purpose, scope, rotation path, and expiry or review date.
Remove abandoned credentials and separate environments. A key copied into code or shared across systems makes investigation and containment harder.
- Identity owner and purpose.
- Scope, rotation, and expiry.
- Secret storage and use evidence.
Design for resource limits
An API can be abused without a dramatic software flaw. Large payloads, expensive queries, repeated requests, and unbounded pagination can consume money, capacity, or downstream services.
Set limits based on the operation and customer need. Monitor rejected, throttled, slow, and expensive requests so a limit can be tuned rather than guessed.
- Payload and query limits.
- Rate, quota, and concurrency controls.
- Cost, latency, and rejection signals.
Treat API data as a workflow
Map what happens after an API accepts a request. A weak downstream check, unsafe parser, or over-privileged integration can turn a valid request into an unsafe action.
Review trust boundaries and data transformations. “Internal API” is not a security boundary if many systems or suppliers can call it.
- Downstream systems and actions.
- Validation and transformation.
- Trust boundary and integration owner.
Use versioning and retirement deliberately
Old API versions remain attractive because clients depend on them. Publish ownership, support dates, migration guidance, and retirement checks.
Do not retire an interface based only on a code repository. Check traffic, logs, client inventories, documentation, and supplier use before removing access.
- Version support policy.
- Traffic and consumer evidence.
- Migration and retirement record.
Monitor the calls that matter
Logs should support investigation without collecting more sensitive data than necessary. Capture identity, object, action, result, request correlation, source, and relevant policy decision.
Use alerts for meaningful patterns such as unusual object access, permission failures, key reuse, high-cost calls, and changes to API exposure.
- Correlation and decision context.
- Sensitive-data handling.
- Detection owner and response path.
What does not matter as much as a complete estate view
A gateway, WAF, schema file, or security scan can help, but none replaces an owned inventory and tested authorisation. Controls work when teams know what they protect and what action follows a signal.
Keep inventory, code, deployment, and runtime evidence connected.
- Do not call internal equal to trusted.
- Do not test only the happy path.
- Do not leave versions ownerless.
Turn the design into an operating control
A design becomes an operating control when a named person can perform it, another person can review it, and the organisation can show evidence that it happened. Write the trigger, the action, the expected result, and the exception path in language an operator can use during a busy day.
Keep the control close to the workflow. If staff must leave one system, search an unrelated document, and ask another team before acting, the control will be skipped when pressure rises. Reduce that friction without hiding the decision.
- Name the trigger and operator.
- State the expected result.
- Record the exception and escalation.
Test the failure path
Happy-path demonstrations are useful for learning, but they do not prove resilience or security. Test incomplete data, unavailable dependencies, expired credentials, unexpected volume, delayed input, and a human decision that disagrees with the system output.
A failed test is useful when it produces an owner, a correction, a retest date, and a decision about whether the remaining risk is acceptable. Do not quietly convert a failed test into a passing narrative.
- Choose realistic failure cases.
- Record evidence and observed impact.
- Assign correction and retest dates.
Measure the result without false precision
Choose a small set of measures that show whether the control or workflow is working. Define the denominator, time period, data source, owner, and action that follows a meaningful change.
Use estimates and scenarios honestly. A precise-looking number built on incomplete data is less useful than a range with a clear boundary and a plan to improve measurement.
- Keep definitions stable.
- Separate measured, estimated, and projected results.
- Connect each measure to a decision.
Review change and ownership
Technology environments change through releases, suppliers, data, policies, identities, and user behaviour. A control that was adequate at launch may not remain adequate after a material change.
Set a review trigger as well as a calendar review. When the owner, dependency, data, exposure, or failure mode changes, revisit the design and keep the decision record with the evidence. Keep the next review date visible.
- Record version and change.
- Review after material events.
- Keep owner, date, and decision visible.
Keep the handoff explicit
Most operational failures occur between teams, systems, or stages of work. State what one owner must provide, what the next owner checks, and what happens when the handoff is late, incomplete, or rejected.
This simple contract improves incident response and day-to-day work. It also makes automation safer because the input, output, and exception are visible rather than implied.
- Name the sender and receiver.
- Define the input and acceptance check.
- Record rejection, retry, and escalation.
Operating rule: Name the owner, the evidence, and the action before calling a technology control complete.
Comparison table
| Area | Practical question | Evidence to request |
|---|---|---|
| Estate | What interfaces exist? | Inventory, versions, exposure, owner |
| Access | Who may do what? | Identity, object, action, context |
| Abuse | What can be exhausted? | Rate, payload, cost, latency limits |
| Response | Can a call be investigated? | Correlation, logs, alerts, owner |
FAQ
Is authentication enough for API security?
No. Authentication identifies a caller. Authorisation must enforce whether that caller may perform the requested action on the specific object in context.
How should teams find undocumented APIs?
Compare gateway and runtime logs with repositories, deployment records, DNS, documentation, and client inventories.
Should every API have the same rate limit?
No. Limits should reflect operation cost, customer need, data sensitivity, and downstream capacity.
When is an API ready for retirement?
When traffic, owners, consumers, migration, documentation, and a safe removal plan have been checked and recorded.
How can a team start without rebuilding everything?
Start with one important workflow, define the owner and evidence, test the failure path, and expand only after the operating result is understood.
What should be recorded after a review?
Record the scope, date, evidence, decision, owner, unresolved risk, and next review or correction. A short honest record is more useful than an impressive but untraceable claim.
When should the design change?
Change it when the workflow, data, identity, dependency, supplier, exposure, user group, or failure mode changes materially. A calendar review alone may miss the event that changed the risk.
What is a useful first metric?
Choose a measure close to an operating decision, define its denominator and time period, and state what action follows when it crosses the agreed threshold.
Conclusion
The useful technology decision is the one that can be tested. Define the operating problem, record the evidence, assign ownership, and review the result after launch. Clear scope beats a large claim, and a measured workflow beats a polished demo.
Sources
More Stories
Supplier Cyber Risk Needs Evidence, Not a Questionnaire
Supplier cyber risk is easier to manage when organisations classify dependencies, verify important controls, monitor change, and plan response instead of relying on a form.
Digital Identity Design Is More Than a Login
Digital identity systems need trustworthy proofing, authentication, recovery, federation, authorisation, and lifecycle controls, not only a sign-in screen.
Ransomware Recovery Is a Business Process
Ransomware recovery depends on ownership, protected backups, recovery order, tested procedures, and clear decisions, not only on buying another security tool.
Software Bills of Materials Make Risk Actionable
A software bill of materials makes software supply-chain risk easier to investigate by recording components, versions, relationships, and provenance.
Button, The Shelf partner to revolutionize creator marketing
Button, the leading mobile commerce optimization platform, has announced a strategic partnership with The Shelf Influencer Marketing Agency. This collaboration...
Lightricks teams up with Shutterstock for AI video training
Lightricks, a global leader in AI-powered creative technology, has announced a groundbreaking partnership with Shutterstock, Inc. to license and integrate...