A URL for the shared file
const url = 'https://files.centralcodestation.com/api/v1/shares/example/download';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"password":"example","file_id":"example","rendition":"thumbnail"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://files.centralcodestation.com/api/v1/shares/example/download \ --header 'Content-Type: application/json' \ --data '{ "password": "example", "file_id": "example", "rendition": "thumbnail" }'Five minutes; within the link’s actions (a view-only link answers inline media only).
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The share link token.
Request Body
Section titled “Request Body”object
Folder links: the file to download.
Responses
Section titled “Responses”Success.
object
Example generated
{ "url": "example", "expires_at": "2026-04-15T12:00:00Z"}Error. error is one of: invalid_request.
object
Stable snake_case error code.
Example
{ "status_code": 400, "error": "invalid_request", "message": "The request is malformed: a required field is missing, a value has the wrong type or format, or a field the route does not accept was sent", "path": "/api/v1/tenants/fitness-co/applications/fitness-app/files/01J9Z6S9Q5F5R6Y2W2GZ3B3K4D", "timestamp": "2026-10-22T09:12:33.120Z"}Error. error is one of: share_password_required.
object
Stable snake_case error code.
Example
{ "status_code": 401, "error": "share_password_required", "message": "The share link is protected by a password and none was sent.", "path": "/api/v1/tenants/fitness-co/applications/fitness-app/files/01J9Z6S9Q5F5R6Y2W2GZ3B3K4D", "timestamp": "2026-10-22T09:12:33.120Z"}Error. error is one of: share_password_invalid, missing_action.
object
Stable snake_case error code.
Example
{ "status_code": 403, "error": "share_password_invalid", "message": "The password sent for the share link is wrong", "path": "/api/v1/tenants/fitness-co/applications/fitness-app/files/01J9Z6S9Q5F5R6Y2W2GZ3B3K4D", "timestamp": "2026-10-22T09:12:33.120Z"}Error. error is one of: share_not_found, file_not_found, rendition_not_available.
object
Stable snake_case error code.
Example
{ "status_code": 404, "error": "share_not_found", "message": "No share link with this id or token exists.", "path": "/api/v1/tenants/fitness-co/applications/fitness-app/files/01J9Z6S9Q5F5R6Y2W2GZ3B3K4D", "timestamp": "2026-10-22T09:12:33.120Z"}Error. error is one of: scan_pending.
object
Stable snake_case error code.
Example
{ "status_code": 409, "error": "scan_pending", "message": "The application blocks downloads until the malware scan is clean, and the scan has not finished.", "path": "/api/v1/tenants/fitness-co/applications/fitness-app/files/01J9Z6S9Q5F5R6Y2W2GZ3B3K4D", "timestamp": "2026-10-22T09:12:33.120Z"}Error. error is one of: share_gone, share_limit_reached.
object
Stable snake_case error code.
Example
{ "status_code": 410, "error": "share_gone", "message": "The share link was revoked or expired, or its target was trashed or quarantined.", "path": "/api/v1/tenants/fitness-co/applications/fitness-app/files/01J9Z6S9Q5F5R6Y2W2GZ3B3K4D", "timestamp": "2026-10-22T09:12:33.120Z"}Error. error is one of: rate_limited.
object
Stable snake_case error code.
Example
{ "status_code": 429, "error": "rate_limited", "message": "Too many requests in the current window; `retry_after` (and the `Retry-After` header) says when to retry.", "path": "/api/v1/tenants/fitness-co/applications/fitness-app/files/01J9Z6S9Q5F5R6Y2W2GZ3B3K4D", "timestamp": "2026-10-22T09:12:33.120Z"}default
Section titled “default”Error: see error for the code.
object
Stable snake_case error code.
Example
{ "status_code": 403, "error": "invalid_request", "message": "This client is not bound to this tenant/application", "path": "/api/v1/tenants/t1/applications/a1/files/01J9Z6S9Q5F5R6Y2W2GZ3B3K4D"}