Skip to main content

Overview

Files endpoints

Available Operations

list

Lists files belonging to the workspace of the authenticating API key.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<operations.ListFilesResponse>

Errors

upload

Uploads a file to be referenced in future API calls. The file is stored under the workspace of the authenticating API key. Maximum file size: 100 MB.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<models.FileMetadata>

Errors

delete

Deletes a file owned by the requesting workspace. Deletion is irreversible.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<models.FileDeleteResponse>

Errors

retrieve

Retrieves metadata for a single file owned by the requesting workspace.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<models.FileMetadata>

Errors

download

Downloads the raw bytes of a file. Only files created server-side are downloadable; uploaded files return 400.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<ReadableStream<Uint8Array>>

Errors