Skip to main content

AutessaDB Tables API

AutessaDB tables: query, search and write rows

  • Base URL: https://api.autessa.com
  • Auth: your API key in the Authorization header, with no Bearer prefix.
  • Guide: AutessaDB Tables
  • Status: all 18 operations are live.

Aggregate​

POST/clients/autessadb/aggregate

Parameters

NameInTypeRequiredDescription
resourceIdquerystringYesThe table id the key is granted. The body tableId must match it (403 otherwise).

Request body

FieldTypeRequiredDescription
aggregatesarray of AggregateSpecDto
groupByarray of string
groupsLogicalOperatorstring
havingarray of HavingConditionDto
limitinteger
orderByarray of OrderByDto
tableIdstringID id.
whereGroupsarray of WhereGroupDto

Response

FieldTypeRequiredDescription
groupsarray of AggregateGroupDto
truncatedboolean
curl -X POST "https://api.autessa.com/clients/autessadb/aggregate?resourceId=V1StGXR8Z5" \
-H "Authorization: $AUTESSA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"aggregates":[{"alias":"string"}]}'

Batch delete​

POST/clients/autessadb/batch-delete

Parameters

NameInTypeRequiredDescription
resourceIdquerystringYesThe table id the key is granted. The body tableId must match it (403 otherwise).

Request body

FieldTypeRequiredDescription
groupsLogicalOperatorstring
tableIdstringID id.
whereGroupsarray of WhereGroupDto

Response

FieldTypeRequiredDescription
deletedCountinteger
resultsarray of BatchDeleteRowResult
curl -X POST "https://api.autessa.com/clients/autessadb/batch-delete?resourceId=V1StGXR8Z5" \
-H "Authorization: $AUTESSA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"groupsLogicalOperator":"string"}'

Batch update​

POST/clients/autessadb/batch-update

Parameters

NameInTypeRequiredDescription
resourceIdquerystringYesThe table id the key is granted. The body tableId must match it (403 otherwise).

Request body

FieldTypeRequiredDescription
deleteOrphanedFilesboolean
groupsLogicalOperatorstring
tableIdstringID id.
valuesobject
whereGroupsarray of WhereGroupDto

Response

FieldTypeRequiredDescription
computationStatusstring
resultsarray of BatchUpdateRowResult
updatedCountinteger
curl -X POST "https://api.autessa.com/clients/autessadb/batch-update?resourceId=V1StGXR8Z5" \
-H "Authorization: $AUTESSA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"deleteOrphanedFiles":true}'

Bulk delete by ids​

POST/clients/autessadb/bulk-delete-by-ids

Parameters

NameInTypeRequiredDescription
resourceIdquerystringYesThe table id the key is granted. The body tableId must match it (403 otherwise).

Request body

FieldTypeRequiredDescription
atomicityALL_OR_NOTHING | BEST_EFFORT_PER_CHUNK
idsarray of integer
tableIdstringID id.
triggerModePER_ROW | BATCH_CONTEXT | SUPPRESS

Response

FieldTypeRequiredDescription
deletedCountinteger
resultsarray of BulkDeleteRowByIdResult
curl -X POST "https://api.autessa.com/clients/autessadb/bulk-delete-by-ids?resourceId=V1StGXR8Z5" \
-H "Authorization: $AUTESSA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"atomicity":"ALL_OR_NOTHING"}'

Bulk insert​

POST/clients/autessadb/bulk-insert

Parameters

NameInTypeRequiredDescription
resourceIdquerystringYesThe table id the key is granted. The body tableId must match it (403 otherwise).

Request body

FieldTypeRequiredDescription
atomicityALL_OR_NOTHING | BEST_EFFORT_PER_CHUNK
computeModeIMMEDIATE | DEFERRED | SKIP
indexingModeIMMEDIATE | DEFERRED | SKIP
rowsarray of object
tableIdstringID id.
triggerModePER_ROW | BATCH_CONTEXT | SUPPRESS

Response

FieldTypeRequiredDescription
computationStatusstring
insertedCountinteger
resultsarray of BulkInsertRowResult
curl -X POST "https://api.autessa.com/clients/autessadb/bulk-insert?resourceId=V1StGXR8Z5" \
-H "Authorization: $AUTESSA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"atomicity":"ALL_OR_NOTHING"}'

Bulk update by ids​

POST/clients/autessadb/bulk-update-by-ids

Parameters

NameInTypeRequiredDescription
resourceIdquerystringYesThe table id the key is granted. The body tableId must match it (403 otherwise).

Request body

FieldTypeRequiredDescription
atomicityALL_OR_NOTHING | BEST_EFFORT_PER_CHUNK
computeModeIMMEDIATE | DEFERRED | SKIP
deleteOrphanedFilesboolean
indexingModeIMMEDIATE | DEFERRED | SKIP
tableIdstringID id.
triggerModePER_ROW | BATCH_CONTEXT | SUPPRESS
updatesarray of RowUpdate

Response

FieldTypeRequiredDescription
computationStatusstring
resultsarray of BulkUpdateRowByIdResult
updatedCountinteger
curl -X POST "https://api.autessa.com/clients/autessadb/bulk-update-by-ids?resourceId=V1StGXR8Z5" \
-H "Authorization: $AUTESSA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"atomicity":"ALL_OR_NOTHING"}'

Create knowledge base​

POST/clients/autessadb/create-knowledge-base

Parameters

NameInTypeRequiredDescription
resourceIdquerystringYesThe table id the key is granted. The body tableId must match it (403 otherwise).

Request body

FieldTypeRequiredDescription
filesarray of KnowledgeBaseFile
tableNamestring

Response

FieldTypeRequiredDescription
filesInsertedinteger
tableIdstringID id.
tableNamestring
curl -X POST "https://api.autessa.com/clients/autessadb/create-knowledge-base?resourceId=V1StGXR8Z5" \
-H "Authorization: $AUTESSA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"files":[{"fullPath":"string"}]}'

Delete row​

POST/clients/autessadb/delete-row

Parameters

NameInTypeRequiredDescription
resourceIdquerystringYesThe table id the key is granted. The body tableId must match it (403 otherwise).

Request body

FieldTypeRequiredDescription
rowIdinteger
tableIdstringID id.

Response

FieldTypeRequiredDescription
deletedIdinteger
newRowobject
oldRowobject
curl -X POST "https://api.autessa.com/clients/autessadb/delete-row?resourceId=V1StGXR8Z5" \
-H "Authorization: $AUTESSA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"rowId":1}'

POST/clients/autessadb/generate-upload-link

Parameters

NameInTypeRequiredDescription
resourceIdquerystringYesThe table id the key is granted. The body tableId must match it (403 otherwise).

Request body

FieldTypeRequiredDescription
columnNamestring
fileTypeDOCX | DOC | PDF | PPTX | XLSX | XLS | PAGES | TXT | JSON | YAML | YML | XML | HTML | HTM | CSV | EML | MSG | ICS | MD | MARKDOWN | PNG | JPG | JPEG | GIF | WEBP | AVIF | BMP | ICO | TIFF | TIF | HEIC | HEIF | MP4 | AVI | MOV | WMV | FLV | MKV | WEBM | MPEG | MPG | MP3 | M4A | WAV
tableIdstringID id.

Response

FieldTypeRequiredDescription
expiresInSecondsinteger
s3Uristring
uploadUrlstring
curl -X POST "https://api.autessa.com/clients/autessadb/generate-upload-link?resourceId=V1StGXR8Z5" \
-H "Authorization: $AUTESSA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"columnName":"subject"}'

POST/clients/autessadb/generate-upload-links

Parameters

NameInTypeRequiredDescription
resourceIdquerystringYesThe table id the key is granted. The body tableId must match it (403 otherwise).

Request body

