Join our Newsletter — 33% off our NHI Course

REST API

A REST API is an HTTP-based interface for creating, reading, updating, and deleting resources through predictable endpoints and verbs. It usually exchanges JSON, uses standard status codes, and treats each route as a resource-oriented operation that clients can call consistently across tools and platforms.

What REST APIs are for

A REST API is a predictable way for one system to work with another system’s resources over HTTP. Its value comes from consistent verbs, stable endpoints, and shared response patterns that make integration easier to build, test, and maintain.

Because REST is resource-oriented rather than procedure-oriented, the design choice shapes how clients think about objects, collections, and state changes. That makes the interface easier to understand, but it also means the API boundary becomes part of the application’s security posture: every exposed route, method, and response pattern can influence what is discoverable, callable, or abused.

How REST shapes access and control

REST itself does not provide security, it provides a structure around which security controls are applied. Authentication, authorization, input validation, rate limiting, and session handling are layered onto the interface, not built into the REST style itself.

That separation is useful, but it also creates common failure modes. A clean resource path does not guarantee that the underlying object is properly protected, and a familiar HTTP verb does not guarantee that the action is safe. The most important control question is whether each route enforces the right access decision for the resource it exposes.

REST APIs also tend to surface predictable resource names and status codes, which improves automation and observability. The same predictability can help attackers enumerate endpoints or probe for authorization gaps, so consistency is beneficial only when paired with strong control enforcement.

For API security testing, the OWASP API Security Top 10 is the most direct companion reference because it focuses on the recurring failure patterns that arise in resource-oriented interfaces.

Common design and implementation characteristics

Most REST APIs exchange JSON, use standard HTTP status codes, and expose nouns through paths rather than embedding business logic in custom RPC-style calls. That convention makes APIs easier to consume across tools and platforms, and it helps teams create consistent client behaviour.

In practice, REST design also touches versioning, pagination, filtering, idempotency, and error handling. These are not merely cosmetic choices: they affect interoperability, backward compatibility, and how safely clients can retry requests without duplicating actions or losing state clarity.

REST is often treated as a design style rather than a strict standard. That matters because implementations vary, and teams may use the REST label for interfaces that are only loosely resource-based. For practitioners, the key is whether the API behaves predictably enough for clients and controls to reason about resources, methods, and state transitions.

When teams need a structured way to test those behaviours, the OWASP Web Security Testing Guide provides useful coverage for interface testing, including the security checks that matter around web-delivered APIs.

Why REST matters in security architecture

REST APIs sit at the intersection of application design, integration, and trust boundaries. They are often the control plane for data access, workflow execution, and cross-system communication, which means a weakness in the API often becomes a weakness in the business process behind it.

That is why resource-level authorization, input validation, and least-privilege access are so important. If a client can call a predictable endpoint but the server does not verify the caller’s rights on each object, the API can become a direct path to data exposure or unauthorized state changes.

REST is also a common place where secrets, tokens, and service credentials are used to automate access. The interface may be generic, but the risk is concrete: when machine-to-machine access is broad or poorly governed, one exposed API can unlock many downstream resources.

For teams mapping REST APIs into broader secure-by-design practice, OWASP SAMM is useful because it frames API security as part of a mature software assurance program rather than as a one-off hardening task.

Risk and Threat Considerations

REST APIs are attractive targets because their structure is predictable and their business value is high. A weak route, excessive privilege, or broken object-level authorization can expose data or actions across an entire application, especially when the same interface is used by many clients and automation paths.

Failure mechanism: Attackers or misconfigured clients abuse predictable endpoints, weak access checks, or broad tokens to enumerate resources, bypass intended restrictions, or perform unauthorized actions on objects they should not control.

Impact: The result can be data disclosure, account or workflow abuse, destructive updates, service disruption, or large-scale compromise of downstream systems that trust the API.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Agentic AI Top 10 and OWASP Non-Human Identity Top 10 address the attack and risk surface, while CIS Controls v8 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Agentic AI Top 10 API and Tool Access Abuse REST APIs can be abused through exposed actions and predictable interfaces.
Recommendation — Review API calls for authorization gaps and restrict high-impact actions to least privilege.
OWASP Non-Human Identity Top 10 API Keys and Secret Management REST APIs often rely on secrets and tokens for machine-to-machine access.
Recommendation — Store API credentials securely and rotate them on a defined lifecycle.
CIS Controls v8 CIS 6 — Access Control Management REST endpoints require consistent access enforcement and least privilege.
Recommendation — Enforce least-privilege access for API routes and remove unnecessary permissions.

Practitioner Guidance

What to watch for: Treat REST APIs as security boundaries, not just integration surfaces. The most important review question is whether every method and route enforces object-level and action-level authorization consistently, especially where automation or third-party clients are involved.

Practitioner takeaway: A REST API is only as safe as the controls behind each resource, so predictable design should always be matched with equally predictable enforcement.