Get Preview Url
curl --request GET \
--url https://api.example.com/api/files/{file_id}/preview-url \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/files/{file_id}/preview-url"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/api/files/{file_id}/preview-url', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://api.example.com/api/files/{file_id}/preview-url';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Files
Get Preview Url
Get a signed URL for file preview.
Args: file_id: UUID of the file
Returns: Signed URL (valid for 1 hour)
GET
/
api
/
files
/
{file_id}
/
preview-url
Get Preview Url
curl --request GET \
--url https://api.example.com/api/files/{file_id}/preview-url \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/files/{file_id}/preview-url"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/api/files/{file_id}/preview-url', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://api.example.com/api/files/{file_id}/preview-url';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}