Sign in as a member
POST
/auth/{uid}/loginusers:write Enterprise
A sign-in token for one member of your organisation, to open their account from your
own software. Add it to an app address as sit; the member is signed in and the
address opens:
https://app.measuremaponline.com/dashboard?sit=TOKEN
https://app.measuremaponline.com/app/p/PROJECT_ID?sit=TOKENUse the token within an hour of getting it. Because it opens the member's whole account, it is held to more than other endpoints:
- the key must have been created with Members: Read and write access (a key made before access areas existed does not qualify);
- it must be a live key;
- it is never given for your own account, nor for an Admin or a Manager of the organisation.
Path parameters
uidstringrequiredThe ID of a member of your organisation.
Responses
tokenstringrequiredA one-time sign-in token for the member. Use it within an hour.
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.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.
The ID of a member of your organisation.
POST https://api.measuremaponline.com/api/v1/auth/m3K8qZxLpV4NrT2w/loginFill in your API key to send.
As a cURL command
curl -X POST 'https://api.measuremaponline.com/api/v1/auth/m3K8qZxLpV4NrT2w/login' \
-H "Authorization: $MMO_API_KEY"