Skip to main content

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.

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

Assistants

Path: vapi.db.assistants.search
const rows = await corsair.vapi.db.assistants.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});

Searchable filters

FieldTypeOperators
entity_idstringequals, contains, startsWith, endsWith, in
idstringequals, contains, startsWith, endsWith, in
orgIdstringequals, contains, startsWith, endsWith, in
namestringequals, contains, startsWith, endsWith, in
firstMessagestringequals, contains, startsWith, endsWith, in
serverUrlstringequals, contains, startsWith, endsWith, in
hipaaEnabledbooleanequals
createdAtdateequals, before, after, between
updatedAtdateequals, before, after, between
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.

Calls

Path: vapi.db.calls.search
const rows = await corsair.vapi.db.calls.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});

Searchable filters

FieldTypeOperators
entity_idstringequals, contains, startsWith, endsWith, in
idstringequals, contains, startsWith, endsWith, in
orgIdstringequals, contains, startsWith, endsWith, in
typestringequals, contains, startsWith, endsWith, in
statusstringequals, contains, startsWith, endsWith, in
endedReasonstringequals, contains, startsWith, endsWith, in
assistantIdstringequals, contains, startsWith, endsWith, in
phoneNumberIdstringequals, contains, startsWith, endsWith, in
squadIdstringequals, contains, startsWith, endsWith, in
costnumberequals, gt, gte, lt, lte, in
startedAtdateequals, before, after, between
endedAtdateequals, before, after, between
createdAtdateequals, before, after, between
updatedAtdateequals, before, after, between
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.

Files

Path: vapi.db.files.search
const rows = await corsair.vapi.db.files.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});

Searchable filters

FieldTypeOperators
entity_idstringequals, contains, startsWith, endsWith, in
idstringequals, contains, startsWith, endsWith, in
orgIdstringequals, contains, startsWith, endsWith, in
namestringequals, contains, startsWith, endsWith, in
originalNamestringequals, contains, startsWith, endsWith, in
mimeTypestringequals, contains, startsWith, endsWith, in
sizenumberequals, gt, gte, lt, lte, in
statusstringequals, contains, startsWith, endsWith, in
urlstringequals, contains, startsWith, endsWith, in
createdAtdateequals, before, after, between
updatedAtdateequals, before, after, between
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.

Knowledge Bases

Path: vapi.db.knowledgeBases.search
const rows = await corsair.vapi.db.knowledgeBases.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});

Searchable filters

FieldTypeOperators
entity_idstringequals, contains, startsWith, endsWith, in
idstringequals, contains, startsWith, endsWith, in
orgIdstringequals, contains, startsWith, endsWith, in
namestringequals, contains, startsWith, endsWith, in
createdAtdateequals, before, after, between
updatedAtdateequals, before, after, between
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.

Phone Numbers

Path: vapi.db.phoneNumbers.search
const rows = await corsair.vapi.db.phoneNumbers.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});

Searchable filters

FieldTypeOperators
entity_idstringequals, contains, startsWith, endsWith, in
idstringequals, contains, startsWith, endsWith, in
orgIdstringequals, contains, startsWith, endsWith, in
providerstringequals, contains, startsWith, endsWith, in
numberstringequals, contains, startsWith, endsWith, in
namestringequals, contains, startsWith, endsWith, in
assistantIdstringequals, contains, startsWith, endsWith, in
squadIdstringequals, contains, startsWith, endsWith, in
createdAtdateequals, before, after, between
updatedAtdateequals, before, after, between
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.

Squads

Path: vapi.db.squads.search
const rows = await corsair.vapi.db.squads.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});

Searchable filters

FieldTypeOperators
entity_idstringequals, contains, startsWith, endsWith, in
idstringequals, contains, startsWith, endsWith, in
orgIdstringequals, contains, startsWith, endsWith, in
namestringequals, contains, startsWith, endsWith, in
createdAtdateequals, before, after, between
updatedAtdateequals, before, after, between
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.

Tools

Path: vapi.db.tools.search
const rows = await corsair.vapi.db.tools.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});

Searchable filters

FieldTypeOperators
entity_idstringequals, contains, startsWith, endsWith, in
idstringequals, contains, startsWith, endsWith, in
orgIdstringequals, contains, startsWith, endsWith, in
typestringequals, contains, startsWith, endsWith, in
createdAtdateequals, before, after, between
updatedAtdateequals, before, after, between
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.