Companies API: Get
Endpoint#
Section titled “Endpoint#”| Property | Value |
|---|---|
| Type | query |
| Method | GET |
| Path | /api/external/v1/companies/get |
| Handler | OperatelyWeb.Api.Companies.Get |
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_permissions | boolean | No | No | - |
include_people | boolean | No | No | - |
include_admins | boolean | No | No | - |
include_owners | boolean | No | No | - |
include_general_space | boolean | No | No | - |
include_members_access_levels | boolean | No | No | - |
Outputs#
Section titled “Outputs#”| Field | Type | Required | Nullable |
|---|---|---|---|
company | company object | Yes | No |
cURL Example#
Section titled “cURL Example#”Copied
curl --request GET \
--url "https://app.operately.com/api/external/v1/companies/get?include_admins=true&include_general_space=true&include_members_access_levels=true&include_owners=true&include_people=true&include_permissions=true" \
--header "Authorization: Bearer ${OPERATELY_API_TOKEN}"Response Example#
Section titled “Response Example#”{ "company": { "__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" ] }}