Last Updated on : 2023-06-15 04:54:24
In the cloud-to-cloud integration scenarios, you can request cloud API authorizations from the platform in simple mode and get a token implicitly.
Please read these documents carefully before making API requests.
Quick Start
API Sample Request
GET: /v1.0/token
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
req | TokenReq | query | true | The API request. |
Description of req
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
grant_type | String | true | The authorization type. Valid values:
| |
code | String | false | The license code. It is available only when the value of grant_type is 2 . | |
terminal_id | String | false | The terminal ID. |
Parameter name | Type | Description |
---|---|---|
result | TokenRes | The returned result. |
Description of result
Parameter name | Type | Description |
---|---|---|
access_token | String | The access token. |
expire_time | Integer | The validity period in seconds. |
refresh_token | String | The refresh token. |
uid | String | Tuya user ID. |
GET: /v1.0/token?grant_type=1
{
"expire_time": 7200,
"access_token": "**",
"uid": "eu*****",
"refresh_token": "**"
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback