APIs now power mobile apps, single-page front ends, partner integrations and AI agents, and they expose business logic and data directly. The most damaging API flaws are rarely exotic: a user changes an ID in a request and sees someone else's data, or an endpoint returns far more fields than the app displays. This course covers how APIs are attacked and how to design, build and test them so those attacks fail.
What you'll learn
- The OWASP API Security Top 10 and real-world examples of each risk
- Broken object-level and function-level authorisation, and patterns that prevent them
- Authentication for APIs: sessions, API keys, OAuth 2.0, OpenID Connect and PKCE
- JWT pitfalls: weak signing, missing validation, long lifetimes and storing tokens in the browser
- Excessive data exposure and mass assignment
- Input validation with schemas, and safe handling of file uploads and webhooks
- Rate limiting, quotas and protection against resource exhaustion and business logic abuse
- GraphQL-specific risks: introspection, query depth and batching attacks
- API gateways, inventory of endpoints and retiring old API versions
- Testing APIs for security with Postman, Burp Suite and automated checks in CI
Who it's for
- Back-end developers building REST or GraphQL APIs
- Mobile and front-end developers who consume and design APIs
- QA and security engineers responsible for testing APIs
Prerequisites
- Experience building or using a REST API (see REST and GraphQL API Design)
- Working knowledge of at least one back-end language
- Familiarity with HTTP methods, headers and status codes
Outcomes
By the end of this course you will be able to:
- Find and fix broken authorisation in an existing API.
- Implement OAuth 2.0 and JWT validation without common mistakes.
- Add schema validation, rate limits and safe error handling to endpoints.
- Build a repeatable security test suite for your API.
Course outline
| Module | Topic |
|---|---|
| 1 | How APIs are attacked |
| 2 | The OWASP API Security Top 10 |
| 3 | Object- and function-level authorisation |
| 4 | Authentication, OAuth 2.0 and OpenID Connect |
| 5 | JWTs done right |
| 6 | Data exposure and mass assignment |
| 7 | Input validation, uploads and webhooks |
| 8 | Rate limiting and business logic abuse |
| 9 | GraphQL security |
| 10 | Gateways, inventory and versioning |
| 11 | Security testing for APIs |
| 12 | Project: audit and fix a vulnerable API |
FAQ
How is this different from the web application security course?
Web Application Security (OWASP Top 10) covers browser-facing apps broadly. This course goes deeper on API-specific risks, tokens and machine-to-machine access.
Does it cover APIs used by AI agents?
Yes. We look at scoping tokens and permissions for agents and tools that call your API on a user's behalf.
Which language are examples in?
Examples use Node.js and Python, and the principles apply to any back-end stack.
How do I join?
Get in touch and we'll share the current format, schedule and enrolment details.