corsair.cursor.db.<entity>.search({ data, limit?, offset? }) with the filters listed per entity.
New to Corsair? See database operations, data synchronization, and multi-tenancy.
Agents
Path:cursor.db.agents.search
Searchable filters
| Field | Type | Operators |
|---|---|---|
entity_id | string | equals, contains, startsWith, endsWith, in |
id | string | equals, contains, startsWith, endsWith, in |
name | string | equals, contains, startsWith, endsWith, in |
summary | string | equals, contains, startsWith, endsWith, in |
createdAt | date | equals, before, after, between |
sourceRef | string | equals, contains, startsWith, endsWith, in |
sourceRepository | string | equals, contains, startsWith, endsWith, in |
targetUrl | string | equals, contains, startsWith, endsWith, in |
targetPrUrl | string | equals, contains, startsWith, endsWith, in |
targetBranchName | string | equals, contains, startsWith, endsWith, in |
targetAutoCreatePr | boolean | equals |
.search() also accepts limit and offset for pagination. .list() is available on the same path without the .search suffix in code — see database operations.
Api Keys
Path:cursor.db.apiKeys.search
Searchable filters
| Field | Type | Operators |
|---|---|---|
entity_id | string | equals, contains, startsWith, endsWith, in |
id | string | equals, contains, startsWith, endsWith, in |
apiKeyName | string | equals, contains, startsWith, endsWith, in |
createdAt | date | equals, before, after, between |
userEmail | string | equals, contains, startsWith, endsWith, in |
.search() also accepts limit and offset for pagination. .list() is available on the same path without the .search suffix in code — see database operations.
Models
Path:cursor.db.models.search
Searchable filters
| Field | Type | Operators |
|---|---|---|
entity_id | string | equals, contains, startsWith, endsWith, in |
id | string | equals, contains, startsWith, endsWith, in |
.search() also accepts limit and offset for pagination. .list() is available on the same path without the .search suffix in code — see database operations.
Repositories
Path:cursor.db.repositories.search
Searchable filters
| Field | Type | Operators |
|---|---|---|
entity_id | string | equals, contains, startsWith, endsWith, in |
id | string | equals, contains, startsWith, endsWith, in |
name | string | equals, contains, startsWith, endsWith, in |
owner | string | equals, contains, startsWith, endsWith, in |
repository | string | equals, contains, startsWith, endsWith, in |
.search() also accepts limit and offset for pagination. .list() is available on the same path without the .search suffix in code — see database operations.