List Document Versions
curl --request GET \
--url https://{tenant_id}.api.useago.com/api/v1/documents/{document_id}/versions \
--header 'X-API-Key: <api-key>'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/documents/{document_id}/versions"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://{tenant_id}.api.useago.com/api/v1/documents/{document_id}/versions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "<string>",
"version_number": 123,
"object": "version",
"created_by": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"change_summary": "<string>"
}
],
"total": 123,
"object": "list",
"has_more": false
}Documents
List Document Versions
List all versions for a document.
GET
/
api
/
v1
/
documents
/
{document_id}
/
versions
List Document Versions
curl --request GET \
--url https://{tenant_id}.api.useago.com/api/v1/documents/{document_id}/versions \
--header 'X-API-Key: <api-key>'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/documents/{document_id}/versions"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://{tenant_id}.api.useago.com/api/v1/documents/{document_id}/versions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "<string>",
"version_number": 123,
"object": "version",
"created_by": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"change_summary": "<string>"
}
],
"total": 123,
"object": "list",
"has_more": false
}