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
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.
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.
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.
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.
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.
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):
- Go to Account → API documentation
- Click "Go to the new API documentation here"
- Navigate to API Tokens → New API Token
- Name it, select permissions, save
- 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
- General docs: https://leadvalidator.dk/docs/
- OpenAPI spec: hubhus-openapi.yaml
- Postman collection: hubhus-postman-collection.json
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
Feedback sent
We appreciate your effort and will try to fix the article