# AutessaDB Tables API

Source: https://docs.autessa.com/docs/reference/tables

> AutessaDB tables: query, search and write rows Generated from the Autessa OpenAPI spec.

# 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](/docs/features/rag.md)
- **Status:** all 18 operations are live.

---

## Aggregate

**POST** `/clients/autessadb/aggregate`

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `resourceId` | query | string | Yes | The table id the key is granted. The body tableId must match it (403 otherwise). |

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `aggregates` | array of AggregateSpecDto |  |  |
| `groupBy` | array of string |  |  |
| `groupsLogicalOperator` | string |  |  |
| `having` | array of HavingConditionDto |  |  |
| `limit` | integer |  |  |
| `orderBy` | array of OrderByDto |  |  |
| `tableId` | string |  | ID id. |
| `whereGroups` | array of WhereGroupDto |  |  |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `groups` | array of AggregateGroupDto |  |  |
| `truncated` | boolean |  |  |

```bash
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**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `resourceId` | query | string | Yes | The table id the key is granted. The body tableId must match it (403 otherwise). |

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `groupsLogicalOperator` | string |  |  |
| `tableId` | string |  | ID id. |
| `whereGroups` | array of WhereGroupDto |  |  |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `deletedCount` | integer |  |  |
| `results` | array of BatchDeleteRowResult |  |  |

```bash
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**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `resourceId` | query | string | Yes | The table id the key is granted. The body tableId must match it (403 otherwise). |

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `deleteOrphanedFiles` | boolean |  |  |
| `groupsLogicalOperator` | string |  |  |
| `tableId` | string |  | ID id. |
| `values` | object |  |  |
| `whereGroups` | array of WhereGroupDto |  |  |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `computationStatus` | string |  |  |
| `results` | array of BatchUpdateRowResult |  |  |
| `updatedCount` | integer |  |  |

```bash
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**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `resourceId` | query | string | Yes | The table id the key is granted. The body tableId must match it (403 otherwise). |

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `atomicity` | ALL_OR_NOTHING \| BEST_EFFORT_PER_CHUNK |  |  |
| `ids` | array of integer |  |  |
| `tableId` | string |  | ID id. |
| `triggerMode` | PER_ROW \| BATCH_CONTEXT \| SUPPRESS |  |  |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `deletedCount` | integer |  |  |
| `results` | array of BulkDeleteRowByIdResult |  |  |

```bash
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**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `resourceId` | query | string | Yes | The table id the key is granted. The body tableId must match it (403 otherwise). |

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `atomicity` | ALL_OR_NOTHING \| BEST_EFFORT_PER_CHUNK |  |  |
| `computeMode` | IMMEDIATE \| DEFERRED \| SKIP |  |  |
| `indexingMode` | IMMEDIATE \| DEFERRED \| SKIP |  |  |
| `rows` | array of object |  |  |
| `tableId` | string |  | ID id. |
| `triggerMode` | PER_ROW \| BATCH_CONTEXT \| SUPPRESS |  |  |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `computationStatus` | string |  |  |
| `insertedCount` | integer |  |  |
| `results` | array of BulkInsertRowResult |  |  |

```bash
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**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `resourceId` | query | string | Yes | The table id the key is granted. The body tableId must match it (403 otherwise). |

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `atomicity` | ALL_OR_NOTHING \| BEST_EFFORT_PER_CHUNK |  |  |
| `computeMode` | IMMEDIATE \| DEFERRED \| SKIP |  |  |
| `deleteOrphanedFiles` | boolean |  |  |
| `indexingMode` | IMMEDIATE \| DEFERRED \| SKIP |  |  |
| `tableId` | string |  | ID id. |
| `triggerMode` | PER_ROW \| BATCH_CONTEXT \| SUPPRESS |  |  |
| `updates` | array of RowUpdate |  |  |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `computationStatus` | string |  |  |
| `results` | array of BulkUpdateRowByIdResult |  |  |
| `updatedCount` | integer |  |  |

```bash
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**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `resourceId` | query | string | Yes | The table id the key is granted. The body tableId must match it (403 otherwise). |

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `files` | array of KnowledgeBaseFile |  |  |
| `tableName` | string |  |  |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `filesInserted` | integer |  |  |
| `tableId` | string |  | ID id. |
| `tableName` | string |  |  |

```bash
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**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `resourceId` | query | string | Yes | The table id the key is granted. The body tableId must match it (403 otherwise). |

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `rowId` | integer |  |  |
| `tableId` | string |  | ID id. |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `deletedId` | integer |  |  |
| `newRow` | object |  |  |
| `oldRow` | object |  |  |

```bash
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}'
```

---

## Generate upload link

**POST** `/clients/autessadb/generate-upload-link`

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `resourceId` | query | string | Yes | The table id the key is granted. The body tableId must match it (403 otherwise). |

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `columnName` | string |  |  |
| `fileType` | DOCX \| 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 |  |  |
| `tableId` | string |  | ID id. |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `expiresInSeconds` | integer |  |  |
| `s3Uri` | string |  |  |
| `uploadUrl` | string |  |  |

```bash
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"}'
```

---

## Generate upload links

**POST** `/clients/autessadb/generate-upload-links`

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `resourceId` | query | string | Yes | The table id the key is granted. The body tableId must match it (403 otherwise). |

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `items` | array of UploadLinkItem |  |  |
| `tableId` | string |  | ID id. |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `results` | array of UploadLinkResult |  |  |

```bash
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**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `resourceId` | query | string | Yes | The table id the key is granted. The body tableId must match it (403 otherwise). |

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `cursor` | string |  |  |
| `includeTotal` | boolean |  |  |
| `page` | integer |  |  |
| `pageSize` | integer |  |  |
| `tableId` | string |  | ID id. |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `currentPage` | integer |  |  |
| `hasMore` | boolean |  |  |
| `nextCursor` | string |  |  |
| `pageSize` | integer |  |  |
| `rows` | array of TableRowDto |  |  |
| `schema` | AutessaDbSchema |  |  |
| `totalPages` | integer |  |  |
| `totalRows` | integer |  |  |

