API ReferenceAPI Authentication

API Authentication

Authenticating API Requests

All API requests require authentication using your API key in the Authorization header.

Get Your API Key:

  1. Log in to Harper dashboard
  2. Go to Settings → API Keys
  3. Click "Create New API Key"
  4. Give it a name (e.g., "Production API")
  5. Copy the key immediately (shown only once!)
# Example API Request with Authentication
curl -X GET https://api.harper.com/v1/stores \
  -H "Authorization: Bearer wt_live_1234567890abcdef" \
  -H "Content-Type: application/json"

⚠️ Security: Never expose API keys in client-side code or public repositories!

Was this helpful?