Skip to main content

Set up API access

You can create your API credentials and request IP whitelisting yourself in the amnis app.

Before you start​

  • You must be a business partner admin.
  • The account must be identified. Sandbox accounts can't create credentials.
  • You need the amnis app for 2FA approval.

Step 1: Create credentials​

  • Open Company settings → Developer settings, or use the amnis API tile on the Integrations page.
  • Pick a name and scopes:
    • Read access (USER) is always included.
    • PAYMENT_CREATE, FX and ACCOUNTING can be selected.
    • On the Launch package, only read access is available.
  • Approve the request with 2FA in the amnis app.
  • The client secret is shown only once. If it's lost, create a new credential and disable the old one. You can't regenerate a secret.
  • You can disable and re-enable a credential at any time.

Step 2: Request IP whitelisting​

Use Manage IPs to add or remove IPs. We process the request and confirm by email. Calls from a new IP are blocked until you get the confirmation.

Which IP to send​

Send the public outbound (egress) IP of the server that calls the API. To check it, run this on that server:

curl -4 https://ifconfig.me

Don't send:

  • private or internal IPs (10.x, 172.16–31.x, 192.168.x, 127.x)
  • a laptop or office IP, unless the calls really come from there
  • the server's inbound or load-balancer IP

Requirements​

  • Range limit: the widest range accepted is a /29 (8 addresses). Wider ranges (/28, /24, …) are rejected. If you need more, contact your Relationship Manager.
  • Static IP: required. Serverless or PaaS hosts and autoscaling setups usually rotate IPs. Use a NAT gateway, Elastic IP or static outbound IP instead.
  • Multiple servers or regions: list every egress IP.
  • IPv4 only: if the server prefers IPv6, its requests go out over IPv6 and are blocked. Force outbound IPv4.

Accepted formats​

  • One entry per line, max 1000 characters in total.
  • A single address, e.g. 1.2.3.4.
  • A CIDR range from /29 to /32, e.g. 1.2.3.0/29.
  • A start-end range of at most 8 addresses, e.g. 1.2.3.4-1.2.3.10.

When the IP changes​

Add the new IP before switching, and remove the old one afterwards.


Step 3: Get a token​

Once your credentials are created and your IP is whitelisted, get an access token as described in Authentication.


Troubleshooting​

A request from a non-whitelisted IP is blocked by Cloudflare. You get an HTML error page, not our JSON error.

Before contacting support, check your IP against the guidance above.

When contacting support, include the Cloudflare Ray ID. It's shown on the error page and in the cf-ray response header.