Obtain Platform Access Credentials

Request Address

Environment

HTTPS Request Address

Mainland China Sandbox Environment

https://cnopenapi.autox3.com/openapi/api-v1/auth

Mainland China Production Environment

https://cnopengateway.autox3.com/openapi/api-v1/auth

Other Countries Environment

N/A

Request Parameter

Item

Required

Length

Type

Instruction

appKey

Yes

64

String

Authorization Key

appSecret

Yes

64

String

Authorization Key

Example:

{
  "appKey": "AK02522A2B2726FB0",
  "appSecret": "84336629F874E793035255E12E88DAE87556274D860432BBB21A93951B9F98E"
} 

Request Command (take curl command as an example) Example:

curl 'https://openapi.autox3.com/openapi/api-v1/auth' \
  -H 'Content-Type: application/json;charset=UTF-8' \
  --data-raw '{"appKey": "AK02522A2B2726FB0","appSecret": 
  "84336629F874E793035255E12E88DAE87556274D860432BBB21A93951B9F98E"}'  

Response Parameter

Item

Sub-item

Required

Length

Type

Instruction

Sample Value

status

Yes

--

Integer

Please refer to Page "Public Parameters --> Error Code"

0

errorInfo

Yes

--

String

Error Info

network error

data

Yes

--

Object

Response JSON

expiresIn

Yes

--

Integer

Expire time, unit: second. The default expired time is 7 days

529200

accessToken

Yes

--

String

Open platform accessToken

0354980F3F116

Example:

{
	"data":{
		"expiresIn":529200,         
		"accessToken":"0354980F3F1162CFD25C4BD3DE69E6D686D60722"
	},
	"errorInfo":null,
	"status":0
}  

Last updated

Was this helpful?