# Drive API

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

> AutessaDB Drive: find, grep, read and search files Generated from the Autessa OpenAPI spec.

# Drive API

AutessaDB Drive: find, grep, read and search files

- **Base URL:** `https://api.autessa.com`
- **Auth:** your API key in the `Authorization` header, with no `Bearer` prefix.
- **Guide:** [Drive](/docs/features/rag.md)
- **Status:** all 53 operations are live.

---

## Access

**POST** `/clients/autessadb-drive/access`

**Parameters**

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

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `nodeId` | integer |  | Node id. |
| `path` | string |  |  |
| `tableId` | string | Yes | ID id. |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `driveRole` | string |  |  |
| `effectiveRole` | string |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/access?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tableId":"V1StGXR8Z5"}'
```

---

## Changes

**POST** `/clients/autessadb-drive/changes`

**Parameters**

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

**Request body**

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

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `changes` | array of ChangeView |  |  |
| `cursor` | string |  |  |
| `hasMore` | boolean |  |  |
| `resyncRequired` | boolean |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/changes?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"cursor":"string"}'
```

---

## Comments add

**POST** `/clients/autessadb-drive/comments/add`

**Parameters**

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

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `anchor` | object |  |  |
| `body` | string |  |  |
| `nodeId` | integer |  |  |
| `page` | integer |  |  |
| `parentId` | string |  |  |
| `path` | string |  |  |
| `quote` | string |  |  |
| `range` | string |  |  |
| `sheet` | string |  |  |
| `tableId` | string |  | ID id. |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `thread` | CommentThreadView |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/comments/add?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"anchor":{}}'
```

---

## Comments delete

**POST** `/clients/autessadb-drive/comments/delete`

**Parameters**

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

**Request body**

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

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `ok` | boolean |  |  |
| `thread` | CommentThreadView |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/comments/delete?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"commentId":"string"}'
```

---

## Comments edit

**POST** `/clients/autessadb-drive/comments/edit`

**Parameters**

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

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `body` | string |  |  |
| `commentId` | string |  |  |
| `tableId` | string |  | ID id. |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `thread` | CommentThreadView |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/comments/edit?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"body":"string"}'
```

---

## Comments list

**POST** `/clients/autessadb-drive/comments/list`

**Parameters**

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

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `cursor` | string |  |  |
| `includeResolved` | boolean |  |  |
| `limit` | integer |  |  |
| `nodeId` | integer |  |  |
| `path` | string |  |  |
| `tableId` | string |  | ID id. |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `canComment` | boolean |  |  |
| `hasMore` | boolean |  |  |
| `nextCursor` | string |  |  |
| `nodeVersion` | integer |  |  |
| `openCount` | integer |  |  |
| `resolvedCount` | integer |  |  |
| `threads` | array of CommentThreadView |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/comments/list?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"cursor":"string"}'
```

---

## Comments resolve

**POST** `/clients/autessadb-drive/comments/resolve`

**Parameters**

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

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `commentId` | string |  |  |
| `resolved` | boolean |  |  |
| `tableId` | string |  | ID id. |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `thread` | CommentThreadView |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/comments/resolve?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"commentId":"string"}'
```

---

## A download link for a file

**POST** `/clients/autessadb-drive/download-url`

Needs ?resourceId=<drive table id>; the body tableId must match it.

**Parameters**

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

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `nodeId` | integer |  | Node id. |
| `path` | string |  |  |
| `tableId` | string | Yes | ID id. |
| `version` | integer |  |  |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `expiresAt` | string |  |  |
| `url` | string |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/download-url?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tableId":"V1StGXR8Z5"}'
```

---

## Edit

**POST** `/clients/autessadb-drive/edit`

**Parameters**

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

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `expectedVersion` | integer |  |  |
| `newText` | string |  |  |
| `nodeId` | integer |  |  |
| `oldText` | string |  |  |
| `path` | string |  |  |
| `replaceAll` | boolean |  |  |
| `tableId` | string |  | ID id. |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `bytes` | integer |  |  |
| `node` | DriveNodeView |  |  |
| `replacements` | integer |  |  |
| `version` | integer |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/edit?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"expectedVersion":1}'
```

---

## Empty trash

**POST** `/clients/autessadb-drive/empty-trash`

**Parameters**

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

**Request body**

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

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `purged` | integer |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/empty-trash?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"cursor":"string"}'
```

