How do I read/get leads via API?
Pull lead data from Hubhus into any external CRM, ERP, BI tool, or automation platform using the Hubhus REST API.
TL;DR
GET https://api.leadvalidator.dk/v2/campaigns/{id}/leads with Authorization: Bearer {token}. Filter with query params: status=contacted, updated_after=2025-01-01, source=partner-west. Paginate with ?page=2. Use updated_after for incremental sync.
4 things to know
Basic GET request
You need your API token and campaign ID (visible in the URL: campaigns/362/... → id = 362).
GET https://api.leadvalidator.dk/v2/campaigns/362/leads Authorization: Bearer 123456789abcdef
Filtering with query parameters
All filters use AND logic. Select field values use their slug, not label.
?status=contacted ?created_after=2025-01-01 ?updated_after=2025-02-01 ?customer-type=commercial ?status=new&source=partner-north
Pagination
Results are paginated. The response includes pagination.total_pages. Fetch additional pages with ?page=2 or increase page size:
GET /campaigns/362/leads?page=2&per_page=100
Best practices
Use updated_after for incremental sync instead of full fetches. Use campaign-scoped tokens for external vendors. Read slugs from live API documentation — never hardcode manually. Implement retry/backoff for large pulls. Log API errors — they explain exactly what failed.
Common searches
get leads api • read leads api • api GET request • api integration • fetch leads programmatically
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