API Key Integration

API key system simplifies integrating your application with our services by allowing you to:

  • Authenticate API requests.
  • Map user actions to specific loyalty profiles.
  • Integrate effortlessly for applications without existing JWT flows.

Features

Each API key is linked to a unique Tenant ID, ensuring secure and traceable API access.

🔑 Generating an API Key

Follow these steps to generate and use an API key:

  • Navigate to the API key management section in your Loyalty admin account dashboard.
  • Click Generate API Key.
  • Assign a meaningful name for the key (e.g., Mobile App Key).
  • Copy the generated key. Note: Ensure you save this key securely, as it won’t be displayed again.

🔗 Using the API Key

Once generated, include the API key in the x-api-key header of your API requests:
curl -X POST https://loyalty-api.mojito.xyz \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
// Sample API key : FZPU4jzS8YacjDNTsqVOcD4DUvxNn-M-)tLPNPvh

⚠️ Key Security Best Practices

  • Store keys securely: Use environment variables or a secure secrets manager.
  • Rotate keys regularly: Periodically generate new keys and update integrations.