---

## Fetch

**POST** `/clients/autessadb-drive/fetch`

**Parameters**

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

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `nodeId` | integer |  | Node id. |
| `path` | string |  |  |
| `tableId` | string | Yes | ID id. |
| `version` | integer |  |  |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `expiresAt` | string |  |  |
| `mime` | string |  |  |
| `name` | string |  |  |
| `nodeId` | string |  |  |
| `path` | string |  |  |
| `sizeBytes` | integer |  |  |
| `url` | string |  |  |
| `version` | integer |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/fetch?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tableId":"V1StGXR8Z5"}'
```

---

## Find files by name, type, size or date

**POST** `/clients/autessadb-drive/find`

Needs ?resourceId=<drive table id>; the body tableId must match it.

**Parameters**

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

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `cursor` | string |  |  |
| `glob` | string |  |  |
| `limit` | integer |  |  |
| `mime` | string |  |  |
| `modifiedAfter` | string |  |  |
| `modifiedBefore` | string |  |  |
| `nameRegex` | string |  |  |
| `path` | string |  |  |
| `sizeGt` | integer |  |  |
| `sizeLt` | integer |  |  |
| `tableId` | string | Yes | ID id. |
| `type` | string |  |  |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `hasMore` | boolean |  |  |
| `items` | array of DriveNodeView |  |  |
| `nextCursor` | string |  |  |
| `truncated` | any |  | Present when the result was cut short (boolean or a reason object). |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/find?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tableId":"V1StGXR8Z5"}'
```

---

## Fs replace

**POST** `/clients/autessadb-drive/fs/replace`

**Parameters**

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

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `expectedTargetVersion` | integer |  |  |
| `sourceNodeId` | integer |  |  |
| `tableId` | string |  | ID id. |
| `targetNodeId` | integer |  |  |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `node` | DriveNodeView |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/fs/replace?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"expectedTargetVersion":1}'
```

---

## Search file text by pattern

**POST** `/clients/autessadb-drive/grep`

Needs ?resourceId=<drive table id>; the body tableId must match it.

**Parameters**

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

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `caseInsensitive` | boolean |  |  |
| `context` | integer |  |  |
| `cursor` | string |  |  |
| `glob` | string |  |  |
| `limit` | integer |  |  |
| `maxMatchesPerFile` | integer |  |  |
| `outputMode` | string |  |  |
| `path` | string |  |  |
| `pattern` | string | Yes |  |
| `regex` | boolean |  |  |
| `tableId` | string | Yes | ID id. |
| `timeoutMs` | integer |  |  |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `count` | GrepCount |  |  |
| `files` | array of GrepFile |  |  |
| `hasMore` | boolean |  |  |
| `matches` | array of GrepMatch |  |  |
| `nextCursor` | string |  |  |
| `stats` | GrepStats |  |  |
| `truncated` | any |  | Present when the result was cut short (boolean or a reason object). |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/grep?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tableId":"V1StGXR8Z5","pattern":"invoice"}'
```

---

## Links create

**POST** `/clients/autessadb-drive/links/create`

**Parameters**

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

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `allowDownload` | boolean |  |  |
| `allowSearch` | boolean |  |  |
| `audience` | string |  |  |
| `expiresAt` | string |  |  |
| `nodeId` | integer |  |  |
| `path` | string |  |  |
| `role` | string |  |  |
| `scope` | string |  |  |
| `tableId` | string |  | ID id. |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `link` | LinkView |  |  |
| `linkId` | string |  |  |
| `token` | string |  |  |
| `url` | string |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/links/create?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"allowDownload":true}'
```

---

## Links list

**POST** `/clients/autessadb-drive/links/list`

**Parameters**

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

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `nodeId` | integer |  | Node id. |
| `path` | string |  |  |
| `tableId` | string | Yes | ID id. |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `links` | array of LinkView |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/links/list?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tableId":"V1StGXR8Z5"}'
```

