Introduction

An access token is needed to:

  • Register the gateway.
  • Use all gateway-related activities.

URL

POST https://{gatewayIp}:port/api/v2/apiTokenGen

Sample URLs

https://192.168.xxx.xxx:5480/api/v2/apiTokenGen

Sample cURLs

Syntax:

curl -k -X POST https://{Gateway_IP}:5480/api/v2/apiTokenGen -F username=username -F password=password
curl -k -X POST https://192.168.xxx.xxx:5480/api/v2/apiTokenGen -F username=abcd -F password=xyz@1234

Parameters

The fields are mandatory.

FieldData TypeDescription
usernameStringGateway username.
passwordStringThe gateway user's password.

Status code

200 OK

Sample response

{
    "token": "4879423b58e637d140b77af3aeb09b53f1a4ed60",
    "expires_in": "3599.965947"
}