Skip to content
Get started

Files

Upload and manage spreadsheet files. Files must be Excel (.xlsx) format.

List files
client.Files.List(ctx, query) (*CursorIDPage[File], error)
GET/v1/files
Upload a file
client.Files.Upload(ctx, body) (*File, error)
POST/v1/files
Delete a file
client.Files.Delete(ctx, fileID) (*FileDeleteResponse, error)
DELETE/v1/files/{file_id}
Get file metadata
client.Files.Get(ctx, fileID) (*File, error)
GET/v1/files/{file_id}
Download file
client.Files.Download(ctx, fileID) (*Response, error)
GET/v1/files/{file_id}/content
ModelsExpand Collapse
type File struct{…}

Response representing an uploaded file.

This is returned from POST (upload), GET (retrieve), and list endpoints.

ID string

The unique identifier for this file.

ContentType string

The MIME type of the file.

maxLength255
CreatedAt Time

The timestamp when the file was uploaded.

formatdate-time
FileName string

The original filename of the uploaded file.

maxLength255
Object File

The object type, which is always 'file'.

Size int64

The size of the file in bytes.

minimum0