---

## Links revoke

**POST** `/clients/autessadb-drive/links/revoke`

**Parameters**

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

**Request body**

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

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `count` | integer |  |  |
| `ok` | boolean |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/links/revoke?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"linkId":"string"}'
```

---

## List a folder

**POST** `/clients/autessadb-drive/ls`

Needs ?resourceId=<drive table id>; the body tableId must match it.

**Parameters**

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

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `cursor` | string |  |  |
| `foldersOnly` | boolean |  |  |
| `includeTrashed` | boolean |  |  |
| `limit` | integer |  |  |
| `nodeId` | integer |  | Node id. |
| `path` | string |  |  |
| `sort` | string |  | name\|modified\|size\|type + :asc\|:desc |
| `tableId` | string | Yes | ID id. |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `driveRole` | string |  |  |
| `folder` | DriveNodeView |  |  |
| `hasMore` | boolean |  |  |
| `items` | array of DriveNodeView |  |  |
| `nextCursor` | string |  |  |
| `truncated` | any |  | Present when the result was cut short (boolean or a reason object). |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/ls?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tableId":"V1StGXR8Z5"}'
```

---

## Mkdir

**POST** `/clients/autessadb-drive/mkdir`

**Parameters**

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

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `parents` | boolean |  |  |
| `paths` | array of string |  |  |
| `tableId` | string |  | ID id. |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `created` | array of DriveNodeView |  |  |
| `folders` | array of DriveNodeView |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/mkdir?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"parents":true}'
```

---

## Move

**POST** `/clients/autessadb-drive/move`

**Parameters**

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

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `confirm` | boolean |  |  |
| `destinationPath` | string |  |  |
| `newName` | string |  |  |
| `nodeIds` | array of integer |  |  |
| `paths` | array of string |  |  |
| `tableId` | string |  | ID id. |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `accessChanges` | AccessChanges |  |  |
| `moved` | array of DriveNodeView |  |  |
| `requiresConfirmation` | boolean |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/move?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"confirm":true}'
```

---

## Pull

**POST** `/clients/autessadb-drive/pull`

**Parameters**

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

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `cursor` | string |  |  |
| `limit` | integer |  |  |
| `path` | string |  |  |
| `tableId` | string |  | ID id. |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `hasMore` | boolean |  |  |
| `items` | array of PullItem |  |  |
| `nextCursor` | string |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/pull?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"cursor":"string"}'
```

---

## Purge

**POST** `/clients/autessadb-drive/purge`

**Parameters**

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

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `nodeIds` | array of integer |  |  |
| `tableId` | string |  | ID id. |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `purged` | integer |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/purge?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"nodeIds":[1]}'
```

---

## Push

**POST** `/clients/autessadb-drive/push`

**Parameters**

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

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `basePath` | string |  |  |
| `conflict` | string |  |  |
| `files` | array of PushFile |  |  |
| `tableId` | string |  | ID id. |

**Response**

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

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/push?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"basePath":"string"}'
```

---

## Read a file's text

**POST** `/clients/autessadb-drive/read`

Needs ?resourceId=<drive table id>; the body tableId must match it.

**Parameters**

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

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `lines` | string |  | For example "100-250". |
| `maxChars` | integer |  |  |
| `nodeId` | integer |  | Node id. |
| `pages` | string |  | For example "3-5". |
| `path` | string |  |  |
| `tableId` | string | Yes | ID id. |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `next` | string |  |  |
| `nodeId` | string |  |  |
| `pageRange` | string |  |  |
| `path` | string |  |  |
| `text` | string |  |  |
| `totalLines` | integer |  |  |
| `totalPages` | integer |  |  |
| `truncated` | any |  | Present when the result was cut short (boolean or a reason object). |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/read?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tableId":"V1StGXR8Z5"}'
```

---

## Rename

**POST** `/clients/autessadb-drive/rename`

**Parameters**

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

**Request body**

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

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `node` | DriveNodeView |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/rename?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"newName":"string"}'
```

---

## Restore

**POST** `/clients/autessadb-drive/restore`

**Parameters**

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

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `nodeIds` | array of integer |  |  |
| `tableId` | string |  | ID id. |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `restored` | array of DriveNodeView |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/restore?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"nodeIds":[1]}'
```

---

## Ranked search over file text

**POST** `/clients/autessadb-drive/search`

Needs ?resourceId=<drive table id>; the body tableId must match it.

**Parameters**

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

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `glob` | string |  |  |
| `mode` | string |  |  |
| `path` | string |  |  |
| `query` | string | Yes |  |
| `tableId` | string | Yes | ID id. |
| `topK` | integer |  |  |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `results` | array of SearchHit |  |  |
| `stats` | object |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/search?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tableId":"V1StGXR8Z5","query":"refund policy for annual plans"}'
```

---

## Settings get

**POST** `/clients/autessadb-drive/settings/get`

**Parameters**

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

**Request body**

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

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `driveAdmins` | array of PersonRef |  |  |
| `editorsCanShare` | boolean |  |  |
| `linksEnabled` | boolean |  |  |
| `maxVersionsRetained` | integer |  |  |
| `ocrLanguage` | string |  |  |
| `publicLinksEnabled` | boolean |  |  |
| `semanticSearch` | boolean |  |  |
| `trashRetentionDays` | integer |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/settings/get?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"cursor":"string"}'
```

---

## Settings update

**POST** `/clients/autessadb-drive/settings/update`

**Parameters**

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

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `driveAdminUserIds` | array of string |  |  |
| `editorsCanShare` | boolean |  |  |
| `linksEnabled` | boolean |  |  |
| `ocrLanguage` | string |  |  |
| `publicLinksEnabled` | boolean |  |  |
| `semanticSearch` | boolean |  |  |
| `tableId` | string |  | ID id. |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `driveAdmins` | array of PersonRef |  |  |
| `editorsCanShare` | boolean |  |  |
| `linksEnabled` | boolean |  |  |
| `maxVersionsRetained` | integer |  |  |
| `ocrLanguage` | string |  |  |
| `publicLinksEnabled` | boolean |  |  |
| `semanticSearch` | boolean |  |  |
| `trashRetentionDays` | integer |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/settings/update?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"driveAdminUserIds":["string"]}'
```

---

## Shared with company

**POST** `/clients/autessadb-drive/shared-with-company`

**Parameters**

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

**Request body**

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

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `hasMore` | boolean |  |  |
| `items` | array of SharedItem |  |  |
| `nextCursor` | string |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/shared-with-company?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"cursor":"string"}'
```

---

## Shared with me

**POST** `/clients/autessadb-drive/shared-with-me`

**Parameters**

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

**Request body**

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

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `hasMore` | boolean |  |  |
| `items` | array of SharedItem |  |  |
| `nextCursor` | string |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/shared-with-me?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"cursor":"string"}'
```

---

## Shares list

**POST** `/clients/autessadb-drive/shares/list`

**Parameters**

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

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `nodeId` | integer |  | Node id. |
| `path` | string |  |  |
| `tableId` | string | Yes | ID id. |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `grants` | array of GrantView |  |  |
| `links` | array of LinkView |  |  |
| `managers` | array of PersonRef |  |  |
| `members` | array of GrantView |  |  |
| `owner` | PersonRef |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/shares/list?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tableId":"V1StGXR8Z5"}'
```

---

## Shares remove

**POST** `/clients/autessadb-drive/shares/remove`

**Parameters**

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

**Request body**

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

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `count` | integer |  |  |
| `ok` | boolean |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/shares/remove?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"grantId":"string"}'
```

---

## Shares upsert

**POST** `/clients/autessadb-drive/shares/upsert`

**Parameters**

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

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `expiresAt` | string |  |  |
| `nodeId` | integer |  |  |
| `path` | string |  |  |
| `principals` | array of PrincipalInput |  |  |
| `role` | string |  |  |
| `scope` | string |  |  |
| `tableId` | string |  | ID id. |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `grants` | array of GrantView |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/shares/upsert?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"expiresAt":"string"}'
```

---

## One node's details

**POST** `/clients/autessadb-drive/stat`

