# API: Sharing personalized documentation

URL: https://help.hubhus.com/kb/sharing-personalized-api-documentation
Category: Integrations / API
Updated: 2026-09-28T14:40:42.313+00:00

Summary: Go to Account → Integrations & API → API documentation → Go to new API documentation . Click the link icon in the top of the page to get a shareable URL. Share that URL + an API token with the partner. The documentation automatically shows their campaign schema. Apply a campaign filter to restrict which data they see.

Hubhus generates personalized API documentation automatically for your account - including your exact campaigns, fields, select options, statuses, and example payloads. You can share this directly with external partners.

## 3 things to know

1. **Access and share the documentation**. Go to **Account → Integrations & API → API documentation** → click "Go to the new API documentation here". Click the **link icon** at the top and select **Link** to copy the shareable URL. This URL is safe to share - it only grants access to the documentation, not your account data. Direct URL pattern: `https://leadvalidator.dk/a/YOUR_ACCOUNT_NAME/api-documentation`
2. **What partners see in the documentation**. The documentation is dynamically generated from your account: all campaigns, custom fields, select options, allowed values, status slugs, required parameters, and live JSON example payloads. Partners can copy the schema directly to build correct POST bodies - no guessing field names or structures. Every request must include: `Authorization: Bearer YOUR_API_TOKEN`
3. **Restrict what partners can access**. Sharing the docs URL does not expose your data. To restrict API data access, create a campaign filter (Settings → Filters) and link it to the API token. Partners then only see leads matching that filter. The documentation auto-reflects only their campaign structure.

**Read more**

### Example API request structure

Endpoint (shown in the documentation):

```
POST https://api.leadvalidator.dk/leads
```

Required headers for every request:

```
Authorization: Bearer YOUR_API_TOKEN
Accept: application/json
```

Example request body (field names are generated from your actual campaign schema - they will match your own field slugs):

```
{
  "campaign_id": 362,
  "field_values": {
    "virksomhedsnavn": "VIRKSOMHEDSNAVN",
    "adresse": "ADRESSE",
    "by": "BY",
    "telefon-nr": "TELEFON-NR"
  },
  "select_field_values": {
    "select_references": "google"
  }
}
```

### Inside the API documentation view

- **Left menu** - navigation between sections: Introduction, Authentication, lead endpoints, booking endpoints, and examples
- **Middle panel** - interactive field and parameter selection, filter application per endpoint
- **Right panel** - live-updating JSON examples that reflect your selections. Copy these directly for integration testing and partner handoff

**How to apply a data filter for a partner:**

1. Go to Campaign settings → Filters and create a new filter (e.g. "Only leads from source X" or "Only leads after date Y")
2. Open the API documentation and scroll to the bottom of the relevant endpoint
3. Select your filter under "Apply filter"
4. Share the resulting scoped token - the partner will only receive leads that match the filter

## Related articles

- https://help.hubhus.com/kb/api-setup-and-authentication
- https://help.hubhus.com/kb/how-do-i-read-get-leads-via-api
- https://help.hubhus.com/kb/how-do-i-give-api-access-to-a-specific-campaign
- https://help.hubhus.com/kb/what-is-the-hubhus-api
