Authentication Required
The request did not include valid authentication credentials.
At a glance
| Field | Value |
|---|---|
| HTTP status | 401 |
| Error code | AUTHENTICATION_REQUIRED |
| Type URL | https://developer.fieldnation.com/error-codes/authentication-required |
| Content-Type | application/problem+json |
| Retryable | false |
| Agent action | REAUTHENTICATE |
What it means
The request did not include valid authentication credentials.
When it is returned
- The
Authorizationheader /access_tokenparameter was missing. - The access token expired (tokens are valid for one hour).
- The token signature was invalid or revoked.
Troubleshooting
- Generate a fresh access token via the OAuth 2.0 flow.
- Confirm the token is sent on every request (header or query parameter).
- Implement token refresh ahead of the one-hour expiry.
Example response
HTTP/1.1 401 Authentication Required
Content-Type: application/problem+json{
"type": "https://developer.fieldnation.com/error-codes/authentication-required",
"title": "Authentication Required",
"status": 401,
"detail": "The provided access token has expired.",
"code": "AUTHENTICATION_REQUIRED",
"retryable": false,
"correlationId": "01J9X7Q3F6E2K8B1Z5C4M0V2HA",
"agent": {
"action": "REAUTHENTICATE"
},
"errors": []
}Related
Last updated on