Skip to content

Key Authentication

Endpoint​​: Login Domain (Contact us if unsure)

POST /prod-api/auth/authentication

Exchanges an appKey and secret for an access token to call other APIs. expires_in represents the validity period in seconds. The token will expire after this period and needs to be renewed. The token's validity period will be recalculated with each API request.

Request Body Parameters

{
  "appKey": "e033856fb670c1e1a5d3db4e512b318a",
  "secret": "93ad670831d47130217cde1a0114d4e3"
}

Request Parameters

Name In Type Required Chinese Name Description
body body object No none
» appKey body string Yes appkey none
» secret body string Yes secret none

Response Example​

200 Response

{
  "expires_in": "string",
  "access_token": "string"
}

Response

Status Code Status Meaning Description Data Model
200 OK Success Inline

Response Schema

tatus Code 200

Name Type Required Constraints 束 Chinese Name Description
» expires_in string true none Validity period of access_token
» access_token string true none token

Data model