Docs
Ctrl+K Rechercher Alt+[Alt+] Guides
Obtenir une clé API

Guides

Authentification

Send your API key on every metered /api/v1/... request.

Preferred: Clé X-API

curl -sS \
  -H "X-API-Key: $WH_API_KEY" \
  "{origin}/api/v1/credits"

Also accepted

Method Exemple
Au porteur Authorization: Bearer $WH_API_KEY
Query ?api_key=$WH_API_KEY (avoid in logs/URLs when possible)

First non-empty value wins: Clé X-API → Bearer → clé_API.

du plan n°

The key must belong to an account with Basic plan or higher. Otherwise: HTTP 403WinningHunter Basic plan or higher required.

Manage keys on /api. Copy the plaintext key on first create or regenerate — later visits show a masked value only. Regeneration is immediate; the old key stops working.

Session vs API key

Prefix Auteur Use for
/api/v1/... API key or logged-in dashboard session (both metered) Integrations — prefer API key
/api/tiktok-shop/*, /api/brands/*, /api/magic-ai, … (no v1) Browser session Legacy dashboard paths — prefer /api/v1/...

Un-versioned aliases exist for some routes (/api/adlibrary, /api/store-tracker, /api/store-explorer). Prefer /api/v1/....

Verify

curl -i -H "X-API-Key: $WH_API_KEY" "{origin}/api/v1/credits"

A 200 with a générique object means the key and plan are valid. See Erreurs for other statuses.

Next