Companies API: Search
Endpoint#
Section titled “Endpoint#”| Property | Value |
|---|---|
| Type | query |
| Method | GET |
| Path | /api/external/v1/companies/search |
| Handler | OperatelyWeb.Api.Companies.Search |
Authentication#
Section titled “Authentication#”- Requires a valid API token.
- Read-only and full-access tokens can execute this query.
| Field | Type | Required | Nullable | Default |
|---|---|---|---|---|
query | string | Yes | No | - |
space_ids | array of id primitive (encoded as string) | No | Yes | - |
types | array of search_result_type enum (resource_hub_folder, resource_hub_document, resource_hub_file, resource_hub_link, project, goal, milestone, task, person, discussion, project_check_in, goal_check_in, project_retrospective) | No | Yes | - |
time_range | search_time_range enum (last_7_days, last_30_days, last_90_days, last_12_months) | No | Yes | - |
sort | search_sort enum (best_match, most_recent) | No | Yes | - |
Outputs#
Section titled “Outputs#”| Field | Type | Required | Nullable |
|---|---|---|---|
results | array of search_result object | Yes | No |
cURL Example#
Section titled “cURL Example#”Copied
curl --request GET \
--url "https://app.operately.com/api/external/v1/companies/search?query=value&sort=best_match&space_ids[]=value&time_range=last_7_days&types[]=resource_hub_folder" \
--header "Authorization: Bearer ${OPERATELY_API_TOKEN}"Response Example#
Section titled “Response Example#”{ "results": [ { "__typename": "value", "context": "value", "id": "value", "inserted_at": "2026-01-01T09:30:00Z", "matched_field": "title", "navigation_target": "<search_navigation_target>", "snippet": "value", "state": "closed", "title": "value", "type": "resource_hub_folder", "url": "value" } ]}