Keep your API key secret
Your API key can read and change your customers, invoices and payment links, so treat it like a password.- Call the API from your server, never from a browser or mobile app.
- Store keys in environment variables or a secrets manager, not in source control.
- Use Sandbox credentials everywhere except your production servers.
When authentication fails
A missing or wrong header returns401: