Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 6 Next »

Get Access Token

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 access token

expires_in

int

Token’s expired time in second

token_type

string

Type Identifier

scope

string

Collection of scopes granted for this user access token

Request

POST /public/v2/connect/token

Body

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

Response

200 Success

{
  "Data": {
    "access_token": {{accessToken}},
    "expires_in": 3600,
    "token_type": "Bearer",
    "scope": "REDEX_api"
  }
  "StatusCode": 200,
  "Errors": null,
  "Meta": null,
  "Message": "Success"
}

401 Unauthorized

{
  "Data": null,
  "StatusCode": 401,
  "Errors": {},
  "Meta": null
  "Message": "Unauthorized"
}

  • No labels