Get a project's report
GET
/projects/{pid}/pdfThe PDF report on its own: Export a project with
formats: ["pdf"], its options in the query. The answer is the same: a link that
works for 24 hours, not the file itself. Without Products: read the report leaves
its prices out.Path parameters
pidstringrequiredThe project's ID, the part after/p/in its address in the app.
Query parameters
designstringThe report's design.One offieldsurveybrieflanguagestringThe report's language:en,es,de,fr,pt,ru,ja,hiorid(Indonesian). English when left out or another.pageSizestringA4 or US Letter.One ofA4LETTERorientationstringPortrait or landscape pages.One ofportraitlandscapepictureSizestringHow large the shapes' pictures are printed.One ofsmallnormalbig
Responses
typestringrequiredAlways"export"projectIdstringrequiredexpiresOninteger(int64)requiredWhen the links stop working, 24 hours after the export. Download the files before then.
Errors
A failed request answers with one of these, in an Error body.
400
invalid_bodyA value in the request body is missing, has the wrong type, is too long or is not one of the accepted values.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.429
too_many_requestsYour account reached an hourly limit, such as 600 tokens or 120 export builds an hour. Wait a little and try again; see Rate limits.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 project's ID, the part after `/p/` in its address in the app.
GET https://api.measuremaponline.com/api/v2/projects/Xr7Lp2Qm9KdT4wZs/pdfFill in your API key to send.
As a cURL command
curl 'https://api.measuremaponline.com/api/v2/projects/Xr7Lp2Qm9KdT4wZs/pdf' \
-H "Authorization: $MMO_API_KEY"