All operations

The 20 operations that an API key can call, by job, with the scope that each one needs.

Each operation's name is its operationId in the OpenAPI file.

A key with the Search scope can call every operation that reads. A key with the Read and write scope can call all of them.

OperationNameScopeWhat it does
POST /v1/searchsearchSearchReturns the passages that answer a question.

Drives

OperationNameScopeWhat it does
GET /v1/driveslistDrivesSearchLists the drives the key reaches.
GET /v1/drives/{driveId}getDriveSearchGets one drive, with its file counts and status.

Folders

OperationNameScopeWhat it does
GET /v1/drives/{driveId}/folderslistFoldersSearchLists a drive's folders, with the number of documents directly in each.
POST /v1/drives/{driveId}/folderscreateFolderRead and writeCreates a folder, along with any parent folders it needs.
POST /v1/drives/{driveId}/folders/movemoveFolderRead and writeRenames or moves a folder, including its subfolders and their documents.
DELETE /v1/drives/{driveId}/foldersdeleteFolderRead and writeDeletes a folder that has no documents.

Documents

OperationNameScopeWhat it does
GET /v1/drives/{driveId}/documentslistDocumentsSearchLists a drive's documents, one page at a time.
GET /v1/documents/{documentId}getDocumentSearchGets one document: its name, path, status, revision and tags.
GET /v1/documents/{documentId}/revisionslistDocumentRevisionsSearchLists the revisions of a document, newest first.
POST /v1/documents/{documentId}/readreadDocumentSearchReads the text of one page, slide, sheet, section, or range.
GET /v1/documents/{documentId}/contentNoneSearchDownloads the original file of the current revision, or of ?revision=N. It returns bytes, so it has no operation name. See Download the original file.
PUT /v1/drives/{driveId}/documents/by-pathputDocumentInlineRead and writeAdds a small text document, or a new revision of the document at that path.
PATCH /v1/documents/{documentId}/metadataupdateDocumentMetadataRead and writeReplaces the tags of a document, renames it or moves it.
POST /v1/documents/{documentId}/copycopyDocumentRead and writeCopies a document's current revision into a drive, or moves it there.
DELETE /v1/documents/{documentId}deleteDocumentRead and writeDeletes a document and its revisions.

Uploads

OperationNameScopeWhat it does
POST /v1/drives/{driveId}/uploadscreateUploadRead and writeStarts an upload of up to 1 GB and returns an address for each part.
GET /v1/uploads/{uploadId}/partslistUploadPartsRead and writeReturns more part addresses, or fresh ones after the first ones expire.
POST /v1/uploads/{uploadId}/completecompleteUploadRead and writeCompletes an upload, which makes the file a document revision.

Operations

OperationNameScopeWhat it does
GET /v1/operations/{operationId}getOperationSearchReports the progress of an upload, a delete, or a tag change.

API key

OperationNameScopeWhat it does
GET /v1/keygetApiKeyInfoSearchReturns the key that made the request and the drives it reaches.

What is not here

The app uses other operations for members, roles, API keys, agent connections, usage, and billing. Those need a person's session in the app and can't be called with an API key, so do that work in the app.

On this page