How do I connect to TrustHub APIs?

Modified on Tue, 28 Nov, 2023 at 5:55 PM

All APIs take below information in the header part of your HTTP request. 


Authorization (API Key in Header): x-api-key 

Value: [API key will be provided after activation and IP whitelisting] 

Parameters: JSON: Content type: application/json; charset=utf-8


We have TWO environments: Sandbox/UAT & Production


When you need to get access to the Sandbox/UAT environment, you will be issued an API key after you:

  1. Provide the IPv4 addresses to whitelist for UAT.
  2. Give us an idea of your estimated usage in terms of hits/day.


When you need to move to the Production environment, you can use the same API key, but you will also need to:

  1. Provide the IPv4 addresses to whitelist for Production.
  2. Give us an idea of your estimated usage in terms of hits/day.


You can provide a list of static IPv4 addresses for whitelisting. If you do not have one or more static IPv4 address, you can instead provide the range of IPv4 addresses of your ISP in CIDR notation. Free online IP Range To CIDR calculator



Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article