Rejected credentials return 401¶
An invalid, expired or revoked API key (the JWT sent in X-Api-Key) now returns 401 with
an empty body and a WWW-Authenticate: ApiKey header, on V1 and V2. It previously returned
403 with "Authentication credentials were not provided.", the same response as a request
without credentials. If your integration treats 403 as an invalid key, handle 401 as well.
A request without credentials still returns 403. See
Errors and status codes.