File Download
Endpoint
Method
Auth
Description
Overview
Obtain Download URL
POST /v1/files/:fileId/download-url
curl -X POST https://api-client.bkend.ai/v1/files/{fileId}/download-url \
-H "X-API-Key: {pk_publishable_key}" \
-H "Authorization: Bearer {accessToken}"const response = await fetch(`https://api-client.bkend.ai/v1/files/${fileId}/download-url`, {
method: 'POST',
headers: {
'Authorization': `Bearer ${accessToken}`,
'X-API-Key': '{pk_publishable_key}',
},
});
const { url, filename, contentType, size, expiresAt } = await response.json();Path Parameters
Parameter
Type
Required
Description
Response (200 OK)
Field
Type
Description
Download Implementation
Browser Download
Programmatic Download
Error Responses
Error Code
HTTP
Description
Using in Your App
Next Steps
Last updated