MARSHMALLOW TECHNOLOGY

Marsh API

Power your apps with Marshmallow integrations.

Start with Marsh Editor

POST https://mrshtech.com/v1/marsh-editor/session

Use 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'
});

What is Marsh API?

Marsh API connects your customer account to licensed Marshmallow products.

Secure authorization

Use Bearer tokens to authorize requests and protect your account.

One active API key

Only one active API key is allowed per customer account.

Marsh Editor ready

Attach the editor to any textarea after the license is active.

Expiry protected

Expired Marsh Editor licenses are disabled automatically and renewal is requested.

How it works

  • Create a customer account in the portal.
  • Buy a product or request Marsh Editor access.
  • Request a License Key; after admin approval and payment, the key is generated.
  • Request API access and keep one active API Key for your account.
  • Use API Key + License Key to attach Marsh Editor to textarea fields.

API vs License Key

  • License Key is unique per product or feature.
  • API Key is unique per customer account and can serve multiple licensed products.
  • Expired License Key disables Marsh Editor until renewal.

Real example usage

Use this after the admin has activated your Marsh Editor License Key.

JavaScript

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);
});

Try Marsh Editor

Test the editor UI here before connecting your own product.

Example response

{
  "status": "success",
  "data": [{
    "product": "MARSH-EDITOR",
    "license": "active",
    "expires_at": "2027-06-24 23:59:59",
    "selector": "textarea"
  }]
}

If the license is expired, the API returns an expired status so your UI can show the renewal dialog.