# API: Records

| Method | Path | What it does | Scope |
|---|---|---|---|
| GET | `/v1/search/records` | Find agents by name for the command palette: the best few, names starting with the query first | `agents:read` |

## Examples

### GET /v1/search/records

Find agents by name for the command palette: the best few, names starting with the query first

```bash
curl -s "https://api.cubbylark.com/v1/search/records" \
  -H "Authorization: Bearer $KC_API_KEY"
```

```js
const res = await fetch(`https://api.cubbylark.com/v1/search/records`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.KC_API_KEY}` },
});
const data = await res.json();
```

Request and response schemas: [https://www.cubbylark.com/openapi.json](https://www.cubbylark.com/openapi.json). All resources: [API reference](https://www.cubbylark.com/docs/api).
