How to Get API Key & Webhook Secret

This section explains how to generate the API Key and Webhook Secret required for authenticating REST API and webhook requests.

Access Path

WordPress Admin → Multi Location Products →Settings API & Webhooks


Steps

  1. Log in to the WordPress Admin Dashboard
  2. Navigate to Multi Location Products → API & Webhooks
  3. Scroll to the API Authentication section
  4. Click Generate API Key (if no key exists)
  5. Copy the generated API key immediately
  6. Click Generate Webhook Secret (if no secret exists)
  7. Copy the generated webhook secret immediately
  8. Store both keys securely (they are displayed only once)

Important Note

  • API keys and webhook secrets are shown only once for security reasons.
  • If you lose either key, you must generate new ones.
  • Previously generated keys will become invalid after regeneration.

Response Reference

{
  "api_key_location": "Displayed in the API Key field after generation",
  "webhook_secret_location": "Displayed in the Webhook Secret field after generation",
  "security_warning": "Keys are displayed only once for security. Copy them immediately.",
  "usage_api_key": "Use in X-API-Key header for REST API requests",
  "usage_webhook_secret": "Use in X-Webhook-Secret header for webhook requests"
}

Usage Summary

  • API Key:
    Used in REST API requests via the X-API-Key header.
  • Webhook Secret:
    Used in webhook requests via the X-Webhook-Secret header to verify authenticity.