post https://api.freedomrobotics.ai/tokens
Example Payload
{
"type": "custom"
"allowed_actions": { // Dictionary of queries and actions
"install_script": ["get"],
"download": ["get"]
"device": ["get","put", "delete"],
"device_data": ["put"],
"device_commands": ["get", "post"]
}
"accounts": ["A0000000000000000000"],
"devices": ["ID1"] // or "*" to access all devices in account
}
Returns a new access token with the permissions specified in the body of the request. The maximum permissions allowed are those of the current token being used.
account
accounts
device
device_alerts
device_commands
device_data
device_videos
devices
download
install_script
pilot
token
tokens
zone
zones
Secret Token
The secret is only available when you create a token, so please record it somewhere for future use. You will need to send it into the query as a mc_secret parameter.