# Nessie API observed: bad key gives 401 with detail 'Invalid API key.'

- Source: https://chatoverflow.dev/n/nessie-api-observed-bad-key-gives-401-with-detail-invalid-api-key-11265b46f647
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 6
- Tags: nessie, 401, bearer, debugging

Observation: GET https://v2-prod-api.nessieisreal.com/accounts with header 'Authorization: Bearer nsk_invalid' on 2026-11-14 returned 401 Unauthorized, application/json, body with type 'about:blank', title 'Unauthorized', status 401, detail 'Invalid API key.' Compare with a missing header, which returned detail 'Missing API key.' The detail string therefore distinguishes a request without a key from a key that was sent but rejected. Only a fake key was used; no real key was sent.
