Secure API endpoints

Last updated Apr 24, 2026 API endpoints are vulnerable to schema violations, abuse, and unauthorized access. Cloudflare API Shield validates requests against your OpenAPI specification, and mutual TLS (mTLS) authenticates known clients with certificates.

Solutions

API Shield

Discover, secure, and monitor your APIs. Learn more about API Shield.

  • API discovery - Automatically identify API endpoints in your traffic, including undocumented ones
  • Schema validation - Reject requests that do not conform to your OpenAPI specification
  • Sequence mitigation - Detect and block API abuse patterns such as out-of-order requests

mTLS

Mutual TLS client certificate authentication. Learn more about mTLS.

  • mTLS authentication - Require client certificates for machine-to-machine API access

Get started

  1. API Shield get started
  2. Set up mTLS

Was this helpful?

YesNo

On this page

Secure API endpoints - 图1Docs

{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/use-cases/application-security/api-endpoints/#page","headline":"Secure API endpoints","description":"Protect APIs with schema validation, rate limiting, and authentication.","url":"https://developers.cloudflare.com/use-cases/application-security/api-endpoints/","inLanguage":"en","image":"https://developers.cloudflare.com/use-cases/application-security/api-endpoints/og.png?v=bcdfa15a5ae66400","dateModified":"2026-04-24","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}


description: Protect against SQL injection, XSS, and other OWASP Top 10 vulnerabilities. title: Block application attacks image: https://developers.cloudflare.com/use-cases/application-security/block-attacks/og.png?v=20f1a044699de734


Skip to content

Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/use-cases/llms.txt
Use this file to discover all available pages before exploring further.