---
title: "Search remote files"
method: GET
path: "/connectors/v1/connections/{id}/search"
tags: ["Connectors"]
---

# Search remote files

`GET /connectors/v1/connections/{id}/search`

## Request

- Base URL: `https://api.case.dev`
- URL: `https://api.case.dev/connectors/v1/connections/{id}/search`
- Auth: HTTP bearer

Search the provider's files by name, and by content where the provider supports it. Without a scope, searches everything the connection can see; pass the browse_ref fields of a folder or container to search inside it. Each response states whether its folder scope covers the whole subtree. Returns 422 search_not_supported when the provider has no search, and shares the provider request budget with browsing and background runs.

## Path parameters

- `id` string, required

## Query parameters

- `query` string, required
- `site` string
- `container` string
- `parent` string
- `cursor` string
- `page_size` integer

## Headers

- `x-case-connector-subject` string

## Response `200`

One page of matching files

- object
  - `items` object[]
    - `id` string
    - `name` string
    - `kind` 'file'
    - `mime_type` string, nullable
    - `size_bytes` integer, nullable
    - `modified_at` string, nullable
    - `path` string, nullable
    - `container_id` string, nullable
    - `parent_ids` string[]
    - `unsupported_reason` string, nullable: Set when the file cannot be imported (for example a Box note)
    - `open_ref` string, nullable: Signed reference to this file for POST /connectors/v1/fetch. Null for providers without single-file fetch. Pass it back exactly as received.
  - `cursor` string, nullable
  - `scope` 'account' | 'folder'
  - `scope_ref` object, nullable
  - `full_text` boolean: Whether the provider matches file contents, not only names
  - `folder_scope_recursive` boolean: False when a folder scope covers its direct children only

## Other responses

- `400`: Missing query or unsupported scope reference
- `401`: Invalid API key
- `403`: Insufficient permissions or provider_scope_insufficient
- `404`: Connection or folder not found
- `409`: Connection is not healthy (reauth required)
- `422`: search_not_supported or search_scope_not_supported
- `429`: Provider request budget exhausted; Retry-After specifies seconds to wait when known

## Changes

- **2026-10-28** `0342b8b0c63b`: 1 info
  - added the optional property `items/items/open_ref` to the response with the `200` status
- **2026-10-28** `f9540d1ffad1`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/casemark/apis/case-dev-api/changes/connectors/v1/connections/:id/search/get.md)

---

[API](https://skmtc.dev/casemark/apis/case-dev-api.md) - [All operations](https://skmtc.dev/casemark/apis/case-dev-api/llms.txt) - [OpenAPI document](https://skmtc.dev/casemark/apis/case-dev-api/revisions/9a3245c00044?raw)
