Security

The security of any API is important to producer and consumer, and no consumer should be using any 3rd party API platform that does not clearly communicate and demonstrate an API is secure. API security is a foundational business building block in any API ecosystem when it comes to building trust and keeping consumers integrated with an API.

Also known as: InfoSec, Application Security, AppSec, API Security

Example

security.yaml
- type: Security
  url: https://developers.example.com/security

Standards

HTTP Headers

HeaderDirectionSpecDescription
Strict-Transport-Security response RFC 6797 Enforces HTTPS for subsequent requests to the host.
Content-Security-Policy response W3C CSP Level 3 Restricts which resources a UA may load; applies to API-backed web surfaces.
X-Content-Type-Options response WHATWG Fetch (nosniff) Disables MIME-type sniffing.
Referrer-Policy response W3C Referrer Policy Controls Referer header leakage.
Cross-Origin-Resource-Policy response WHATWG Fetch Restricts cross-origin embedding of API responses.

Status Codes

Well-Known Paths

OpenAPI Expression

Link Relations

Governance Rules

Risk & Compliance

OWASP:

Compliance:

Security: Treat the API surface as the security boundary. Combine transport security (TLS 1.2+/1.3, HSTS), strong authN/Z, input validation, output encoding, rate limiting, secret management, dependency/SBOM scanning, signed builds (SLSA), runtime monitoring, and a published vulnerability-disclosure policy (RFC 9116) with a clear SLA for triage and remediation.

Tools

Suggested Metrics

Example Implementations

Related Properties

Tags


All Common Properties