Supplier API Key Setup
Generate, rotate, and secure Lead Distro AI supplier API keys. Authentication header format, key compromise recovery, IP allowlisting, and FAQs.
What is the Supplier API Key?
Every supplier gets a unique API key auto-generated on creation. The key authenticates the supplier when posting leads to the ingest API — without a valid key, requests are rejected with HTTP 401. Each key is scoped to one supplier; one supplier's key can't post leads on behalf of another.
Where to Find the Key
- Open the supplier's detail page in the Lead Distro AI dashboard.
- Find the API Key field — it shows a copy button next to the masked key.
- Click Reveal to see the full key, Copy to copy to clipboard.
- Each supplier also has a dedicated API Specs page at `/api-specs/
/ ` with copy-paste curl examples — share this with the supplier's developer.
Using the Key
Pass the key in the `x-api-key` HTTP header on every POST to the ingest endpoint:
curl -X POST https://app.leaddistro.ai/api/v1/ingest \
-H "Content-Type: application/json" \
-H "x-api-key: sk_supplier_abc123xyz789" \
-d '{ "flo_campaign_id": "...", "flo_supplier_id": "...", ... }'Key Security
- Never expose keys in client-side code — keys must stay server-side. Browser-visible keys can be extracted and abused.
- Never commit keys to public repos — even private repos should use environment variables, not hard-coded values.
- Rotate keys when a developer leaves — same hygiene as any production credential.
- Treat each supplier's key as separate — don't reuse keys across suppliers; per-supplier keys make audit + revocation surgical.
Rotating a Compromised Key
If you suspect a key is compromised, the safest path is to delete the supplier and create a new one — Lead Distro AI generates a fresh key on creation and the old key is invalidated immediately. Update the supplier's integration with the new key.
Avoid in-place key rotation for high-volume suppliers — there's a window where both old and new keys may be in use as the supplier updates their integration. Delete-and-recreate is cleaner: the old key dies instantly, the supplier knows they need to update before traffic can resume.
Frequently Asked Questions
Where do I find a Lead Distro AI supplier's API key?
Can a single supplier API key authenticate multiple campaigns?
What happens if my supplier's API key is compromised?
Can I restrict which IP addresses can use a supplier's API key?
What HTTP header carries the API key?
Do API keys expire?
Related Articles
If you have any questions, send us an email at support@leaddistro.ai