Companies API: List
Endpoint#
Section titled “Endpoint#”| Property | Value |
|---|---|
| Type | query |
| Method | GET |
| Path | /api/external/v1/companies/list |
| Handler | OperatelyWeb.Api.Companies.List |
Authentication#
Section titled “Authentication#”- Requires a valid API token.
- Read-only and full-access tokens can execute this query.
| Field | Type | Required | Nullable | Default |
|---|---|---|---|---|
include_member_count | boolean | No | Yes | - |
is_company_owner | boolean | No | No | - |
can_manage_billing | boolean | No | No | - |
Outputs#
Section titled “Outputs#”| Field | Type | Required | Nullable |
|---|---|---|---|
companies | array of company object | Yes | No |
cURL Example#
Section titled “cURL Example#”Copied
curl --request GET \
--url "https://app.operately.com/api/external/v1/companies/list?can_manage_billing=true&include_member_count=true&is_company_owner=true" \
--header "Authorization: Bearer ${OPERATELY_API_TOKEN}"Response Example#
Section titled “Response Example#”{ "companies": [ { "__typename": "value", "admins": [ "<person>" ], "company_space_id": "value", "enabled_experimental_features": [ "value" ], "general_space": "<space>", "id": "value", "member_count": 123, "mission": "value", "name": "value", "owners": [ "<person>" ], "people": [ "<person>" ], "permissions": "<company_permissions>", "setup_completed": true, "trusted_email_domains": [ "value" ] } ]}