Authentication
UnblockPay authenticates your API requests using API keys and IP allowlist. A request is only accepted when it carries a valid API key, originates from an IP address that has been allowlisted for your account, and includes a User-Agent header.
We require all requests to use HTTPS and will reject any API requests made over plain HTTP.
API keys
Each API key works only with a single environment, if you have a key for sandbox, it won't work for production.
To generate our production API Key, please go to our Dashboard .
- Log into our dashboard
- Go the “API keys” section
- Click on “Generate API key”
- Enter a name for you API Key
- Click on “Generate API key”
Your API keys provide full access to our APIs so make sure to keep them fully secure. They should never be exposed in any public forums, or broadcasted internally within your organization.
Each API key works only with a single environment — if you have a key for sandbox, it won't work for production.


IP allowlist
A valid API key is not enough. Your server IPs must be allowlisted.
Every request is checked against the IP allowlist for your account. Requests coming from an IP address that is not on the list will be blocked, even if the API key is valid. Before you start integrating, and every time your infrastructure changes (new servers, new cloud region, new NAT gateway, CI runners calling the API), email us the full list of public egress IPs that will call Unblock.
User-Agent header
Every request must include a User-Agent header identifying your company or application, for example User-Agent: AcmePay/1.0. Requests without this header are rejected with 403 - Forbidden, even when the API key and IP address are valid.
Some HTTP clients do not send a User-Agent by default, so set it explicitly in your integration.
Example
Here's a simple example on how to pass in your API key when making requests to any UnblockPay API endpoint:
curl https://api.sandbox.unblockpay.com/v1/payout \
--request POST \
--header 'Content-Type: application/json' \
--header 'User-Agent: YourCompany/1.0' \
--header 'Authorization: YOUR_SECRET_TOKEN'
Troubleshooting
| Status | Cause | What to do |
|---|---|---|
401 - Unauthorized |
API key is missing, incorrect, or belongs to another environment | Check the Authorization header and confirm you are using the key for the right environment |
403 - Forbidden |
Request came from an IP address that is not allowlisted, or the User-Agent header is missing |
Confirm the User-Agent header is set, then confirm your server's public egress IP and ask us to add it to your allowlist |