Manage API Keys
API keys are server-to-server credentials used to authenticate requests to the API Mahadata programmatically — sending messages, managing contacts, or integrating channels — without having to log in to the portal. Each key is identified by a unique prefix (key_prefix); the full secret value is only shown once at creation. This page is intended for developers and integration teams.
You access this feature from Menu > Developer > API Keys (/developer/apikeys).

Sandbox Mode
Section titled “Sandbox Mode”At the top of the page there is a card Sandbox Mode with a switch. When enabled, all API calls return a simulated success response — no real messages are sent to the provider and no billing charges are incurred. Use this mode to test integrations before going live.
| Switch status | Effect |
|---|---|
| Active | Badge SANDBOX appears next to the switch; a warning is displayed; all API calls return a simulated response with no sending and no charges |
| Inactive | API calls run normally to the provider; billing charges apply |
Disable sandbox mode before your integration runs in production so that messages are actually delivered to customers.
API Key List
Section titled “API Key List”Below the sandbox card, all API keys belonging to the tenant are displayed in a list. Each entry shows:
| The column | Description |
|---|---|
| Name | A descriptive name you gave when creating the key (e.g., “Production Server”) |
| Key prefix | The key identifier in monospace format awalan_...XXXX, where XXXX are the last four characters of the key ID. The full secret value is never displayed again |
| Last used | The last time the key was used to call the API, or “Never” if it has never been used |
While the list is still loading, the page shows loading text. If data fetching fails, a warning is displayed above the list.
Creating a New API Key
Section titled “Creating a New API Key”Click the Generate New Key at the top right of the card to open the creation dialog. Available fields:
| Field | Required | Default | Description |
|---|---|---|---|
| Key Name | Yes | — | A descriptive name to identify the key (e.g. “Production Server”). Cannot be empty |
After you fill in the name and press Generate Key, the dialog changes to display the full secret key, which must be copied immediately. This dialog contains:
- Security warning — a reminder to treat the key like a password and not expose it in client-side code.
- Key field — displays the key (hidden by default).
- Show/hide button (eye icon) — shows or hides the key value.
- Copy button (clipboard icon) — copies the key to the clipboard.
- Done button — closes the dialog.
Deleting an API Key
Section titled “Deleting an API Key”Click the delete icon (red trash can) on the key entry to open a confirmation dialog. This dialog displays the name of the key to be deleted along with cancel and delete buttons.
| Element | Description |
|---|---|
| Confirm | The dialog displays the name of the key to be deleted |
| Cancel | Cancels the deletion |
| Delete | Permanently deletes the key — this action cannot be undone |
Once deleted, all integrations using that key will fail to authenticate.
Permissions
Section titled “Permissions”This entire page is protected by the permission developer:manage_apikeys. Users without that permission cannot open the page; if the permission is absent, the Generate New Key button and the delete icon are displayed in a disabled state.