AWS Organizations
amazonaws · Cloud
Organizations is a web service that enables you to consolidate your multiple Amazon Web Services accounts into an organization and centrally manage your accounts and their resources. This guide provides descriptions of the Organizations operations. For more information about using this service, see the Organizations User Guide . Support and feedback for Organizations </p
Authentication
Sample Requests
Returns a list of the Amazon Web Services services that you enabled to integrate with your organization. After a service on this list creates the resources that it requires for the integration, it can perform operations on your organization and its accounts. For more information about inte
Hover any highlighted part to learn what it does
| X-Amz-Target | AWSOrganizationsV20161128.ListAWSServiceAccessForOrganization |
curl -X POST "https://api.apis.guru/v2/specs/amazonaws.com/organizations/2016-11-28/#X-Amz-Target=AWSOrganizationsV20161128.ListAWSServiceAccessForOrganization?NextToken=example&MaxResults=example" \ -H "X-Amz-Target: AWSOrganizationsV20161128.ListAWSServiceAccessForOrganization"
import requests
params = {
"NextToken": "example",
"MaxResults": "example"
}
headers = {
"X-Amz-Target": "AWSOrganizationsV20161128.ListAWSServiceAccessForOrganization"
}
response = requests.post(
"https://api.apis.guru/v2/specs/amazonaws.com/organizations/2016-11-28/#X-Amz-Target=AWSOrganizationsV20161128.ListAWSServiceAccessForOrganization",
params=params,
headers=headers,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/amazonaws.com/organizations/2016-11-28/#X-Amz-Target=AWSOrganizationsV20161128.ListAWSServiceAccessForOrganization');
url.searchParams.set('NextToken', 'example');
url.searchParams.set('MaxResults', 'example');
const response = await fetch(url, {
method: 'POST',
headers: {
'X-Amz-Target': 'AWSOrganizationsV20161128.ListAWSServiceAccessForOrganization'
},
});
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/amazonaws.com/organizations/2016-11-28/#X-Amz-Target=AWSOrganizationsV20161128.ListAWSServiceAccessForOrganization")
q := baseURL.Query()
q.Set("NextToken", "example")
q.Set("MaxResults", "example")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("POST", targetURL, nil)
req.Header.Set("X-Amz-Target", "AWSOrganizationsV20161128.ListAWSServiceAccessForOrganization")
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/amazonaws.com/organizations/2016-11-28/#X-Amz-Target=AWSOrganizationsV20161128.ListAWSServiceAccessForOrganization")
uri.query = URI.encode_www_form({
"NextToken" => "example",
"MaxResults" => "example"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Post.new(uri)
req["X-Amz-Target"] = "AWSOrganizationsV20161128.ListAWSServiceAccessForOrganization"
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/amazonaws.com/organizations/2016-11-28/#X-Amz-Target=AWSOrganizationsV20161128.ListAWSServiceAccessForOrganization?" . http_build_query([
"NextToken" => "example",
"MaxResults" => "example"
]);
$opts = ["http" => [
"method" => "POST",
"header" => implode("\r\n", [
"X-Amz-Target: AWSOrganizationsV20161128.ListAWSServiceAccessForOrganization"
]),
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Lists all the accounts in the organization. To request only the accounts in a specified root or organizational unit (OU), use the ListAccountsForParent operation instead. Always check the NextToken response parameter for a null value when calling a <
Hover any highlighted part to learn what it does
| X-Amz-Target | AWSOrganizationsV20161128.ListAccounts |
curl -X POST "https://api.apis.guru/v2/specs/amazonaws.com/organizations/2016-11-28/#X-Amz-Target=AWSOrganizationsV20161128.ListAccounts?NextToken=example&MaxResults=example" \ -H "X-Amz-Target: AWSOrganizationsV20161128.ListAccounts"
import requests
params = {
"NextToken": "example",
"MaxResults": "example"
}
headers = {
"X-Amz-Target": "AWSOrganizationsV20161128.ListAccounts"
}
response = requests.post(
"https://api.apis.guru/v2/specs/amazonaws.com/organizations/2016-11-28/#X-Amz-Target=AWSOrganizationsV20161128.ListAccounts",
params=params,
headers=headers,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/amazonaws.com/organizations/2016-11-28/#X-Amz-Target=AWSOrganizationsV20161128.ListAccounts');
url.searchParams.set('NextToken', 'example');
url.searchParams.set('MaxResults', 'example');
const response = await fetch(url, {
method: 'POST',
headers: {
'X-Amz-Target': 'AWSOrganizationsV20161128.ListAccounts'
},
});
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/amazonaws.com/organizations/2016-11-28/#X-Amz-Target=AWSOrganizationsV20161128.ListAccounts")
q := baseURL.Query()
q.Set("NextToken", "example")
q.Set("MaxResults", "example")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("POST", targetURL, nil)
req.Header.Set("X-Amz-Target", "AWSOrganizationsV20161128.ListAccounts")
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/amazonaws.com/organizations/2016-11-28/#X-Amz-Target=AWSOrganizationsV20161128.ListAccounts")
uri.query = URI.encode_www_form({
"NextToken" => "example",
"MaxResults" => "example"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Post.new(uri)
req["X-Amz-Target"] = "AWSOrganizationsV20161128.ListAccounts"
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/amazonaws.com/organizations/2016-11-28/#X-Amz-Target=AWSOrganizationsV20161128.ListAccounts?" . http_build_query([
"NextToken" => "example",
"MaxResults" => "example"
]);
$opts = ["http" => [
"method" => "POST",
"header" => implode("\r\n", [
"X-Amz-Target: AWSOrganizationsV20161128.ListAccounts"
]),
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Lists the accounts in an organization that are contained by the specified target root or organizational unit (OU). If you specify the root, you get a list of all the accounts that aren't in any OU. If you specify an OU, you get a list of all the accounts in only that OU and not in any child OUs.
Hover any highlighted part to learn what it does
| X-Amz-Target | AWSOrganizationsV20161128.ListAccountsForParent |
curl -X POST "https://api.apis.guru/v2/specs/amazonaws.com/organizations/2016-11-28/#X-Amz-Target=AWSOrganizationsV20161128.ListAccountsForParent?NextToken=example&MaxResults=example" \ -H "X-Amz-Target: AWSOrganizationsV20161128.ListAccountsForParent"
import requests
params = {
"NextToken": "example",
"MaxResults": "example"
}
headers = {
"X-Amz-Target": "AWSOrganizationsV20161128.ListAccountsForParent"
}
response = requests.post(
"https://api.apis.guru/v2/specs/amazonaws.com/organizations/2016-11-28/#X-Amz-Target=AWSOrganizationsV20161128.ListAccountsForParent",
params=params,
headers=headers,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/amazonaws.com/organizations/2016-11-28/#X-Amz-Target=AWSOrganizationsV20161128.ListAccountsForParent');
url.searchParams.set('NextToken', 'example');
url.searchParams.set('MaxResults', 'example');
const response = await fetch(url, {
method: 'POST',
headers: {
'X-Amz-Target': 'AWSOrganizationsV20161128.ListAccountsForParent'
},
});
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/amazonaws.com/organizations/2016-11-28/#X-Amz-Target=AWSOrganizationsV20161128.ListAccountsForParent")
q := baseURL.Query()
q.Set("NextToken", "example")
q.Set("MaxResults", "example")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("POST", targetURL, nil)
req.Header.Set("X-Amz-Target", "AWSOrganizationsV20161128.ListAccountsForParent")
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/amazonaws.com/organizations/2016-11-28/#X-Amz-Target=AWSOrganizationsV20161128.ListAccountsForParent")
uri.query = URI.encode_www_form({
"NextToken" => "example",
"MaxResults" => "example"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Post.new(uri)
req["X-Amz-Target"] = "AWSOrganizationsV20161128.ListAccountsForParent"
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/amazonaws.com/organizations/2016-11-28/#X-Amz-Target=AWSOrganizationsV20161128.ListAccountsForParent?" . http_build_query([
"NextToken" => "example",
"MaxResults" => "example"
]);
$opts = ["http" => [
"method" => "POST",
"header" => implode("\r\n", [
"X-Amz-Target: AWSOrganizationsV20161128.ListAccountsForParent"
]),
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- See official documentation for authentication and setup.
What can you build with AWS Organizations?
AWS Organizations is a Cloud API. Developers commonly use cloud APIs for:
- provisioning and managing cloud infrastructure
- automating deployments and container orchestration
- monitoring uptime and performance metrics
- managing storage buckets and databases
- setting up auto-scaling and load balancing
No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. AWS Organizations is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide · Learn about API keys · What is REST?