Posted in

By

10 of 10Updated 2026-11-193 min read中文版

To enable users to use IoT functionalities more flexibly, the following APIs are currently available for use:

GCP

https://fatekcloud.net

Alibaba Cloud

https://fatekiot.cn

Data Format

JSON

HTTP Method

POST

10.1 Login Account

URL

Server/fiot_api/auth/login

Parameter

Field

Type

Describe

project

String

Customer ID (Required)

email

String

Email

password

String

Password (Required)

Return

Field

Type

Describe

errorcode

Number

0:SUCCESS

1:ERR_INVALID_PARAMETER

3:ERR_ITEM_NOT_EXIST

7:ERR_PROJECT_NOT_EXIST)

8:ERR_AUTH_FAIL)

9:ERR_IN_BLACKLIST

15:ERR_NOT_ACTIVATED

token

String

Token

refresh_token

String

Refresh Token

expired_time

String

Token Expired Time

type

String

User Type

user_id

String

User ID

projectExpireStatus

Number

0: Not expired

1: Expiring soon

2: Expired

projectExpireTime

Number

Project Expiry Time (UNIX TIMESTAMP)

Example

Chapter 10 API concatenation - 1

Return

Chapter 10 API concatenation - 2

10.2 Logout Account

URL

Server/fiot_api/auth/logout

Parameter

Field

Type

Describe

token

String

Token

Return

Field

Type

Describe

errorcode

Number

0:SUCCESS

1:ERR_INVALID_PARAMETER

4:ERR_INVALID_TOKEN

Example

Chapter 10 API concatenation - 3

Return

Chapter 10 API concatenation - 4

10.3 Refresh TOKEN

URL

Server/fiot_api/auth/refresh

Parameter

Field

Type

Describe

refresh_token

String

refresh_token (Required)

Return

Field

Type

Describe

errorcode

Number

0:SUCCESS

1:ERR_INVALID_PARAMETER

3:ERR_ITEM_NOT_EXIST

4:ERR_INVALID_TOKEN

7:ERR_PROJECT_NOT_EXIST

9:ERR_IN_BLACKLIST

15:ERR_NOT_ACTIVATED

token

String

Token

refresh_token

String

Refresh Token

expired_time

String

Token Expired Time

type

String

User Type

Example

Chapter 10 API concatenation - 5

Return

Chapter 10 API concatenation - 6

10.4 Obtain Dataitem Group List

URL

Server/fiot_api/imonitor/group/list

Parameter

Field

Type

Describe

token

String

TOKEN (Required)

Return

Field

Type

Describe

errorcode

Number

0:SUCCESS

1:ERR_INVALID_PARAMETER

4:ERR_INVALID_TOKEN

255:ERR_NO_PERMSSION

Number

Number

Group Count

groups

Object[ ]

Group List

name

String

Name, Non-duplicate within the project

group_id

String

Group ID

location

String

GPS Coordinates, “DMS 021° 58’50.100 125° 06’08.067”

cloud_status

Number

0: Not connected

1: Connected, no report

2: Connected, reported

5: Communication abnormality

alert

Boolean

Alarm Status

permission

String

Read/write permissions for this user

Example

Chapter 10 API concatenation - 7

Return

Chapter 10 API concatenation - 8

10.5 Obtain the Dataitem Information of the Dataitem Group

URL

Server/fiot_api/imonitor/group/dataitems

Parameter

Field

Type

Describe

token

String

TOKEN (Required)

group_id

String

Group ID (Required)

Return

Field

Type

Describe

errorcode

Number

0:SUCCESS

1:ERR_INVALID_PARAMETER

3:ERR_ITEM_NOT_EXIST

4:ERR_INVALID_TOKEN

255:ERR_NO_PERMSSION

Number

Number

Data Item Count

dataitems

Object[]

Data Item List

name

String

Data Item Name

dataitem_id

String

Data Item ID

type

String

Data Item Format (e.g., BIT/INT)

length

Number

Data Item Data Length (<100)

value

Number

Data Item Value

cloud_status

Number

0: Not connected

1: Connected, no report

2: Connected, reported

5: Communication abnormality

alert

Boolean

Alarm Status

update_time

Number

Data Item Update Time

Example

Chapter 10 API concatenation - 9

Return

Chapter 10 API concatenation - 10

10.6 Obtain Dataitem Information

URL

Server/fiot_api/imonitor/dataitem/value

Parameter

Field

Type

Describe

token

String

TOKEN (Required)

dataitem_id

String

Dataitem ID (Required)

Return

Field

Type

Describe

errorcode

Number

0:SUCCESS

1:ERR_INVALID_PARAMETER

3:ERR_ITEM_NOT_EXIST

4:ERR_INVALID_TOKEN

255:ERR_NO_PERMSSION

name

String

Data Item Name

dataitem_id

String

Data Item ID

type

String

Data Item Format (e.g., BIT/INT)

length

Number

Data Item Data Length (<100)

value

Number

Data Item Value

cloud_status

Number

0: Not connected

1: Connected, no report

2: Connected, reported

5: Communication abnormality

alert

Boolean

Alarm Status

update_time

Number

Data Item Update Time

Example

Chapter 10 API concatenation - 11

Return

Chapter 10 API concatenation - 12

10.7 Setting Dataitem Values

URL

Server/fiot_api/imonitor/dataitem/setValue

Parameter

Field

Type

Describe

token

String

TOKEN (Required)

dataitem_id

String

Dataitem ID (Required)

value

Any

Numerical value/number or string depending on the type (Required)

Return

Field

Type

Describe

errorcode

Number

0:SUCCESS

1:ERR_INVALID_PARAMETER

3:ERR_ITEM_NOT_EXIST

4:ERR_INVALID_TOKEN

255:ERR_NO_PERMSSION

Example

Chapter 10 API concatenation - 13

Return

Chapter 10 API concatenation - 14

Note: Strings support input “abc”, numbers support input 10, boolean values support input true or false.

Was this page helpful?

Tip: press ← → to switch chapters, Ctrl+K to search