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
Query Parameters
limit
optional
integer
Maximum number of organizations to retrieve per page. Use in conjunction with the page parameter. See About Automox API > Pagination.
page
optional
integer
Retrieve a specific page from the list of organizations. Use in conjunction with the limit parameter. See About Automox API > Pagination.
Response
200: OK
[
{
"id": 1234,
"name": "Automox Test Org",
"addr1": null,
"addr2": null,
"city": null,
"state": null,
"zipcode": null,
"country": null,
"create_time": "2019-08-27T21:59:19+0000",
"access_key": "string",
"server_limit": 0,
"stripe_cust": null,
"cc_last": null,
"cc_exp": null,
"cc_brand": null,
"cc_name": null,
"billing_interval": null,
"billing_interval_count": null,
"trial_end_time": null,
"trial_expired": false,
"sub_plan": "FULL",
"sub_systems": null,
"sub_create_time": null,
"sub_end_time": null,
"next_bill_time": null,
"rate_id": 1,
"parent_id": 65,
"bill_overages": true,
"metadata": {
"patchServersDone": true
},
"legacy_billing": true,
"billing_name": null,
"billing_email": null,
"billing_phone": null,
"device_limit": null,
"device_count": 8
},
{
"id": 21165,
"name": "Automox SDE",
"addr1": null,
"addr2": null,
"city": null,
"state": null,
"zipcode": null,
"country": null,
"create_time": "2020-10-12T11:11:40+0000",
"access_key": "string",
"server_limit": 0,
"stripe_cust": null,
"cc_last": null,
"cc_exp": null,
"cc_brand": null,
"cc_name": null,
"billing_interval": null,
"billing_interval_count": null,
"trial_end_time": null,
"trial_expired": false,
"sub_plan": "FULL",
"sub_systems": null,
"sub_create_time": null,
"sub_end_time": null,
"next_bill_time": null,
"rate_id": 1,
"parent_id": 65,
"bill_overages": true,
"metadata": {
"patchServersDone": true
},
"legacy_billing": true,
"billing_name": null,
"billing_email": null,
"billing_phone": null,
"device_limit": null,
"device_count": 33
}
]

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