Skip to content
Leadtime
English
Esc
↑↓navigate↵open⌘Jpreview

Download a workspace file

Downloads a private file from the authenticated workspace, including chat attachments and generated artifacts.

GET/workspace/files/{fileId}
Authorization
AuthorizationOAuth2 access token · headerrequired
Scopes:api:read
or
AuthorizationBearer token (JWT) · headerrequired
Path parameters
fileIdstringrequired

File ID to download

Responses
200

The requested file bytes

401

Unauthorized - Invalid or missing authentication token

403

Forbidden - Insufficient API scopes or permissions

404

File not found in this workspace

Try it
Server
Authorization
Parameters
Request
curl -X GET "https://leadtime.app/api/public/workspace/files/string" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Response
The requested file bytes