List a document draft's exports
curl --request GET \
--url https://api.usenexio.com/documents/drafts/{id}/exports \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.usenexio.com/documents/drafts/{id}/exports"
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/drafts/{id}/exports', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"default": "<string>",
"draft_id": "<string>",
"exports": [
{
"filename": "<string>",
"format": "<string>"
}
]
}
}{
"code": "INVALID_ARGUMENT",
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>",
"detail": "<string>",
"details": "<unknown>",
"errors": [
{
"message": "<string>",
"location": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"reason": "<string>",
"retry_after_ms": 123
}{
"code": "INVALID_ARGUMENT",
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>",
"detail": "<string>",
"details": "<unknown>",
"errors": [
{
"message": "<string>",
"location": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"reason": "<string>",
"retry_after_ms": 123
}{
"code": "INVALID_ARGUMENT",
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>",
"detail": "<string>",
"details": "<unknown>",
"errors": [
{
"message": "<string>",
"location": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"reason": "<string>",
"retry_after_ms": 123
}{
"code": "INVALID_ARGUMENT",
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>",
"detail": "<string>",
"details": "<unknown>",
"errors": [
{
"message": "<string>",
"location": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"reason": "<string>",
"retry_after_ms": 123
}{
"code": "INVALID_ARGUMENT",
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>",
"detail": "<string>",
"details": "<unknown>",
"errors": [
{
"message": "<string>",
"location": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"reason": "<string>",
"retry_after_ms": 123
}{
"code": "INVALID_ARGUMENT",
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>",
"detail": "<string>",
"details": "<unknown>",
"errors": [
{
"message": "<string>",
"location": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"reason": "<string>",
"retry_after_ms": 123
}Documents
List a document draft's exports
Reads available formats and filenames on the draft’s pinned type and template versions after current subject admission. Does not render, store, or file a document.
GET
/
documents
/
drafts
/
{id}
/
exports
List a document draft's exports
curl --request GET \
--url https://api.usenexio.com/documents/drafts/{id}/exports \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.usenexio.com/documents/drafts/{id}/exports"
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/drafts/{id}/exports', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"default": "<string>",
"draft_id": "<string>",
"exports": [
{
"filename": "<string>",
"format": "<string>"
}
]
}
}{
"code": "INVALID_ARGUMENT",
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>",
"detail": "<string>",
"details": "<unknown>",
"errors": [
{
"message": "<string>",
"location": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"reason": "<string>",
"retry_after_ms": 123
}{
"code": "INVALID_ARGUMENT",
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>",
"detail": "<string>",
"details": "<unknown>",
"errors": [
{
"message": "<string>",
"location": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"reason": "<string>",
"retry_after_ms": 123
}{
"code": "INVALID_ARGUMENT",
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>",
"detail": "<string>",
"details": "<unknown>",
"errors": [
{
"message": "<string>",
"location": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"reason": "<string>",
"retry_after_ms": 123
}{
"code": "INVALID_ARGUMENT",
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>",
"detail": "<string>",
"details": "<unknown>",
"errors": [
{
"message": "<string>",
"location": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"reason": "<string>",
"retry_after_ms": 123
}{
"code": "INVALID_ARGUMENT",
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>",
"detail": "<string>",
"details": "<unknown>",
"errors": [
{
"message": "<string>",
"location": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"reason": "<string>",
"retry_after_ms": 123
}{
"code": "INVALID_ARGUMENT",
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>",
"detail": "<string>",
"details": "<unknown>",
"errors": [
{
"message": "<string>",
"location": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"reason": "<string>",
"retry_after_ms": 123
}