Read a document file's content
curl --request GET \
--url https://api.usenexio.com/documents/files/{id}/content \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.usenexio.com/documents/files/{id}/content"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.usenexio.com/documents/files/{id}/content', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"expires_at": "2023-11-07T05:31:56Z",
"url": "<string>"
},
"meta": {
"nextCursor": "<string>",
"requestId": "<string>"
}
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}Documents
Read a document file's content
A short-lived read URL for the stored file. With format=bytes the answer is the stored bytes (at most 10 MiB) in place of the URL.
GET
/
documents
/
files
/
{id}
/
content
Read a document file's content
curl --request GET \
--url https://api.usenexio.com/documents/files/{id}/content \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.usenexio.com/documents/files/{id}/content"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.usenexio.com/documents/files/{id}/content', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"expires_at": "2023-11-07T05:31:56Z",
"url": "<string>"
},
"meta": {
"nextCursor": "<string>",
"requestId": "<string>"
}
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}