Developers
Power your apps with Marshmallow integrations.
https://mrshtech.com/v1/marsh-editor/sessionUse one active API key for your account and one Marsh Editor License Key for the editor feature.
MarshEditor.boot({
apiKey: 'mt_live_your_api_key',
licenseKey: 'MEDIT-MARSH-EDITOR-your_license_key',
selector: 'textarea'
});
Marsh API connects your customer account to licensed Marshmallow products. The API Key identifies the customer account, while the License Key activates a specific product feature such as Marsh Editor.
Use Bearer tokens to authorize requests and protect your account.
Only one active API key is allowed per customer account to simplify access management.
Attach the editor to any textarea after the license is active.
Expired Marsh Editor licenses are disabled automatically and renewal is requested.
Use this after the admin has activated your Marsh Editor License Key. The script looks for all textarea fields and attaches the editor only when the license is active.
MarshEditor.boot({
apiKey: 'mt_live_your_api_key',
licenseKey: 'MEDIT-MARSH-EDITOR-your_license_key',
endpoint: 'https://mrshtech.com/v1/marsh-editor/session',
selector: 'textarea',
requestUrl: '/customer-portal.php?tab=portal-request-license',
expiredMessage: 'Your Marsh Editor License Key has expired.',
renewalMessage: 'Request new activation?'
}).then((session) => {
console.log('Marsh Editor status:', session.status);
});
Test the editor UI here before connecting your own product. This demo attaches Marsh Editor to the textarea exactly like the licensed setup.
{
"status": "success",
"data": [
{
"id": 101,
"type": "content",
"product": "MARSH-EDITOR",
"license": "active",
"expires_at": "2027-06-24 23:59:59",
"toolbar": ["bold", "italic", "link", "format"]
}
],
"meta": {
"limit": 10,
"count": 1
}
}If the license is expired, the admin panel sync marks Marsh Editor inactive and the API returns an expired status so your UI can show the renewal dialog.