Field-Viewer API

All errors

auth.token_expired

The access token has expired

HTTP status
401
Problem type
https://api.field-viewer.com/problems/auth.token_expired
Catalogue
Generic (any operation)

What it means

The access token was valid once but has passed its expiry time.

What to do

OAuth clients: refresh the access token with the refresh token and retry. API tokens: create a new token under Settings → Developers.

Example response

Errors use RFC 9457 application/problem+json. Match on code (stable forever), not on title or detail, which are localised.

HTTP/1.1 401
Content-Type: application/problem+json

{
  "type": "https://api.field-viewer.com/problems/auth.token_expired",
  "title": "The access token has expired",
  "status": 401,
  "detail": "The access token has expired",
  "instance": "/v1/context",
  "code": "auth.token_expired",
  "requestId": "req_01jcz3k8m4f6a9t2x7v5q0wbne"
}

Returned by

No operation declares this code in its contract. The API can return it for any request, for example from the request pipeline before an operation runs.