GET
https://api.vaelor.chat/v1/files/{id}Responds with a 302 redirect to a fresh signed URL for the file. This is the file's stableUrl: store it instead of the short-lived url.
Path parameters#
iduuidRequiredThe file ID.
Example#
curl -L -o q3-report.pdf \
https://api.vaelor.chat/v1/files/c0a8012e-5b7f-4c3d-a9e2-71f4d6b8e015 \
-H "Authorization: Bearer $VAELOR_API_KEY"const response = await fetch(`https://api.vaelor.chat/v1/files/${fileId}`, {
headers: { Authorization: `Bearer ${process.env.VAELOR_API_KEY}` }
})
const bytes = await response.arrayBuffer()content = requests.get(
f"https://api.vaelor.chat/v1/files/{file_id}",
headers={"Authorization": f"Bearer {os.environ['VAELOR_API_KEY']}"},
).contentErrors#
| Status | When |
|---|---|
403 | The file belongs to another account. |
404 | No file with this ID exists. |