--- title: "Generating Credentials With Postman" slug: "generating-credentials-with-postman" updated: 2023-11-07T19:51:19Z published: 2023-11-07T19:51:19Z canonical: "wiki.cobblestonesoftware.com/generating-credentials-with-postman" --- > ## Documentation Index > Fetch the complete documentation index at: https://wiki.cobblestonesoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # Generating Credentials With Postman ## How To Generate Credentials (Postman) #### Getting Started **Download Postman** - Download and install Postman from [https://www.postman.com](https://www.postman.com). - Create and setup your user account and password - Create your workspace![](https://cdn.document360.io/e3626857-1fb5-4e27-b278-2d3fc5508be4/Images/Documentation/image-1669046039688.png) **Download CobbleStone® Postman Collection** You will need to download the zip file [CobbleStone® REST API Postman Samples](https://cdn.document360.io/e3626857-1fb5-4e27-b278-2d3fc5508be4/Images/Documentation/10-24-2022_CobbleStone%20REST%20API%20Postman%20Samples.zip) for access to endpoints. **Get REST API URLs** To find your API URL: SaaS Clients can view the [How To: Locate API Information (SaaS Clients)](/v1/docs/how-to-locate-api-information-saas) article Deployed Clients can view the [How To: Locate API Information (Deployed Clients)](/v1/docs/how-to-locate-api-information-deployed) article #### Setting up in Postman UnZip the downloaded CobbleStone® REST API Postman Samples to be able to access the json file In Postman, choose File > Import and choose Upload Files ![](https://cdn.document360.io/e3626857-1fb5-4e27-b278-2d3fc5508be4/Images/Documentation/image-1669047386848.png) Select the unzipped CobbleStone® REST API Postman Samples.postman_collection from your File Explorer window ![](https://cdn.document360.io/e3626857-1fb5-4e27-b278-2d3fc5508be4/Images/Documentation/image-1669047656545.png) You will now see the endpoints listed like so: ![](https://cdn.document360.io/e3626857-1fb5-4e27-b278-2d3fc5508be4/Images/Documentation/image-1669047759347.png) Select Authorization from the list and choose the Body tab at the top right![](https://cdn.document360.io/e3626857-1fb5-4e27-b278-2d3fc5508be4/Images/Documentation/image-1669047925176.png) #### #### Getting Authorized Edit the POST URL to match your respective BASE URL followed by **/oauth/token** ![](https://cdn.document360.io/e3626857-1fb5-4e27-b278-2d3fc5508be4/Images/Documentation/image-1669048028918.png) Next click in the Body window and edit the line of code for the Client ID. Replace the highlighted text with your API Client ID found under My > My API Clients ![](https://cdn.document360.io/e3626857-1fb5-4e27-b278-2d3fc5508be4/Images/Documentation/image-1669048348356.png) Next replace the highlighted text with your API Client Secret found under My > My API Clients ![](https://cdn.document360.io/e3626857-1fb5-4e27-b278-2d3fc5508be4/Images/Documentation/image-1669048738210.png) Click Send to Authorize ![](https://cdn.document360.io/e3626857-1fb5-4e27-b278-2d3fc5508be4/Images/Documentation/image-1669048705214.png) You should see results in the bottom window after a few seconds ![](https://cdn.document360.io/e3626857-1fb5-4e27-b278-2d3fc5508be4/Images/Documentation/image-1669049009522.png) You will need to copy the access_token value (excluding the quotes) and update other endpoints. ![](https://cdn.document360.io/e3626857-1fb5-4e27-b278-2d3fc5508be4/Images/Documentation/image-1669049360625.png) You may step through each collection item and in the Headers tab, in Authorization value, insert copied token value (excluding the quotes) following “Bearer” word. Make sure there is a single space after “Bearer”. ![](https://cdn.document360.io/e3626857-1fb5-4e27-b278-2d3fc5508be4/Images/Documentation/image-1669049722282.png) #### #### Global Variables in Postman For convenience, you may use Postman variables (placeholders) for REST API address, authorization token, and other values. 1. Click on Environment quick lookup icon in Postman ![](https://cdn.document360.io/e3626857-1fb5-4e27-b278-2d3fc5508be4/Images/Documentation/image-1669049839235.png) 2. Under **Globals** section, click add/edit button, depending on whether you have any variables yet. 3. In the Variable column, type your variable name. Select Type (default). Add the Current Value for your variable (REST API server address or authorization token for instance). Then, hit save. ![](https://cdn.document360.io/e3626857-1fb5-4e27-b278-2d3fc5508be4/Images/Documentation/image-1669049932376.png) 4. To make use of the variables, use {{yourVarNameNoQuotes}} syntax in the postman requests ![](https://cdn.document360.io/e3626857-1fb5-4e27-b278-2d3fc5508be4/Images/Documentation/image-1669049999282.png) You may add more variables such as ones for refresh_token, client_id, and client_secret. In addition to global variables, Postman allows to add variables at the collection level. You will need to click on the three dots on the right side of the collection and select “Edit”. In the window that shows up, click “Variables” Tab to add variables at the collection level: ![](https://cdn.document360.io/e3626857-1fb5-4e27-b278-2d3fc5508be4/Images/Documentation/image-1667500438160.png)