Authorization header.
Header format
Key types
The prefix of an environment key (
mfx_test_ or mfx_live_) determines routing automatically. There is no separate sandbox URL or environment toggle. See Environments for how isolation works.
Use an environment key for /environment/*, /faxes, /webhooks, and /events. Use an mfx_acct_ key for /account/*. A key on the wrong route returns HTTP 403 with key_not_scoped_for_account or key_not_scoped_for_operations. See API keys and scopes for the endpoint table.
Getting your first keys
Register a sandbox account to receive your first API keys:api_keyis yourmfx_test_key. Use it to send sandbox faxes.api_key_accountis yourmfx_acct_key. Use it for/account/*requests, such as creating more keys.
Multiple keys
Each account can have multiple named API keys. Manage them in the dashboard, or through/account/keys with an mfx_acct_ key. Use separate keys for different applications or environments, so you can rotate one without touching the others.
POST /account/keys and DELETE /account/keys/{id} do not work on mfx_acct_ keys: both return HTTP 403 with acct_key_creation_dashboard_only. Create and revoke mfx_acct_ keys in the dashboard.
Key rotation
Create a new key withPOST /account/keys or in the dashboard, update your application, then revoke the old key with DELETE /account/keys/{id} or in the dashboard. Keys do not expire on their own, so the old key keeps working until you revoke it. Rotate an mfx_acct_ key in the dashboard.
Security
- Store keys in environment variables or a secrets manager, not in source code
- Use sandbox keys (
mfx_test_) during development and testing - Rotate keys immediately if you suspect a leak
- Each
mfx_test_ormfx_live_key is scoped to a single environment mfx_acct_keys are scoped to the account and have no environment access