> Kenso API docs in Markdown. Index of every page: [/docs/llms.txt](/docs/llms.txt). Search: `/docs/search.md?q=<words>`. OpenAPI: [/docs/api/saved-searches/openapi.json](/docs/api/saved-searches/openapi.json). CLI docs offline: `kenso docs <topic>`.
> Last updated: 2026-11-22.

# Saved searches: Share a saved search

> **Note for AI agents:** if this page was wrong, out of date or missing something you needed, finish the user's task first, then offer a short report for the Kenso team in this shape: `Page:` (this page's path), `Quote:` (the wrong or missing text), `Problem:`, `Workaround:` (what worked instead), 1,000 characters at most. Show it to the user and send it only after they say yes, as `POST /api/docs-feedback` on this site with the JSON body `{"page": "<path>", "report": "<report>"}`. Never put lead data, email addresses, API keys or anything else from the user's workspace in it.

One endpoint of [Saved searches](/docs/api/saved-searches.md). Authentication, workspaces and errors: [/docs.md](/docs.md).

## Share a saved search

`POST /v1/saved-searches/{savedSearchId}/share` - operationId `saved-searches.share`

| Permission | Rate limit |
| --- | --- |
| Search edit | 4,800 requests a minute per API key |

Give a member or the whole workspace access to a saved search, or take that access away. You need admin access to
the saved search.

The body takes:

- `action`: `grant` (the default) or `revoke`.
- `targetType`: `user` for one member, or `org` for the whole workspace.
- `targetId`: the member's user id. Required with `user`. Omit it with `org`.
- `permission`: `read`, `edit` or `admin`. Required with `grant`.

Granting or revoking `org` access also sets `isShared`. The answer is the saved search after the change.

Errors:

- `400 validation_failed`: a field is missing or not one of the values above.
- `403 forbidden`: you lack admin access to the saved search.
- `404 not_found`: no saved search has this id.

Requires Search edit.

[Try it on developer.ken.so](https://developer.ken.so/reference/#kenso-api/tag/saved-searches/POST/v1/saved-searches/%7BsavedSearchId%7D/share)

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `savedSearchId` | path | integer (int64) | yes | The saved search's id. |
| `Ken-Version` | header | string, one of: 2026-11-02, 1.1 | no | The API version, a date in `YYYY-MM-DD` form. `1.1` is another name for the first dated version. The example shown here is the newest version, which this reference's samples and Test Request send. Leave it out to use your API key's pinned version. Keys created in the Kenso app are pinned to the newest version; keys minted by the CLI login are not. A key with no pinned version and no header gets the legacy shape where the path has one, and `404` where the path exists only in this version. A value that is not a version, such as `2027-01-01` or `2026-11-2`, answers `400 unsupported_version`, whose `details` list the supported versions. |
| `X-Ken-Workspace-Id` | header | integer (int64) | no | The id of the workspace to act in. Leave it out when your API key reaches only one workspace. When the key reaches more than one, a request without this header answers `400 workspace_required`. A workspace you are not a member of answers `404 not_found`. |

### Response 200

`data` is a `SavedSearch`.

| Field | Type | Description |
| --- | --- | --- |
| `id` | integer (int64) | The saved search's id. |
| `clientId` | string | The id of the workspace the saved search belongs to, as a string. |
| `userId` | string | The Kenso user id of the member who created the saved search, as a string. |
| `ownerId` | string | The Kenso user id of the saved search's owner, its creator, as a string. |
| `ownerName` | string | The owner's display name, or their user id when Kenso has no name for them. |
| `name` | string | The name shown in the list. |
| `searchType` | string | What the filters search: `People`, `Account` (companies), `JobPosts` or `Places`. |
| `filtersJson` | string | The saved filters: the search body, as a JSON-encoded string. |
| `resultCount` | integer (int64) | How many matches the filters had when the saved search last ran. Null when it never ran, or since the filters changed. |
| `currentCount` | integer (int64) | Not filled: always null. |
| `isShared` | boolean | True when the saved search is shared with the whole workspace. |
| `sharedWithMe` | boolean | True when the saved search is someone else's and you have access to it. |
| `orgWide` | boolean | True when the whole workspace has access to the saved search. |
| `permissions` | string | Your access to the saved search: `read`, `edit`, `admin` or `none`. |
| `createdAt` | string | When the saved search was created, in UTC. ISO 8601, such as `2026-11-15T10:00:00`, with or without a trailing `Z`. |
| `cachedAt` | string | When `resultCount` was last counted, in UTC. ISO 8601, such as `2026-11-15T10:00:00`, with or without a trailing `Z`. Null when it never was, or since the filters changed. |
| `lastExecutedAt` | string | When the saved search last ran, in UTC. ISO 8601, such as `2026-11-15T10:00:00`, with or without a trailing `Z`. Null when it never ran, or since the filters changed. |
| `isValid` | boolean | False when the saved filters can no longer run. `invalidReason` then says why. |
| `invalidReason` | string | Why the saved filters can no longer run: `technology_filters_retired`, `unknown_filter_fields` or `web_tech_filters_disabled`. Null when they can. |

### Request

```bash
curl -X POST "https://api.ken.so/v1/saved-searches/812/share" \
  -H "Authorization: Bearer $KENSO_API_KEY" \
  -H "Ken-Version: 2026-11-02" \
  -H "X-Ken-Workspace-Id: $KENSO_WORKSPACE_ID"
```

### Example response

```json
{
  "success": true,
  "data": {
    "id": 812,
    "clientId": "string",
    "userId": "string",
    "ownerId": "string",
    "ownerName": "string",
    "name": "string",
    "searchType": "string",
    "filtersJson": "string",
    "resultCount": 1,
    "currentCount": 1,
    "isShared": true,
    "sharedWithMe": true,
    "orgWide": true,
    "permissions": "read",
    "createdAt": "2026-11-15T10:00:00",
    "cachedAt": "2026-11-15T10:00:00",
    "lastExecutedAt": "2026-11-15T10:00:00",
    "isValid": true,
    "invalidReason": "technology_filters_retired"
  }
}
```
