Postman with Cloud CMS
Guide and References for connectivity to Cloud CMS
Connecting to Cloud CMS
If you want to test out the Cloud CMS API using Postman or another HTTP client, you'll first have to obtain an authentication token
First, ensure you have API Keys configured for your project (this is done by default for the sample project). You can find these by going
to Manage Project and clicking API Keys in the left hand menu.
Next, we will create a new "Collection" in Postman which defines the Authorization required to make API requests. In Postman, create a new Collection.
Go to Authorization on the new collection and select "OAuth 2.0", for "Add auth data to" select "Request Headers".
Under "Current Token" / "Header Prefix" enter "Bearer".
Under "Configure New Token", set "Grant Type" to "Password Credentials" and set "Access Token URL" to "https://api.cloudcms.com/oauth/token".
Set "Client ID", "Client Secret", "Username", and "Password" using the API Key information from the first step above.
Set "Scope" to "api" and set "Client Authentication" to "Send as Basic Auth header"
At this point you should be able to request an Access Token from the Cloud CMS API server. At the bottom of the "Authorization" page click
the "Get New Access Token" button.
If successful a dialog box will display with a button "Authentication Complete". Click the "Proceed" button.
The dialog will display details on the new token. Click the "Use Token" button.
Now that you have a token, For all future requests to the API, you can use the token automatically. Create a new "Request" on the Collection.
On the Authorization page of the Request, select "Inherit auth from parent"