Invalid access token
https://resolvefrom.com/docs/errors/invalid_token
When this happens
Returned when the JWT is malformed, signed with an unknown or invalid key, carries an unrecognized scope, has an invalid issuer or audience, or is actually an rf_live_ API key sent directly to a DNS endpoint instead of a minted JWT.
How to handle it
Verify you are sending the JWT returned by POST /v1/tokens (not the raw rf_live_ API key) without modification.
Response headers
| Header | Example |
|---|---|
WWW-Authenticate |
Bearer realm="resolvefrom", error="invalid_token" |
Example response
HTTP/1.1 401
Content-Type: application/problem+json
X-Request-Id: 0195a8c0-7b1e-7000-8000-000000000001
WWW-Authenticate: Bearer realm="resolvefrom", error="invalid_token"
{
"type": "https://resolvefrom.com/docs/errors/invalid_token",
"title": "Invalid access token",
"status": 401,
"detail": "The access token is invalid.",
"code": "invalid_token",
"request_id": "0195a8c0-7b1e-7000-8000-000000000001",
"from": {
"provider": "fly.io",
"region": "iad"
}
}