```bash
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**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `resourceId` | query | string | Yes | The table id the key is granted. The body tableId must match it (403 otherwise). |

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `rowId` | integer | Yes |  |
| `tableId` | string | Yes | ID id. |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `row` | TableRowDto |  |  |
| `schema` | AutessaDbSchema |  |  |

```bash
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**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `resourceId` | query | string | Yes | The table id the key is granted. The body tableId must match it (403 otherwise). |

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `rowId` | integer | Yes |  |
| `tableId` | string | Yes | ID id. |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `columnsIndexed` | integer |  |  |
| `indexedColumns` | array of string |  |  |
| `indexingDurationMs` | integer |  |  |
| `recordId` | integer |  |  |
| `vectorsCreated` | integer |  |  |

```bash
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**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `resourceId` | query | string | Yes | The table id the key is granted. The body tableId must match it (403 otherwise). |

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `tableId` | string | Yes | ID id. |
| `values` | object | Yes |  |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `computationStatus` | string |  |  |
| `insertedId` | integer |  |  |
| `newRow` | object |  | Flat column-name -> value map. |
| `oldRow` | object |  | Flat column-name -> value map. |

```bash
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**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `resourceId` | query | string | Yes | The table id the key is granted. The body tableId must match it (403 otherwise). |

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `cursor` | string |  |  |
| `groupsLogicalOperator` | string |  |  |
| `includeTotal` | boolean |  |  |
| `joins` | array of JoinConditionDto |  |  |
| `orderBy` | array of OrderByDto |  |  |
| `page` | integer |  |  |
| `pageSize` | integer |  |  |
| `selectColumns` | array of SelectColumnDto |  |  |
| `tableId` | string |  | ID id. |
| `whereGroups` | array of WhereGroupDto |  |  |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `currentPage` | integer |  |  |
| `hasMore` | boolean |  |  |
| `joinedSchemas` | object |  |  |
| `joinedTables` | array of JoinedTableSchemaDto |  |  |
| `mainSchema` | AutessaDbSchema |  |  |
| `nextCursor` | string |  |  |
| `pageSize` | integer |  |  |
| `rows` | array of JoinedTableRowDto |  |  |
| `totalPages` | integer |  |  |
| `totalRows` | integer |  |  |

```bash
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**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `resourceId` | query | string | Yes | The table id the key is granted. The body tableId must match it (403 otherwise). |

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `cursor` | string |  | Keyset pagination: nextCursor from the previous page (page is then ignored). |
| `groupsLogicalOperator` | string |  | How to combine the groups (default OR). |
| `includeTotal` | boolean |  |  |
| `orderBy` | array of OrderByDto |  |  |
| `page` | integer |  |  |
| `pageSize` | integer |  |  |
| `tableId` | string | Yes | ID id. |
| `whereGroups` | array of WhereGroupDto |  |  |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `currentPage` | integer |  |  |
| `hasMore` | boolean |  |  |
| `nextCursor` | string |  |  |
| `pageSize` | integer |  |  |
| `rows` | array of TableRowDto |  |  |
| `schema` | AutessaDbSchema |  |  |
| `totalPages` | integer |  |  |
| `totalRows` | integer |  |  |

```bash
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**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `resourceId` | query | string | Yes | The table id the key is granted. The body tableId must match it (403 otherwise). |

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `columnName` | string | Yes | The column to search. |
| `conversationId` | string |  |  |
| `effectiveLimit` | integer |  |  |
| `effectivePage` | integer |  |  |
| `effectiveScoreThreshold` | number |  |  |
| `includeDetails` | boolean |  |  |
| `limit` | integer |  |  |
| `page` | integer |  |  |
| `query` | string | Yes |  |
| `scoreThreshold` | number |  |  |
| `tableId` | string | Yes | ID id. |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `currentPage` | integer |  |  |
| `metadata` | SearchMetadata |  |  |
| `results` | array of SearchResult |  |  |
| `schema` | AutessaDbSchema |  |  |
| `totalPages` | integer |  |  |
| `totalResults` | integer |  |  |

```bash
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**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `resourceId` | query | string | Yes | The table id the key is granted. The body tableId must match it (403 otherwise). |

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `deleteOrphanedFiles` | boolean |  |  |
| `rowId` | integer | Yes |  |
| `suppressTriggers` | boolean |  |  |
| `tableId` | string | Yes | ID id. |
| `values` | object | Yes |  |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `computationStatus` | string |  |  |
| `newRow` | object |  | Flat column-name -> value map. |
| `oldRow` | object |  | Flat column-name -> value map. |
| `updatedId` | integer |  |  |

```bash
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":{}}'
```

---

## Related

- [API reference overview](/docs/reference.md)
- [Errors and retries](/docs/reference.md#errors)
- [AutessaDB Tables guide](/docs/features/rag.md)

