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 7 Next »

Get Access Token

Get Access Token

Resource information

Response format(s)

JSON

Requires authentication?

No

Request Header

Name

Value

Content-Type

application/json

Request Body

ApiKey

string

API key value associate with an User + Business Account

GrantType

string

api_key

ClientId

string

System / App / Platform unique identifier

ClientSecret

string

System / App / Platform secret

Returns

Returns a message with status code.

Response Header

Content-Type

application/json

Response Body

Field

Type

Description

AccessToken

string

User access token

ExpiresIn

int

Token’s expired time in second

TokenType

string

Type Identifier

Scope

string

Collection of scopes granted for this user access token

Request

POST /public/v2/connect/token

Body

{
  "ApiKey": "4d7869f0-71cc-43d8-8b82-1f87db6eda2f",
  "GrantType": "api_key",
  "ClientId": "3Yj1rQvcDGYXqXtaxDNyWaNkWPUAwJ",
  "ClientSecret": "fNDq3vGM26wzOqr9OMUXQkxdG5J3$o"
}

Response

200 Success

{
  "Data": {
    "AccessToken": {{accessToken}},
    "ExpiresIn": 3600,
    "TokenType": "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