# API Authentication and Authorization

> Check which credential each API route accepts, then test object, function, scope and property authorization with small controlled requests.

Canonical: https://codelivly.com/rooms/api-authentication-and-authorization
Last updated: 2026-11-25

| | |
|---|---|
| Level | Intermediate |
| Category | Cybersecurity |
| Lessons | 5 |
| Estimated time | 3 h 5 min |
| XP | 1150 |

An API takes session cookies, bearer tokens and keys, and every route has to decide who is calling and what that caller may do. This room assesses the Ledgerline REST API after release 2.5: authentication controls and revocation evidence, one object reached through several routes, key scopes on write functions, and properties in requests and responses. You learn to pair each refusal with a control, to prepare a write that has effects outside the application, and to state coverage including what was not tested. Every lesson has a terminal exercise on realistic exports and scenario questions that need judgment.

## Lessons

1. Keys, Tokens and the Routes That Accept Them (35 min)
2. Object Authorization Across API Routes (35 min)
3. Function Authorization and Key Scopes (40 min)
4. Properties in Requests and Responses (35 min)
5. Guided Lab: Check Authorization Coverage Across the API (40 min)

## Related

- [Learning path: REST and GraphQL API Security Testing](https://codelivly.com/learning-paths/rest-and-graphql-api-security-testing)
- [All rooms](https://codelivly.com/rooms)
