Postman (Moved to the Authentication guide)

Generating an access token using Postman.

Step-by-Step

In the Postman app, complete the following:

  1. Open a new request tab.
    1. Set the request method to POST.
    2. Enter https://open-api.guesty.com/oauth2/token as the request URL.

Figure 1: Request Method and URL

Figure 1: Request Method and URL


  1. Select the Headers tab, hide the auto-generated headers, and add the following parameters (if they don't exist):
    1. Accept: application/json
    2. Content-Type: application/x-www-form-urlencoded

Figure 2: Request Headers

Figure 2: Request Headers


  1. Select the Body tab and x-www-form-urlencoded option from the dropdown menu. Then enter the following parameters:
    1. grant_type=client_credentials
    2. scope=open-api
    3. client_secret={your_client_secret}
    4. clientId={your_client_id}

Figure 3: Request Body Parameters

Figure 3: Request Body Parameters


  1. Click the Send button.