Skip to main content
AmploPay authenticates every API call with a Client ID and Client Secret pair. Both values are generated from the AmploPay merchant panel and must be sent with every request using HTTP Basic authentication.

Get your credentials

1

Open the panel

Sign in at app.amplopay.com and go to Integrations → API.
2

Create a new credential

Click New credential, give it a descriptive name, and select the Create/Consult transactions scope.
3

Copy the values

Copy the Client ID and Client Secret. The Client Secret is shown only once, store it in a secret manager.

Sign a request

Pass the credentials as HTTP Basic authentication. The Authorization header is the base64 encoding of client_id:client_secret.

Security best practices

  • Never commit credentials to source control. Load them from environment variables or a secret manager.
  • Restrict credential scopes to only what your integration needs.
  • Rotate credentials periodically, and immediately if you suspect a leak.
  • Use HTTPS for every request. AmploPay refuses plaintext HTTP.

Errors

If authentication fails, the API responds with 401 Unauthorized:
Common causes: