Indexes

This section describes the API calls used to create, read, update and delete database indexes. The page builds upon (and assumes you've read) the API Usage Guide. Please ensure you're familiar with the API calling conventions before reading on.

List all indexes for a database

Version
1.0
View
team
Action
list_database_indexes
Request Data
objectdatabase

The database to search for indexes.

stringid

The globally unique identifier of the database.

integerlimit

The maximum number of results to return in this page.

stringcursor

A token used to paginate the search results. Cursors returned in previous responses can be used in subsequent requests.

Response Data
integercount

The number of results returned.

booleanhas_more

Whether there are more results on the next page

stringcursor

A token that can be used to request the next page of results. It's only useful if has_more is true.

array<object>results

A list of results.

stringid

The globally unique identifier of the index.

objectdatabase

The database associated with this index.

stringid

The globally unique identifier of the database.

stringtype

The type of this index. Can be text, datetime, keyword, integer, float or boolean.

stringname

The display name of the index.

stringfield

A path to searchable text within record contents, using dot notation.

Fetch an index

Version
1.0
View
team
Action
fetch_database_index
Request Data
stringid

The globally unique identifier of the index to fetch.

Response Data
stringid

The globally unique identifier of the index.

objectdatabase

The database associated with this index.

stringid

The globally unique identifier of the database.

stringtype

The type of this index. Can be text, datetime, keyword, integer, float or boolean.

stringname

The display name of the index.

stringfield

A path to searchable text within record contents, using dot notation.

Create an index

Version
1.0
View
team
Action
create_database_index
Request Data
objectdatabase

The database to hold this index.

stringid

The globally unique identifier of the database.

stringtype

The type of this index. Can be text, datetime, keyword, integer, float or boolean.

stringname

The display name of the index.

stringfield

A path to searchable text within record contents, using dot notation.

Response Data
stringid

A globally unique identifier of the newly created index.

Delete an index

Version
1.0
View
team
Action
delete_database_index
Request Data
stringid

The globally unique identifier of the index.

Response Data

Always null if successful.

GRAVITAS

© 2021-2025 Noematic.ai