New: Cookbooks and AI ExplanationsStep-by-Step recipes to solve problems connected to Roadmaps and Cheat Sheets. Need more details? Use AI buttons for structured and simple explanations with concrete examples throughout the whole platform.Take a look
You have an API token in your hand, but you've never proven that the API rejects a call without it and accepts one with it.
What you'll have at the end
Two curl calls against a real service: one without a token that gets rejected, one with a valid token that gets through
You need
A running API with a route that's supposed to require a bearer token, one token you know is genuinely valid for it, and curl or an equivalent HTTP client at the command line.
Not covered
How to build the bearer-token check itself, or how to generate and validate a JWT; this only covers proving a check that already exists behaves the way you think it does.
Leans on
Checked 18 Aug 2026
Part of the HTTP cookbook