swepayError Catalog

Native Email

Unauthorized 401

Authentication is missing or invalid.

type https://errors.swepay.com.br/native-mail/unauthorized

What this means

TODO: preencher pelo time Native Email.

Stub entry demonstrating the multi-service pattern. Until the Native Email team documents service-specific nuances, refer to the shared Unauthorized problem type.

Common causes

  • No `Authorization` header was sent.
  • The access token is expired or has been revoked.

How to resolve

Obtain a fresh access token and retry with a valid Authorization: Bearer <token> header. See common/unauthorized for the shared guidance.

Example response

HTTP 401 · application/problem+json
{
  "type": "https://errors.swepay.com.br/native-mail/unauthorized",
  "title": "Unauthorized",
  "status": 401,
  "detail": "Authentication is required to access this resource.",
  "instance": "/v1/messages"
}

References

Machine-readable: /native-mail/unauthorized.json