Use this endpoint to get all organizations where the calling user holds the ORG_ADMIN role. Returns each organization's ID and name. The caller is identified by the access token — no request parameters are required.
Request
End Point https://business.newsbreak.com/business-api/v1/org/admin-orgs
Method GET
Header
| Field | Required | Data Type | Description |
|---|---|---|---|
| Access-Token | Y | string | Authorized access token. |
Example
curl --location --request GET 'https://business.newsbreak.com/business-api/v1/org/admin-orgs' \
-H 'Content-Type: application/json' \
-H 'Access-Token:{{Access-Token}}'
Response
Response Parameters
| Field | Data Type | Description |
|---|---|---|
| code | int | Status code, see Return Codes |
| errMsg | string | Error message when code!=0 |
| data | object | Response object. |
| └── list | object[] | Each row is an organization. |
| └── id | string | Organization ID |
| └── name | string | Organization name |
Example
{
"code": 0,
"data": {
"list": [
{
"id": "123",
"name": "my organization example 1"
},
{
"id": "234",
"name": "my organization example 2"
}
]
}
}When the caller holds no ORG_ADMIN role on any organization, data.list is an empty array:
{
"code": 0,
"data": {
"list": []
}
}