English
English
简体中文
Contact Us
Register
Log In

Manage API Services

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.

Personal data privacy statement

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.

View API service details

On the details page of API services, you can find My Subscriptions, API List, and Authorized Projects.

  • Cloud services

    1. Log in to the Tuya IoT Development Platform.

    2. Choose Cloud > Cloud Services.

    3. On the My Service page, search for and subscribe to your desired cloud service.

      Manage API Services

      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

      Manage API Services

    • API List

      Manage API Services

    • Authorized Projects

      Manage API Services

Subscribe to APIs

  1. 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.

    Manage API Services

    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.

    Manage API Services

  2. 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.

    Manage API Services

    Manage API Services

Grant a project access to API calls

The platform provides two methods to help you manage API and project authorization.

  • Method 1: Add cloud service authorization under a project

    1. On the page of Cloud > Development > Cloud Management, click a project to enter the details page.

    2. Select the Service API tab and click Go to Authorize.

    3. Select the cloud service as you want and authorize the project to access this cloud service.

      Manage API Services

  • Method 2: Add cloud project authorization under a cloud service

    1. On the page of Cloud > Cloud Services, select an API service and click View Details in the Operation column.

      Manage API Services

    2. Select the Authorized Projects tab and click Add Authorization.

      Manage API Services

    3. On the API Authorization page, select a project for authorization and click Confirm Authorization to finish authorization.

      Manage API Services

    4. (Optional) Click Revoke Authorization to revoke the access to this API operation from the project.

      Manage API Services