Mailpark
Errors

unauthorized

HTTP 401No valid key or session

When it happens

The request had no Authorization header, or the key was wrong or revoked.

How to fix it

Send Authorization: Bearer <key> with a key from the web app (Settings → API keys). Test keys start sk_test_, live keys sk_live_.

Example response

401
{
  "error": {
    "code": "unauthorized",
    "message": "No valid key or session.",
    "fix": "Send `Authorization: Bearer <key>` with a key from the web app (Settings → API keys). Test keys start `sk_test_`, live keys `sk_live_`.",
    "docs": "https://docs.mailpark.io/errors/unauthorized"
  }
}