Authenticate requests against the Parse API

Before running the commands shown on this page, you should load the Bitnami stack environment by executing the installdir/use_APPNAME script (Linux and MacOS) or by clicking the shortcut in the Start Menu under “Start -> Bitnami APPNAME Stack -> Application console” (Windows). On OS X VMs, the installation directory is /opt/bitnami and OS X VM users can click the “Open Terminal” button to run commands. Learn more about the Bitnami stack environment and about OS X VMs.

When accessing the Bitnami Parse Server Stack via a browser or other HTTP client, you may see a response that states:


This occurs if your request does not include the necessary credentials. To resolve this, first obtain your Application ID and Master Key from the installdir/apps/parse/htdocs/server.js file. Then, issue a request containing these credentials.

Here is a sample request to store a file:

$ curl -X POST -H "X-Parse-Application-Id: APP_ID" -H "X-Parse-Master-Key: MASTER_KEY" -H "Content-Type: text/plain" -d '{"score":1337,"playerName":"Sean Plott","cheatMode":false}' http://localhost/parse/classes/GameScore

Remember to replace the APP_ID and MASTER_KEY placeholders with the actual access credentials. Following this, execute the following request to obtain information about the file stored previously:

$ curl -X GET -H "X-Parse-Application-Id: APP_ID" http://localhost/parse/classes/GameScore
Last modification September 4, 2018