List all organizations

Retrieves a detailed list of all organizations for the authenticated user

get
/orgs

https://console.automox.com/api/orgs
Request
Response
Request
Headers
Authorization: Bearer
required
string
Your Automox API Key for authentication Format: Authorization: Bearer your_automox_api_key
Response
200: OK
{
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"name": {
"type": "string"
},
"access_key": {
"type": "string"
},
"addr1": {
"type": "string"
},
"addr2": {
"type": "string"
},
"billing_interval": {
"type": "integer",
"format": "int64"
},
"billing_interval_count": {
"type": "integer",
"format": "int64"
},
"cc_brand": {
"type": "string"
},
"cc_exp": {
"type": "string"
},
"cc_last": {
"type": "string"
},
"cc_name": {
"type": "string"
},
"city": {
"type": "string"
},
"create_time": {
"type": "string",
"format": "date-time"
},
"rate": {
"type": "integer",
"format": "int64"
},
"server_limit": {
"type": "integer",
"format": "int64"
},
"state": {
"type": "string"
},
"stripe_cust": {
"type": "string"
},
"subscription": {
"type": "string"
},
"trial_end_time": {
"type": "string",
"format": "date-time"
},
"trial_expired": {
"type": "boolean"
},
"zipcode": {
"type": "string"
},
"device_limit": {
"type": "number"
},
"device_count": {
"type": "number"
}
}
}

Example Requests

cURL
Python http.client
Python requests
C#
PowerShell
cURL
curl -X GET \
https://console.automox.com/api/orgs \
-H 'Authorization: Bearer your_automox_api_key'
Python http.client
import http.client
conn = http.client.HTTPConnection("console,automox,com")
headers = {
'Authorization': "Bearer your_automox_api_key"
}
conn.request("GET", "api,orgs", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
Python requests
import requests
url = "https://console.automox.com/api/orgs"
headers = {
'Authorization': "Bearer your_automox_api_key"
}
response = requests.request("GET", url, headers=headers)
print(response.text)
C#
var client = new RestClient("https://console.automox.com/api/orgs");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer your_automox_api_key");
IRestResponse response = client.Execute(request);
PowerShell
$apiKey = 'your_automox_api_key'
$headers = @{ "Authorization" = "Bearer $apiKey" }
$url = "https://console.automox.com/api/orgs"
$response = (Invoke-WebRequest -Method Get -Uri $url -Headers $headers).Content