curl --request GET \
--url https://api.apostra.com/api/v2/accounts/organization-posture \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.apostra.com/api/v2/accounts/organization-posture"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.apostra.com/api/v2/accounts/organization-posture', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"authorityCustomerId": 4503599627370495,
"authorityEpoch": "<string>",
"posture": "direct_parent_admin"
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}Get organization posture
Returns the caller’s posture for Organization settings in buyer and seller accounts. Available to all eligible organization contexts; returns 403 when no customer context is present, or 503 when a backing dependency is temporarily unavailable. The posture value describes the caller’s relationship to the organization: direct_parent_admin (ADMIN on the parent organization or non-impersonated SUPER_ADMIN), child_standalone (direct non-propagated child member without organization-admin authority), standalone (PARENT or STANDALONE — the account is its own organization boundary), or ineligible (service token, workload, advertiser-scoped, impersonated, or other excluded principal class). The value drives which UI slice to render and never confers additional write authority — every write retains its own explicit-target authorization.
curl --request GET \
--url https://api.apostra.com/api/v2/accounts/organization-posture \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.apostra.com/api/v2/accounts/organization-posture"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.apostra.com/api/v2/accounts/organization-posture', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"authorityCustomerId": 4503599627370495,
"authorityEpoch": "<string>",
"posture": "direct_parent_admin"
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}Authorizations
API key or access token