post https://api.freedomrobotics.ai/tokens
Example Payload
{
"token": "" // Your Token
"allowed_actions": { // Dictionary of queries and actions
"install_script": ["get"],
"download": ["get"]
"device": ["get","put"],
"device_data": ["put"],
"device_commands": ["get"]
}
"accounts": ["A0000000000000000000"],
"devices": ["*"] // 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.
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.