Authentication

To access any of the endpoints in the B2BHint API, you must authenticate your requests. B2BHint uses an API key for authentication, ensuring secure and straightforward access to the API.

In this guide, we'll explain how to use the API key to authenticate your requests.

Authentication with API Key

The recommended way to authenticate with the B2BHint API is by using an API key. This key can be found in your B2BHint dashboard under API Settings. Here's how to include the API key in the request header when using cURL:

Example request with api key

curl https://b2bhint.com/api/v2/user/me \
  -H "apiKey: {apiKey}"

Instructions

  1. Replace apiKey with your unique API key obtained from your B2BHint dashboard.
  2. Ensure the apiKeyheader is included in all requests to authenticate successfully.
  3. Use the -G option for GET requests, adding query parameters with -d.

Always keep your token safe and reset it if you suspect it has been compromised.

Was this page helpful?