> ## 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.

# Short.io database

> Short.io local sync in Corsair: the entities stored in your database, the `.search()` filters each one accepts, and the filter operators.

The Short.io plugin syncs data locally. Use `corsair.shortio.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).

## Domains

Path: `shortio.db.domains.search`

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

### Searchable filters

| Field | Type | Operators |
| - | - | - |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `id` | `number` | equals, gt, gte, lt, lte, in |
| `hostname` | `string` | equals, contains, startsWith, endsWith, in |
| `unicodeHostname` | `string` | equals, contains, startsWith, endsWith, in |
| `state` | `string` | equals, contains, startsWith, endsWith, in |
| `createdAt` | `string` | equals, contains, startsWith, endsWith, in |
| `updatedAt` | `string` | equals, contains, startsWith, endsWith, in |
| `TeamId` | `number` | equals, gt, gte, lt, lte, in |
| `hasFavicon` | `boolean` | equals |
| `segmentKey` | `string` | equals, contains, startsWith, endsWith, in |
| `hideReferer` | `boolean` | equals |
| `linkType` | `string` | equals, contains, startsWith, endsWith, in |
| `cloaking` | `boolean` | equals |
| `hideVisitorIp` | `boolean` | equals |
| `enableAI` | `boolean` | equals |
| `httpsLevel` | `string` | equals, contains, startsWith, endsWith, in |
| `httpsLinks` | `boolean` | equals |
| `redirect404` | `string` | equals, contains, startsWith, endsWith, in |
| `webhookURL` | `string` | equals, contains, startsWith, endsWith, in |
| `integrationGA` | `string` | equals, contains, startsWith, endsWith, in |
| `integrationFB` | `string` | equals, contains, startsWith, endsWith, in |
| `integrationAdroll` | `string` | equals, contains, startsWith, endsWith, in |
| `integrationGTM` | `string` | equals, contains, startsWith, endsWith, in |
| `caseSensitive` | `boolean` | equals |
| `robots` | `string` | equals, contains, startsWith, endsWith, in |
| `sslCertExpirationDate` | `string` | equals, contains, startsWith, endsWith, in |
| `sslCertInstalledSuccess` | `boolean` | equals |
| `domainRegistrationId` | `number` | equals, gt, gte, lt, lte, in |
| `UserId` | `number` | equals, gt, gte, lt, lte, in |
| `exportEnabled` | `boolean` | equals |
| `isFavorite` | `boolean` | equals |
| `userPlan` | `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).*

***

## Links

Path: `shortio.db.links.search`

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

### Searchable filters

| Field | Type | Operators |
| - | - | - |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `originalURL` | `string` | equals, contains, startsWith, endsWith, in |
| `path` | `string` | equals, contains, startsWith, endsWith, in |
| `idString` | `string` | equals, contains, startsWith, endsWith, in |
| `shortURL` | `string` | equals, contains, startsWith, endsWith, in |
| `secureShortURL` | `string` | equals, contains, startsWith, endsWith, in |
| `cloaking` | `boolean` | equals |
| `password` | `string` | equals, contains, startsWith, endsWith, in |
| `expiredURL` | `string` | equals, contains, startsWith, endsWith, in |
| `title` | `string` | equals, contains, startsWith, endsWith, in |
| `utmSource` | `string` | equals, contains, startsWith, endsWith, in |
| `utmMedium` | `string` | equals, contains, startsWith, endsWith, in |
| `utmCampaign` | `string` | equals, contains, startsWith, endsWith, in |
| `utmTerm` | `string` | equals, contains, startsWith, endsWith, in |
| `utmContent` | `string` | equals, contains, startsWith, endsWith, in |
| `androidURL` | `string` | equals, contains, startsWith, endsWith, in |
| `iphoneURL` | `string` | equals, contains, startsWith, endsWith, in |
| `clicksLimit` | `number` | equals, gt, gte, lt, lte, in |
| `passwordContact` | `boolean` | equals |
| `skipQS` | `boolean` | equals |
| `archived` | `boolean` | equals |
| `splitURL` | `string` | equals, contains, startsWith, endsWith, in |
| `splitPercent` | `number` | equals, gt, gte, lt, lte, in |
| `integrationAdroll` | `string` | equals, contains, startsWith, endsWith, in |
| `integrationFB` | `string` | equals, contains, startsWith, endsWith, in |
| `integrationGA` | `string` | equals, contains, startsWith, endsWith, in |
| `integrationGTM` | `string` | equals, contains, startsWith, endsWith, in |
| `FolderId` | `string` | equals, contains, startsWith, endsWith, in |
| `DomainId` | `number` | equals, gt, gte, lt, lte, in |
| `OwnerId` | `number` | equals, gt, gte, lt, lte, in |
| `hasPassword` | `boolean` | equals |

*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.