Read All Variables Endpoint POST

Reads all the values of the users' variable in either of the two formats.

Basic Authentication Endpoints

Authorization Header

This endpoint uses Basic Authentication for the reading of the variable and its properties.

Parameter
Description
username
The registered username of the account.
password
The registered password of the account.

Bearer Token Authentication Endpoints

Authorization Header

This endpoint uses Bearer Authentication for the reading of the variable and its properties.

Parameter
Description
Bearer
A user's generated token

Responses

Successful Variable Reading
  • Status Code: 200 Ok
  • Response Body (Sample):
json (format1)
{
"variables"
:
[
{
"variable_name"
:
"Temperature"
,
"value"
:
"36.7"
,
"unit"
:
"Celcius"
,
"updated_at"
:
"2024-03-21T04:37:47.981Z"
},
{
"variable_name"
:
"Temperature2"
,
"value"
:
"37.7"
,
"unit"
:
"Celcius"
,
"updated_at"
:
"2024-03-21T04:37:47.981Z"
}
]
}
json (format2)
{
"variables"
: {
"Temperature"
:
"36.7",
"Temperature2"
:
"37.7"
}
}