Last Updated on : 2022-09-05 07:37:30download
Tuya IoT Development Platform opens up a variety of API services to meet different requirements. For example, the following services can be implemented: smart home management, industry general device and user management, open capabilities of vertical categories, and various data services. This topic describes how to subscribe to API services and authorize projects to call API operations.
For more information, see Cloud Services API Reference.
Some API calls will get users’ personal data. Therefore, you are obliged to formulate a personal data privacy statement in accordance with your local laws and regulations and take adequate measures to ensure that users’ personal privacy data is fully protected.
On the details page of API services, you can find My Subscriptions, API List, and Authorized Projects.
Cloud services
Log in to the Tuya IoT Development Platform.
Choose Cloud > Cloud Services.
On the My Service page, search for and subscribe to your desired cloud service.
For more information about Tuya’s open APIs, see Cloud Services API Reference.
Cloud service details
On the page of My Service, click View Details to enter the details page. You can find My Subscriptions, API List, and Authorized Projects.
My Subscriptions
API List
Authorized Projects
Free trial
On the page of My Service, click Free Trial.
During the project creation process, certain API services that support the specified development method are selected on the Tuya IoT Development Platform by default. For more information, see Configuration wizard.
On the subscription page, select and authorize the projects to access this service. Only the selected projects can be used to make the API calls. Click Continue to complete the subscription, and authorize the previously selected projects.
Subscribe to official paid edition
After you try out and debug the APIs, you can subscribe to a resource pack. Take IoT Core for example. Click Subscribe to Resource Pack on the details page, and select the desired edition.
The platform provides two methods to help you manage API and project authorization.
Method 1: Add cloud service authorization under a project
On the page of Cloud > Development > Cloud Management, click a project to enter the details page.
Select the Service API tab and click Go to Authorize.
Select the cloud service as you want and authorize the project to access this cloud service.
Method 2: Add cloud project authorization under a cloud service
On the page of Cloud > Cloud Services, select an API service and click View Details in the Operation column.
Select the Authorized Projects tab and click Add Authorization.
On the API Authorization page, select a project for authorization and click Confirm Authorization to finish authorization.
(Optional) Click Revoke Authorization to revoke the access to this API operation from the project.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback