Invalid or missing API key
401 · invalid_api_key
Why you got this
The request carried no Authorization: Bearer <token> header, or a token that matches no key. Revoked keys answer here too.
What to do
Check the header reads Authorization: Bearer emf_live_... with no extra whitespace. A key is shown once when it is created and cannot be retrieved later, so if yours is lost, create a new one in Settings → API keys and revoke the old. Retrying will not help.
How it arrives
Every failure on the API is an RFC 7807 problem document, sent asapplication/problem+json. Branch on type — or on its last segment, which is the code above — rather than ontitle or detail, which are prose and may be reworded.
{
"type": "https://emailfig.com/docs/errors/invalid_api_key",
"title": "Invalid or missing API key",
"status": 401
}Every code
account_closing— Account is closingconfirmation_unavailable— Confirmation email cannot be sentcontact_cleaned— Address is marked cleanedinvalid_api_key— Invalid or missing API keymalformed_request— Malformed requestnot_found— Not foundrate_limited— Rate limit exceededserver_error— Something went wrong on our endsuppressed_cannot_resubscribe— Address cannot be resubscribedvalidation_failed— Validation failed