FieldTypeRequiredDescription
itemsarray of UploadLinkItem
tableIdstringID id.

Response

FieldTypeRequiredDescription
resultsarray of UploadLinkResult
curl -X POST "https://api.autessa.com/clients/autessadb/generate-upload-links?resourceId=V1StGXR8Z5" \
-H "Authorization: $AUTESSA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"items":[{"columnName":"subject"}]}'

Get data​

POST/clients/autessadb/get-data

Parameters

NameInTypeRequiredDescription
resourceIdquerystringYesThe table id the key is granted. The body tableId must match it (403 otherwise).

Request body

FieldTypeRequiredDescription
cursorstring
includeTotalboolean
pageinteger
pageSizeinteger
tableIdstringID id.

Response

FieldTypeRequiredDescription
currentPageinteger
hasMoreboolean
nextCursorstring
pageSizeinteger
rowsarray of TableRowDto
schemaAutessaDbSchema
totalPagesinteger
totalRowsinteger
curl -X POST "https://api.autessa.com/clients/autessadb/get-data?resourceId=V1StGXR8Z5" \
-H "Authorization: $AUTESSA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"cursor":"string"}'

Get one row​

POST/clients/autessadb/get-single-row

Needs ?resourceId=<table id>; the body tableId must match it (403 otherwise). A key without the table's READ/WRITE permission gets 400 with errors.

Parameters

NameInTypeRequiredDescription
resourceIdquerystringYesThe table id the key is granted. The body tableId must match it (403 otherwise).

Request body

FieldTypeRequiredDescription
rowIdintegerYes
tableIdstringYesID id.

Response

FieldTypeRequiredDescription
rowTableRowDto
schemaAutessaDbSchema
curl -X POST "https://api.autessa.com/clients/autessadb/get-single-row?resourceId=V1StGXR8Z5" \
-H "Authorization: $AUTESSA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"tableId":"V1StGXR8Z5","rowId":1}'

Index (vectorize) one row now​

POST/clients/autessadb/index-record

Needs ?resourceId=<table id>; the body tableId must match it (403 otherwise). A key without the table's READ/WRITE permission gets 400 with errors.

Parameters

NameInTypeRequiredDescription
resourceIdquerystringYesThe table id the key is granted. The body tableId must match it (403 otherwise).

Request body

FieldTypeRequiredDescription
rowIdintegerYes
tableIdstringYesID id.

Response

FieldTypeRequiredDescription
columnsIndexedinteger
indexedColumnsarray of string
indexingDurationMsinteger
recordIdinteger
vectorsCreatedinteger
curl -X POST "https://api.autessa.com/clients/autessadb/index-record?resourceId=V1StGXR8Z5" \
-H "Authorization: $AUTESSA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"tableId":"V1StGXR8Z5","rowId":1}'

Insert a row​

POST/clients/autessadb/insert

Needs ?resourceId=<table id>; the body tableId must match it (403 otherwise). A key without the table's READ/WRITE permission gets 400 with errors.

Parameters

NameInTypeRequiredDescription
resourceIdquerystringYesThe table id the key is granted. The body tableId must match it (403 otherwise).

Request body

FieldTypeRequiredDescription
tableIdstringYesID id.
valuesobjectYes

Response

FieldTypeRequiredDescription
computationStatusstring
insertedIdinteger
newRowobjectFlat column-name -> value map.
oldRowobjectFlat column-name -> value map.
curl -X POST "https://api.autessa.com/clients/autessadb/insert?resourceId=V1StGXR8Z5" \
-H "Authorization: $AUTESSA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"tableId":"V1StGXR8Z5","values":{}}'

Join query​

POST/clients/autessadb/join-query

Parameters

NameInTypeRequiredDescription
resourceIdquerystringYesThe table id the key is granted. The body tableId must match it (403 otherwise).

Request body

