Create an embed token
POST
/auth/iframe/tokenA token for one embed, valid for 60 minutes. Your server asks for one before it writes the page, and puts it in the iframe's address instead of your key:
https://app.measuremaponline.com/iframe_api?pid=PROJECT_ID&token=TOKENUse Create an access token when you need a different lifetime.
Responses
tokenstringrequiredThe token. It works for 60 minutes.- Which world the key, and everything made with it, belongs to. See Live and sandbox.One of
livesandbox
Errors
A failed request answers with one of these, in an Error body.
401
unauthorized_actionThe item is not on your account or your members', the request came from a web page on a website the key does not allow, or the action is not allowed for this person.403
insufficient_scopeThe key does not have the access this endpoint needs. Create a key with that access.403
invalid_api_keyNo key was sent in the Authorization header, or the key is unknown, revoked, or past the time it kept working after being replaced.403
invalid_subscriptionYour plan has no API access. The API is part of the Enterprise and Open Guest plans.429
too_many_requestsYour account asked for more than 600 tokens in an hour. Wait a little and try again.Try it
This key is
The key stays in this tab and goes only to the API. Use a sandbox key while you try things: requests are real, and what they change is changed.
POST https://api.measuremaponline.com/api/v1/auth/iframe/tokenFill in your API key to send.
As a cURL command
curl -X POST 'https://api.measuremaponline.com/api/v1/auth/iframe/token' \
-H "Authorization: $MMO_API_KEY"