Miva Merchant Guide: Setting Up and Managing Secure API Tokens
API Tokens provide secure, authenticated access to Miva’s JSON API, command-line tools (such as MMT), and third-party integrations. Each token can be configured with IP restrictions, signature validation, and granular permissions, allowing administrators to control exactly how and where the API can be used. API access can also be managed at the store level through a global setting that enables or disables API services entirely.
On This Page
Creating an API Token
Path: Settings > User Management > API Tokens
Click + Add API Token.
Enter a descriptive Name for the token.
Specify the Allowed IP Address(es) permitted to use the token.
Click Continue.
After clicking Continue, select one or more Role-Based Groups for the token.
Token Settings Overview
Each API token includes the following configuration options:
Access Token – The credential used to authenticate API requests.
Signature – A signing key used to validate the authenticity of requests.
Endpoint URL – The base URL where API requests are sent.
Allowed IP Addresses – A list of IP addresses authorized to use the token.
Timestamp – Enables timestamp validation to help prevent replay attacks.
Security Tip: In production environments, enable both Signature and Timestamp validation to strengthen request security.
Assign Role-Based Groups
After clicking Continue on the Create API Token screen, select one or more Role-Based Groups for the token.
Role-Based Groups determine which areas of the store the API token can access. Select the appropriate groups based on the level of access required, then click Save to complete the setup.
Editing an API Token
Path: Settings > User Management > API Tokens
Click an existing API Token name to open its configuration page.
From here, you can:
Update API settings (name, allowed IPs, signature, timestamp validation)
Reassign Role-Based Groups
Add or manage assigned API functions
Add Functions to an API Token
Path: Settings > User Management > API Tokens
API functions are assigned from the token’s Edit page.
Open the desired API Token.
- Click the Functions tab.
- Select the appropriate Store Domain from the Store dropdown.
- In the Function field, enter the name of the API function you want to allow (for example,
OrderList_Load_QueryorProduct_Insert).
Tip: Refer to the Function Reference for a complete list of available API functions.
Global API Online / Offline Setting
Path: Settings > User Management > API Tokens
The Global API setting allows administrators to enable or disable all API services at the store level.
When set to Offline, all API access is suspended, including:
JSON API requests
CLI tools (such as MMT)
3rd-party integrations using API tokens
This setting is useful during:
System maintenance
Database updates
Troubleshooting unexpected API traffic
Mitigating excessive API load
When API services are disabled globally, individual API tokens remain configured but cannot be used until API services are re-enabled.