The Try it feature lets you send real requests to the M2X Public API straight from the reference docs and see live responses. Endpoints are secured, so you'll first authenticate by requesting an access token, then send your request.
- On the endpoint you want to call, click Try it.
- Open the Environments menu in the top-right corner of the page.
- Select the environment you want to use.
If the environment you need isn't in the list, create a new one from the same Environments menu.
Authentication uses the OAuth client credentials flow. To get a token:
- Go to the Security tab.
- Expand the Configure new token panel.
- Set your Client ID — hover over the Client ID input field, click Set value, then enter your client ID.
- Set your Client secret the same way.
- Leave the Access token field blank.
- Optionally adjust the scopes for the token (see below).
- Scroll down and click Request new token.
The Access token field is populated automatically once the token request succeeds — you don't need to fill it in yourself.
By default, a new token is issued with all scopes enabled, so it can access everything your credentials allow. You can toggle individual scopes on and off before requesting the token to narrow what it's permitted to do.
For example, switching off the write scopes leaves a token with read-only access — handy when you just want to inspect data without any risk of changing it.
With a valid token in place, fill in any required parameters and send the request. Responses appear inline so you can inspect the status code, headers, and body.
Your Client ID and secret authenticate as your account. Use credentials scoped to a test environment where possible, and never share them.