Skip to main content
GET
/
public
/
v1
/
drive
/
files
/
{fileId}
/
download
cURL
curl -X GET "https://api.copera.app/public/v1/drive/files/60d5ec49f1b2c72d88f0a1b2/download" \
  -H "Authorization: Bearer YOUR_TOKEN"
{
  "url": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://developer.copera.ai/llms.txt

Use this file to discover all available pages before exploring further.

Overview

Generates a signed download URL for a specific file. The returned URL points to CloudFront and is valid for 3 hours. This endpoint only works for files — requesting a download URL for a folder will return an error.

Response

Returns an object containing:
  • url: A CloudFront signed URL that can be used to download the file directly

Usage

  1. Call this endpoint to get a signed URL.
  2. Use the returned URL to download the file via a standard HTTP GET request.
  3. The signed URL expires after 3 hours — request a new one if needed.
This endpoint only works for files. Attempting to download a folder will return an error.

Authorizations

Authorization
string
header
required

Bearer token

Path Parameters

fileId
string
required

ObjectId

Required string length: 24
Pattern: ^[0-9a-fA-F]{24}$

Response

Default Response

url
string
required