Skip to main content

🔑 API Key from Dashboard

After successfully registering on the Onmeta merchant dashboard, you need API credentials to authenticate your widget integration.

Accessing API Setup​

Once logged into the dashboard, navigate to the Setup section where you'll find your API credentials.

🎯

Quick Access

Your API credentials will be automatically displayed in the Setup section of your dashboard immediately after registration.

Navigation Path:

Dashboard → Setup → API's Setup

API Credentials Display​

In the API Setup section, you'll see your credentials displayed like this:

API KEY Page

Here, Client ID will be your API Key

Using Your API Key​

Your API key is required when initializing the Onmeta widget. Here's how it's used:

<script>
let createWidget = new onMetaWidget({
elementId: "widget",
apiKey: "Of1a1cxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", // Your API key here
environment: "staging"
});
createWidget.init();
</script>

API Key Security Best Practices​

🔒

Security Guidelines

  • Never commit API keys to public repositories (GitHub, GitLab, etc.)
  • Use environment variables to store API keys in your application
  • Don't share keys in screenshots, documentation, or support tickets

Using API Key in Production​

To use your API key in the production environment, follow these steps:

  • Register a separate account on the production dashboard: dashboard.onmeta.in
  • Complete KYB verification for production access
  • Collect your production API key from the production dashboard
  • Update your widget configuration with the production API key and set environment: "production"

What's Next?​

Now that you have your API key, you're ready to integrate the widget into your website:

👉 Widget Creation & Integration - Embed the widget in your site