Generate Gateway Token

This API is used to obtain an access token to the gateway by providing a valid API Key and a Client ID.

The access token is required for all subsequent API requests and must be included in each request.

Note: You must have a valid API key and client ID to receive an access token.

  • URL:

    {base_url}/api/locations/{location_id}/access_token

  • Method:

    POST

  • Request Parameters:

FieldTypeRequiredDescription
Api-KeyStringYesYour unique key provided by the API.
ClientStringYesThe client ID associated with your application.
  • URL Parameters:
ParameterRequired/OptionalTypeDescription
location_idRequirednumberThe ID of the specific location.
  • Example Request (cURL):

Java

curl --location 'https://sandbox-api-gtw.softpoint.io/api/locations/{{location_id}}/access_token' \--header 'Content-Type: application/json' \--data '{ "api_key": "XXXXXXXXXXXXXXXXXXXXX", "client": "iframe_gtw"}'
  • Example Response (JSON):

JSON

Java

{    "accessToken": "xxxxx",    "refresh_token": "xxxx",    "expires_in": 300} 
Language
Credentials
Bearer
URL
Click Try It! to start a request and see the response here!