List devices
curl --request GET \
--url https://api.autogrowth.farm/v1/devices \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.autogrowth.farm/v1/devices"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.autogrowth.farm/v1/devices', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.autogrowth.farm/v1/devices",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.autogrowth.farm/v1/devices"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.autogrowth.farm/v1/devices")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.autogrowth.farm/v1/devices")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"devices": [
{
"id": "<string>",
"name": "<string>",
"deviceModel": "<string>",
"productType": "<string>",
"deviceColor": "<string>",
"iosVersion": "<string>",
"osVersion": "<string>",
"screenWidth": 123,
"screenHeight": 123,
"udid": "<string>",
"serial": "<string>",
"currentTask": "<string>",
"tasksCompleted": 123,
"lastActivity": "<string>",
"createdAt": "<string>",
"online": true,
"connectionType": "<string>",
"connectedAt": "<string>",
"status": "<string>",
"agentStatus": "<string>",
"battery": 123,
"stream": {
"mjpegServerUrl": "<string>",
"startedAt": "<string>",
"screenWidth": 123,
"screenHeight": 123
},
"tunnelStatus": "<string>",
"isJailbroken": true,
"isDoritosLinked": true,
"isDoritosLiteLinked": true,
"jailbreakDetected": true,
"jailbreakDetectedAt": "<string>",
"jailbreakDetectionSignals": [
"<string>"
],
"jailbreakStatusOverrideAt": "<string>",
"doritosVersion": "<string>",
"containerCount": 123,
"containerCapacity": 123,
"accounts": [
{
"username": "<string>"
}
],
"tags": [
{
"id": "<string>",
"name": "<string>",
"color": "<string>"
}
],
"assignedUsers": [
{
"id": "<string>",
"email": "<string>",
"name": "<string>"
}
],
"currentAccountId": "<string>"
}
]
}{
"error": "<string>"
}{
"error": "<string>"
}Devices
List devices
Returns every device the API key can reach, newest first. Owners see all organization devices; other roles see only devices assigned to them or carrying one of their assigned tags. Ephemeral fields (online, status, agentStatus, battery, stream) are read from Redis and are null/disconnected when the device is offline.
GET
/
devices
List devices
curl --request GET \
--url https://api.autogrowth.farm/v1/devices \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.autogrowth.farm/v1/devices"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.autogrowth.farm/v1/devices', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.autogrowth.farm/v1/devices",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.autogrowth.farm/v1/devices"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.autogrowth.farm/v1/devices")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.autogrowth.farm/v1/devices")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"devices": [
{
"id": "<string>",
"name": "<string>",
"deviceModel": "<string>",
"productType": "<string>",
"deviceColor": "<string>",
"iosVersion": "<string>",
"osVersion": "<string>",
"screenWidth": 123,
"screenHeight": 123,
"udid": "<string>",
"serial": "<string>",
"currentTask": "<string>",
"tasksCompleted": 123,
"lastActivity": "<string>",
"createdAt": "<string>",
"online": true,
"connectionType": "<string>",
"connectedAt": "<string>",
"status": "<string>",
"agentStatus": "<string>",
"battery": 123,
"stream": {
"mjpegServerUrl": "<string>",
"startedAt": "<string>",
"screenWidth": 123,
"screenHeight": 123
},
"tunnelStatus": "<string>",
"isJailbroken": true,
"isDoritosLinked": true,
"isDoritosLiteLinked": true,
"jailbreakDetected": true,
"jailbreakDetectedAt": "<string>",
"jailbreakDetectionSignals": [
"<string>"
],
"jailbreakStatusOverrideAt": "<string>",
"doritosVersion": "<string>",
"containerCount": 123,
"containerCapacity": 123,
"accounts": [
{
"username": "<string>"
}
],
"tags": [
{
"id": "<string>",
"name": "<string>",
"color": "<string>"
}
],
"assignedUsers": [
{
"id": "<string>",
"email": "<string>",
"name": "<string>"
}
],
"currentAccountId": "<string>"
}
]
}{
"error": "<string>"
}{
"error": "<string>"
}⌘I