> For the complete documentation index, see [llms.txt](https://tuya.gitbook.io/open-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tuya.gitbook.io/open-api/user-apis.md).

# User APIs

## Get App Users

<mark style="color:blue;">`GET`</mark> `https://api.cakes.com/v1.0/apps/{schema}/users?page_no=&page_size=&access_token=&sign=&t=`

Get app users according to `schema`

#### Path Parameters

| Name   | Type   | Description                                                  |
| ------ | ------ | ------------------------------------------------------------ |
| schema | string | Android and IOS app have different schema, generated by Tuya |

#### Query Parameters

| Name          | Type    | Description                 |
| ------------- | ------- | --------------------------- |
| page\_no      | string  | Page number                 |
| page\_size    | string  | Records count in every page |
| access\_toekn | string  |                             |
| sign          | string  |                             |
| t             | boolean |                             |

{% tabs %}
{% tab title="200 Cake successfully retrieved." %}

```javascript
{
    "name": "Cake's name",
    "recipe": "Cake's recipe name",
    "cake": "Binary cake"
}
```

{% endtab %}

{% tab title="404 Could not find a cake matching this query." %}

```javascript
{
    "message": "Ain't no cake like that."
}
```

{% endtab %}
{% endtabs %}

## Synchronize user information

<mark style="color:green;">`POST`</mark> `/v1.0/apps/{schema}/user`

Synchronize user information to Tuya cloud

#### Path Parameters

| Name   | Type   | Description                                              |
| ------ | ------ | -------------------------------------------------------- |
| schema | string | Android and IOS have different schema, generated by Tuya |

#### Query Parameters

| Name           | Type   | Description |
| -------------- | ------ | ----------- |
| access\_tokekn | string |             |
| sign           | string |             |
| t              | string |             |

#### Request Body

| Name          | Type   | Description                                                                |
| ------------- | ------ | -------------------------------------------------------------------------- |
| country\_code | number | Country code                                                               |
| username      | string | You can pass a random string if you don't want pass username to Tuya Cloud |
| password      | string | The same to above, should be a md5 string                                  |
| nick\_name    | string |                                                                            |

{% tabs %}
{% tab title="200 " %}

```javascript
{
      "success": true,
      "code": 0,
      "msg": ""
  }
```

{% endtab %}
{% endtabs %}
