Connecfy Docs
API v1 Dashboard

Authentication Errors

Every authentication failure against the public API returns the same shape — the cause is almost always one of a short list.

JSON
{ "error": "Invalid or inactive API key.", "code": "auth_invalid_key" }

Checklist

  • Header format — must be exactly Authorization: Bearer YOUR_KEY, one space after Bearer, the raw 64-character key with no surrounding quotes.
  • Was it revoked? Check Dashboard → API Keys — a revoked key fails the same way as a wrong one, with no distinct error.
  • Copy-paste damage — a trailing newline or extra whitespace from copying out of a config file is a common invisible cause. Print the header your client is actually sending and check its length is exactly 64 characters.
  • Environment mismatch — confirm the key you're using belongs to the environment you're pointed at, if you keep separate keys per environment as recommended in API Key Security & Best Practices.

No Authorization header at all

Also a 401, but treated as a plain unauthenticated request rather than an invalid-key response — if you're getting a bare 401 with no body resembling the shape above, confirm your HTTP client is actually attaching the header rather than silently dropping it.