API setup and authentication

Modified on Tue, 5 May at 9:30 PM

API setup and authentication

Hubhus provides a REST API for reading and writing lead data. You can create scoped tokens per vendor (best practice) or broad tokens for internal integrations.

TL;DR

Scoped token (external vendor): Campaign → API documentation → API Tokens → select campaign filter → create token. Share public API URL + token string. General token: Account → API documentation → API Tokens. All tokens use Bearer authentication. Tokens are credentials — keep them secret.

Get started in 6 steps — scoped vendor token

1

Add a source value for the vendor

In the campaign, go to Selects. Find the source/vendor select list and add a new option for the vendor (e.g. "Vendor XYZ"). This value identifies their leads in the filter.

2

Create a campaign filter for the vendor

In the campaign, go to Filters → New filter. Name it after the vendor. Add condition: source field equals the vendor's select value. This filter defines exactly which leads the API token will expose.

3

Open API Tokens in the campaign

In the campaign, go to API documentation → API 2023. Scroll to the bottom and click "Go to new API documentation". In the new UI, navigate to API Tokens.

4

Create a scoped API token

Click New API Token. Name it clearly (e.g. "Vendor XYZ – read only"). Set permissions (read / read+write). Under Campaign filter, select the filter from step 2. Save.

5

Get the public API URL and token value

In the token list, click the link icon to get the public API documentation URL. Click Show to reveal the token string. Both are needed by the vendor.

6

Share with vendor

Send the vendor the public API URL and the token string. The public API documentation automatically shows their campaign's exact schema — all fields, selects, statuses, and required parameters — so they can build correct requests without guesswork.

Read more

General (account-level) API token

For internal integrations that need broad access (no campaign filter):

  1. Go to Account → API documentation
  2. Click "Go to the new API documentation here"
  3. Navigate to API Tokens → New API Token
  4. Name it, select permissions, save
  5. Copy the link (API URL) and Show (token value)

Only use broad tokens for controlled internal systems. Issue separate scoped tokens for different access levels.

API reference links

Common searches

api setup • api token • api authentication • vendor api access • scoped api token • bearer token

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