FieldTypeRequiredDescription
cursorstring
groupsLogicalOperatorstring
includeTotalboolean
joinsarray of JoinConditionDto
orderByarray of OrderByDto
pageinteger
pageSizeinteger
selectColumnsarray of SelectColumnDto
tableIdstringID id.
whereGroupsarray of WhereGroupDto

Response

FieldTypeRequiredDescription
currentPageinteger
hasMoreboolean
joinedSchemasobject
joinedTablesarray of JoinedTableSchemaDto
mainSchemaAutessaDbSchema
nextCursorstring
pageSizeinteger
rowsarray of JoinedTableRowDto
totalPagesinteger
totalRowsinteger
curl -X POST "https://api.autessa.com/clients/autessadb/join-query?resourceId=V1StGXR8Z5" \
-H "Authorization: $AUTESSA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"cursor":"string"}'

Filter, sort and page rows​

POST/clients/autessadb/query

Needs ?resourceId=<table id>; the body tableId must match it (403 otherwise). A key without the table's READ/WRITE permission gets 400 with errors.

Parameters

NameInTypeRequiredDescription
resourceIdquerystringYesThe table id the key is granted. The body tableId must match it (403 otherwise).

Request body

FieldTypeRequiredDescription
cursorstringKeyset pagination: nextCursor from the previous page (page is then ignored).
groupsLogicalOperatorstringHow to combine the groups (default OR).
includeTotalboolean
orderByarray of OrderByDto
pageinteger
pageSizeinteger
tableIdstringYesID id.
whereGroupsarray of WhereGroupDto

Response

FieldTypeRequiredDescription
currentPageinteger
hasMoreboolean
nextCursorstring
pageSizeinteger
rowsarray of TableRowDto
schemaAutessaDbSchema
totalPagesinteger
totalRowsinteger
curl -X POST "https://api.autessa.com/clients/autessadb/query?resourceId=V1StGXR8Z5" \
-H "Authorization: $AUTESSA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"tableId":"V1StGXR8Z5"}'

Semantic search on a column​

POST/clients/autessadb/search

Needs ?resourceId=<table id>; the body tableId must match it (403 otherwise). A key without the table's READ/WRITE permission gets 400 with errors.

Parameters

NameInTypeRequiredDescription
resourceIdquerystringYesThe table id the key is granted. The body tableId must match it (403 otherwise).

Request body

FieldTypeRequiredDescription
columnNamestringYesThe column to search.
conversationIdstring
effectiveLimitinteger
effectivePageinteger
effectiveScoreThresholdnumber
includeDetailsboolean
limitinteger
pageinteger
querystringYes
scoreThresholdnumber
tableIdstringYesID id.

Response

FieldTypeRequiredDescription
currentPageinteger
metadataSearchMetadata
resultsarray of SearchResult
schemaAutessaDbSchema
totalPagesinteger
totalResultsinteger
curl -X POST "https://api.autessa.com/clients/autessadb/search?resourceId=V1StGXR8Z5" \
-H "Authorization: $AUTESSA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"tableId":"V1StGXR8Z5","query":"refund policy for annual plans","columnName":"subject"}'

Update a row​

POST/clients/autessadb/update

Needs ?resourceId=<table id>; the body tableId must match it (403 otherwise). A key without the table's READ/WRITE permission gets 400 with errors.

Parameters

NameInTypeRequiredDescription
resourceIdquerystringYesThe table id the key is granted. The body tableId must match it (403 otherwise).

Request body

FieldTypeRequiredDescription
deleteOrphanedFilesboolean
rowIdintegerYes
suppressTriggersboolean
tableIdstringYesID id.
valuesobjectYes

Response

FieldTypeRequiredDescription
computationStatusstring
newRowobjectFlat column-name -> value map.
oldRowobjectFlat column-name -> value map.
updatedIdinteger
curl -X POST "https://api.autessa.com/clients/autessadb/update?resourceId=V1StGXR8Z5" \
-H "Authorization: $AUTESSA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"tableId":"V1StGXR8Z5","rowId":1,"values":{}}'