Chat-id routes
Chat-id file bytes
Download the original file for a Deep Reader chat.
GET
/
api
/
v2
/
documents
/
{id}
/
file
/
Get document file
curl --request GET \
--url https://api.example.com/api/v2/documents/{id}/file/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/v2/documents/{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/{id}/file/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Original file for a Deep Reader chat.
{id} is the chat pk, not att_id. Cross-org is 404, not 403.Authorizations
extractApiKeybearerAuthcookieAuth
Query Parameters
Response
No response body
⌘I
Get document file
curl --request GET \
--url https://api.example.com/api/v2/documents/{id}/file/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/v2/documents/{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/{id}/file/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
