unauthorised
HTTP 401 · Not retryable without client action.
ERPly Pro could not authenticate the request. Typical causes:
- The JWT sent in
Authorization: Bearer <token>is expired. - The JWT belongs to a different tenant / Cognito pool.
- The
X-Tenant-Idheader is missing or does not match thetenant_idclaim in the token.
How to fix
- Refresh the token via the OAuth flow of the tenant's Cognito User Pool.
- Verify that the
X-Tenant-Idheader is present and matches the token claim. - Make sure the client clock is NTP-synchronised — JWTs include
exp/nbf.
Example
{
"type": "https://errors.api.erply.pro/unauthorised",
"title": "Unauthorised",
"status": 401,
"detail": "Token has expired"
}