Documents
Download the file
Serve the stored document file.
GET
/
api
/
v2
/
documents
/
attachments
/
{att_id}
/
file
/
Serve a document's file or markdown
curl --request GET \
--url https://api.example.com/api/v2/documents/attachments/{att_id}/file/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/v2/documents/attachments/{att_id}/file/"
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/v2/documents/attachments/{att_id}/file/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));"<string>"{}Bytes of the stored file (or markdown when requested). HTML/SVG are forced as downloads (
nosniff) so stored markup cannot run in the browser.Authorizations
extractApiKeybearerAuthcookieAuth
Query Parameters
Response
The response is of type file.
⌘I
Serve a document's file or markdown
curl --request GET \
--url https://api.example.com/api/v2/documents/attachments/{att_id}/file/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/v2/documents/attachments/{att_id}/file/"
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/v2/documents/attachments/{att_id}/file/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));"<string>"{}