Needs ?resourceId=<drive table id>; the body tableId must match it.

**Parameters**

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

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `nodeId` | integer |  | Node id. |
| `path` | string |  |  |
| `tableId` | string | Yes | ID id. |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `childCount` | integer |  |  |
| `commentCount` | integer |  |  |
| `contentUpdatedAt` | string |  |  |
| `createdAt` | string |  |  |
| `customColumns` | object |  |  |
| `depth` | integer |  |  |
| `effectiveRole` | string |  |  |
| `extraction` | ExtractionView |  |  |
| `extractionStatus` | string |  |  |
| `mimeType` | string |  |  |
| `name` | string |  |  |
| `nodeId` | string |  |  |
| `nodeType` | string |  |  |
| `openCommentCount` | integer |  |  |
| `ownerName` | string |  |  |
| `ownerUserId` | string |  | ID id. |
| `parentId` | string |  |  |
| `path` | string |  |  |
| `sha256` | string |  |  |
| `shared` | boolean |  |  |
| `sizeBytes` | integer |  |  |
| `trashedAt` | string |  |  |
| `updatedAt` | string |  |  |
| `version` | integer |  |  |
| `versionsCount` | integer |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/stat?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tableId":"V1StGXR8Z5"}'
```

---

## Status

**POST** `/clients/autessadb-drive/status`

**Parameters**

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

**Request body**

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

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `extraction` | object |  |  |
| `files` | integer |  |  |
| `folders` | integer |  |  |
| `index` | object |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/status?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"cursor":"string"}'
```

---

## Transfer owner

**POST** `/clients/autessadb-drive/transfer-owner`

**Parameters**

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

**Request body**

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

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `node` | DriveNodeView |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/transfer-owner?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"newOwnerUserId":"string"}'
```

---

## Trash

**POST** `/clients/autessadb-drive/trash`

**Parameters**

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

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `nodeIds` | array of integer |  |  |
| `paths` | array of string |  |  |
| `permanent` | boolean |  |  |
| `tableId` | string |  | ID id. |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `items` | array of DriveNodeView |  |  |
| `purged` | integer |  |  |
| `trashed` | integer |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/trash?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"nodeIds":[1]}'
```

---

## Trash list

**POST** `/clients/autessadb-drive/trash/list`

**Parameters**

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

**Request body**

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

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `hasMore` | boolean |  |  |
| `items` | array of TrashItem |  |  |
| `nextCursor` | string |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/trash/list?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"cursor":"string"}'
```

---

## Tree

**POST** `/clients/autessadb-drive/tree`

**Parameters**

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

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `maxDepth` | integer |  |  |
| `maxEntries` | integer |  |  |
| `path` | string |  |  |
| `tableId` | string |  | ID id. |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `entries` | array of DriveNodeView |  |  |
| `items` | array of DriveNodeView |  |  |
| `root` | DriveNodeView |  |  |
| `truncated` | any |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/tree?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"maxDepth":1}'
```

---

## Upload

**POST** `/clients/autessadb-drive/upload`

**Parameters**

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

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `conflict` | string |  |  |
| `path` | string |  |  |
| `tableId` | string |  | ID id. |
| `uploadId` | string |  |  |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `error` | ErrorBody |  |  |
| `node` | DriveNodeView |  |  |
| `uploadId` | string |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/upload?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"conflict":"string"}'
```

---

## Uploads abort

**POST** `/clients/autessadb-drive/uploads/abort`

**Parameters**

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

**Request body**

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

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `count` | integer |  |  |
| `ok` | boolean |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/uploads/abort?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tableId":"V1StGXR8Z5"}'
```

---

## Uploads commit

**POST** `/clients/autessadb-drive/uploads/commit`

**Parameters**

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

**Request body**

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

**Response**

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

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/uploads/commit?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tableId":"V1StGXR8Z5"}'
```

---

## Uploads complete

**POST** `/clients/autessadb-drive/uploads/complete`

**Parameters**

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

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `parts` | array of UploadedPart |  |  |
| `tableId` | string |  | ID id. |
| `uploadId` | string |  |  |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `checksumSha256` | string |  |  |
| `count` | integer |  |  |
| `ok` | boolean |  |  |
| `state` | string |  |  |
| `uploadId` | string |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/uploads/complete?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"parts":[{"checksumSha256":"string"}]}'
```

