> ## Documentation Index
> Fetch the complete documentation index at: https://docs.corsair.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Database

> Zoho Desk local sync: searchable entities, `.search()` filters, and operators.

The Zoho Desk plugin syncs data locally. Use `corsair.zohodesk.db.<entity>.search({ data, limit?, offset? })` with the filters listed per entity.

> [!NOTE]
>
> **New to Corsair?** See [database operations](https://docs.corsair.dev/concepts/database.md), [data synchronization](https://docs.corsair.dev/concepts/integrations.md), and [multi-tenancy](https://docs.corsair.dev/concepts/multi-tenancy.md).

## Contacts

Path: `zohodesk.db.contacts.search`

```ts theme={null}
const rows = await corsair.zohodesk.db.contacts.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});
```

### Searchable filters

| Field | Type | Operators |
| - | - | - |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `id` | `string` | equals, contains, startsWith, endsWith, in |
| `firstName` | `string` | equals, contains, startsWith, endsWith, in |
| `lastName` | `string` | equals, contains, startsWith, endsWith, in |
| `email` | `string` | equals, contains, startsWith, endsWith, in |
| `secondaryEmail` | `string` | equals, contains, startsWith, endsWith, in |
| `phone` | `string` | equals, contains, startsWith, endsWith, in |
| `mobile` | `string` | equals, contains, startsWith, endsWith, in |
| `type` | `string` | equals, contains, startsWith, endsWith, in |
| `accountId` | `string` | equals, contains, startsWith, endsWith, in |
| `ownerId` | `string` | equals, contains, startsWith, endsWith, in |
| `createdTime` | `string` | equals, contains, startsWith, endsWith, in |
| `webUrl` | `string` | equals, contains, startsWith, endsWith, in |

*Every `.search()` also accepts `limit` and `offset` for pagination. `.list()` is available on the same path without the `.search` suffix in code — see [database operations](https://docs.corsair.dev/concepts/database.md).*

***

## Tickets

Path: `zohodesk.db.tickets.search`

```ts theme={null}
const rows = await corsair.zohodesk.db.tickets.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});
```

### Searchable filters

| Field | Type | Operators |
| - | - | - |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `id` | `string` | equals, contains, startsWith, endsWith, in |
| `ticketNumber` | `string` | equals, contains, startsWith, endsWith, in |
| `subject` | `string` | equals, contains, startsWith, endsWith, in |
| `status` | `string` | equals, contains, startsWith, endsWith, in |
| `statusType` | `string` | equals, contains, startsWith, endsWith, in |
| `priority` | `string` | equals, contains, startsWith, endsWith, in |
| `channel` | `string` | equals, contains, startsWith, endsWith, in |
| `category` | `string` | equals, contains, startsWith, endsWith, in |
| `departmentId` | `string` | equals, contains, startsWith, endsWith, in |
| `contactId` | `string` | equals, contains, startsWith, endsWith, in |
| `accountId` | `string` | equals, contains, startsWith, endsWith, in |
| `assigneeId` | `string` | equals, contains, startsWith, endsWith, in |
| `teamId` | `string` | equals, contains, startsWith, endsWith, in |
| `email` | `string` | equals, contains, startsWith, endsWith, in |
| `dueDate` | `string` | equals, contains, startsWith, endsWith, in |
| `closedTime` | `string` | equals, contains, startsWith, endsWith, in |
| `createdTime` | `string` | equals, contains, startsWith, endsWith, in |
| `webUrl` | `string` | equals, contains, startsWith, endsWith, in |

*Every `.search()` also accepts `limit` and `offset` for pagination. `.list()` is available on the same path without the `.search` suffix in code — see [database operations](https://docs.corsair.dev/concepts/database.md).*

***


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.