Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Get Access Token

User Level (External use) - Grant Type api_key

Get Access Token

Resource information

Response format(s)

JSON

Requires authentication?

No

Request Header

Name

Value

Content-Type

application/www-form-urlencoded

Request Body

api_key

string

Associate with an user+BussinessAccount

grant_type

string

api_key

client_id

string

client_secret

string

Returns

Returns a message with status code.

Response Header

Content-Type

application/json

Response Body

Field

Type

Description

access_token

string

User Identifier

expires_in

int

Token’s Expired Time

token_type

string

Type Identifier

scope

string

Request

Status
colourGreen
titlePOST
/connect/token

Body

Code Block
languagejson
{
  "api_key": "4d7869f0-71cc-43d8-8b82-1f87db6eda2f",
  "grant_type": "api_key",
  "client_id": "3Yj1rQvcDGYXqXtaxDNyWaNkWPUAwJ",
  "client_secret": "fNDq3vGM26wzOqr9OMUXQkxdG5J3$o"
}

Response

Info

200 Success

Code Block
languagejson
{
  "Data": {
    "access_token": {{accessToken}},
    "expires_in": 3600,
    "token_type": "Bearer",
    "scope": "REDEX_api"
  }
  "StatusCode": 200,
  "Message": "Success"
}

Warning

401 Unauthorized

Code Block
languagejson
{
  "Data": null,
  "StatusCode": 401,
  "Message": "Unauthorized"
}