---

## Uploads complete multipart

**POST** `/clients/autessadb-drive/uploads/complete-multipart`

**Parameters**

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

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `parts` | array of UploadedPart |  |  |
| `tableId` | string |  | ID id. |
| `uploadId` | string |  |  |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `checksumSha256` | string |  |  |
| `count` | integer |  |  |
| `ok` | boolean |  |  |
| `state` | string |  |  |
| `uploadId` | string |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/uploads/complete-multipart?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"parts":[{"checksumSha256":"string"}]}'
```

---

## Uploads create

**POST** `/clients/autessadb-drive/uploads/create`

**Parameters**

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

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `basePath` | string |  |  |
| `conflict` | string |  |  |
| `files` | array of UploadFile |  |  |
| `tableId` | string |  | ID id. |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `uploads` | array of UploadTicket |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/uploads/create?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"basePath":"string"}'
```

---

## Uploads part urls

**POST** `/clients/autessadb-drive/uploads/part-urls`

**Parameters**

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

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `partNumbers` | array of integer |  |  |
| `parts` | array of PartChecksum |  |  |
| `tableId` | string |  | ID id. |
| `uploadId` | string |  |  |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `expiresAt` | string |  |  |
| `parts` | array of PartUrl |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/uploads/part-urls?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"partNumbers":[1]}'
```

---

## Uploads progress

**POST** `/clients/autessadb-drive/uploads/progress`

**Parameters**

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

**Request body**

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

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `uploads` | array of UploadProgressView |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/uploads/progress?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tableId":"V1StGXR8Z5"}'
```

---

## Uploads resume

**POST** `/clients/autessadb-drive/uploads/resume`

**Parameters**

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

**Request body**

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

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `bytesCompleted` | integer |  |  |
| `checksumAlgorithm` | string |  |  |
| `completedParts` | array of CompletedPartView |  |  |
| `expiresAt` | string |  |  |
| `headers` | object |  |  |
| `nextPartNumber` | integer |  |  |
| `partSize` | integer |  |  |
| `partsTotal` | integer |  |  |
| `relativePath` | string |  |  |
| `size` | integer |  |  |
| `state` | string |  |  |
| `uploadId` | string |  |  |
| `url` | string |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/uploads/resume?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tableId":"V1StGXR8Z5"}'
```

---

## Usage

**POST** `/clients/autessadb-drive/usage`

**Parameters**

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

**Request body**

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

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `bytesQuota` | integer |  |  |
| `bytesReserved` | integer |  |  |
| `bytesUsed` | integer |  |  |
| `filesCount` | integer |  |  |
| `pagesQuota` | integer |  |  |
| `pagesThisMonth` | integer |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/usage?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"cursor":"string"}'
```

---

## Versions list

**POST** `/clients/autessadb-drive/versions/list`

**Parameters**

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

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `nodeId` | integer |  | Node id. |
| `path` | string |  |  |
| `tableId` | string | Yes | ID id. |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `versions` | array of VersionView |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/versions/list?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tableId":"V1StGXR8Z5"}'
```

---

## Versions restore

**POST** `/clients/autessadb-drive/versions/restore`

**Parameters**

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

**Request body**

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

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `node` | DriveNodeView |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/versions/restore?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"nodeId":1}'
```

---

## Write

**POST** `/clients/autessadb-drive/write`

**Parameters**

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

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `collab` | boolean |  |  |
| `content` | string |  |  |
| `expectedVersion` | integer |  |  |
| `mime` | string |  |  |
| `mode` | string |  |  |
| `path` | string |  |  |
| `tableId` | string |  | ID id. |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `bytes` | integer |  |  |
| `created` | boolean |  |  |
| `mode` | string |  |  |
| `node` | DriveNodeView |  |  |
| `version` | integer |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/autessadb-drive/write?resourceId=V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"content":"Where is my order?"}'
```

---

## Related

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

