Objects & Storage

Documentation for Objects & Storage

Base path: /api/v1/objects

Provides endpoints for file downloads and storage usage statistics. Files produced during workflow execution are stored in object storage (S3-compatible) and can be downloaded via pre-signed URLs.


Endpoints Overview

MethodPathAuthDescription
GET/api/v1/objects/downloadNoneDownload a file by object key
GET/api/v1/objects/storage-usageJWTGet storage usage statistics

GET /api/v1/objects/download

Downloads a file from object storage using its object key. This endpoint is public β€” no authentication required. Object keys act as access tokens (they are long, random, and hard to guess).

Authentication

None required.

Query Parameters

ParameterTypeRequiredDescription
objectKeystringYesThe object storage key (path) of the file
typestringNoDownload disposition: "attachment" (download prompt) or "inline" (display in browser)

Behavior

The server generates a pre-signed URL for the object and redirects the browser to it, or streams the file directly. The type parameter controls the Content-Disposition header.

Example

bash

Response

Redirects to the file or streams it directly. Status 302 redirect to a pre-signed URL.

Errors

StatusReason
400 Bad RequestMissing objectKey parameter
404 Not FoundObject not found in storage

GET /api/v1/objects/storage-usage

Returns storage usage statistics for the active organization (or a specific user).

Authentication

Requires JWT (authMiddleware).

Query Parameters

ParameterTypeRequiredDescription
createdBystring (UUID)NoFilter to a specific user's uploads (admin use)

Response 200 OK

json
FieldTypeDescription
orgKeystringOrganization key
totalBytesnumberTotal storage used in bytes
inputBytesnumberBytes used by input files
outputBytesnumberBytes used by output files
fileCountnumberTotal number of stored files
breakdownarrayPer-workflow breakdown of storage usage

Breakdown item fields:

FieldTypeDescription
workflowIdstring (UUID)Workflow ID
workflowNamestringWorkflow name
bytesnumberStorage used by this workflow's runs
fileCountnumberNumber of files for this workflow

Example

bash

Object Key Format

Object keys follow a structured path format:

text

These keys are used when building download URLs for workflow run outputs.

api-docs/objects-and-storage