Authentication is missing or invalid. Despite the name, this is about identity, not permission — the server does not know who you are.
Defined in RFC 9110 §15.5.2 — 401 Unauthorized · MDN reference
A missing Authorization header, an expired access token, a signature that does not verify, a session that has been revoked.
Test the missing-header case and the invalid-token case separately. They are different bugs and they fail in different places.
A 401 means "authenticate and try again" — refresh the token once and retry, then stop. A refresh loop that never gives up is how a single expired credential becomes a sustained load spike. A compliant server sends a WWW-Authenticate header telling you which scheme it wants.
88 endpoints in this playground answer with 401. Every one is free, needs no signup, and can be called from the browser or with curl.
POST https://funapi.dev/api/friends/v1/characters — Missing or invalid token (Friends API) Open & run this endpointPOST https://funapi.dev/api/friends/v1/characters/bulk — Missing or invalid token (Friends API) Open & run this endpointPUT https://funapi.dev/api/friends/v1/characters/{id} — Missing or invalid token (Friends API) Open & run this endpointPOST https://funapi.dev/api/friends/v1/characters/bulk-delete — Missing or invalid token (Friends API) Open & run this endpointDELETE https://funapi.dev/api/friends/v1/characters/{id} — Missing or invalid token (Friends API) Open & run this endpointPOST https://funapi.dev/api/superheroes/v1/heroes — Missing or invalid token (Superhero API) Open & run this endpointDELETE https://funapi.dev/api/superheroes/v1/heroes/{id} — Missing or invalid token (Superhero API) Open & run this endpointPOST https://funapi.dev/api/superheroes/v1/heroes/versus — Missing or invalid token (Superhero API) Open & run this endpointPUT https://funapi.dev/api/pizza/v1/orders/{id}/status — Missing or invalid token (Pizza Orders API) Open & run this endpointPOST https://funapi.dev/api/football/v1/matches — Missing or invalid token (Football API) Open & run this endpointDELETE https://funapi.dev/api/football/v1/teams/{id} — Missing or invalid token (Football API) Open & run this endpointPOST https://funapi.dev/api/movies/v1/movies — Missing or invalid token (Movies API) Open & run this endpointPUT https://funapi.dev/api/movies/v1/movies/{id}/rating — Missing or invalid token (Movies API) Open & run this endpointDELETE https://funapi.dev/api/movies/v1/movies/{id} — Missing or invalid token (Movies API) Open & run this endpointPOST https://funapi.dev/api/movies/v1/movies/{id}/poster — Missing or invalid token (Movies API) Open & run this endpointPOST https://funapi.dev/api/wizarding/v1/students — Missing or invalid token (Harry Potter API) Open & run this endpointPUT https://funapi.dev/api/wizarding/v1/students/{id} — Missing or invalid token (Harry Potter API) Open & run this endpointDELETE https://funapi.dev/api/wizarding/v1/students/{id} — Missing or invalid token (Harry Potter API) Open & run this endpointPOST https://funapi.dev/api/galaxy/v1/characters — Missing or invalid token (Star Wars API) Open & run this endpointPUT https://funapi.dev/api/galaxy/v1/characters/{id} — Missing or invalid token (Star Wars API) Open & run this endpointDELETE https://funapi.dev/api/galaxy/v1/characters/{id} — Missing or invalid token (Star Wars API) Open & run this endpointPOST https://funapi.dev/api/holmes/v1/suspects — Missing or invalid token (Sherlock Holmes API) Open & run this endpointPUT https://funapi.dev/api/holmes/v1/suspects/{id} — Missing or invalid token (Sherlock Holmes API) Open & run this endpointDELETE https://funapi.dev/api/holmes/v1/suspects/{id} — Missing or invalid token (Sherlock Holmes API) Open & run this endpointPATCH https://funapi.dev/api/holmes/v1/cases/{id} — Missing or invalid token (Sherlock Holmes API) Open & run this endpoint…and 63 more endpoints across the catalog.
All HTTP status codes · All 39 mock REST APIs · Getting started guide
Last updated