Get a template draft
curl --request GET \
--url https://api.usenexio.com/documents/template-drafts/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.usenexio.com/documents/template-drafts/{id}"
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/template-drafts/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"created_at": "2023-11-07T05:31:56Z",
"data": "<unknown>",
"id": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"account_id": "<string>",
"document_id": "<string>",
"submission_id": "<string>",
"template_id": "<string>",
"user_id": "<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>"
}Documents
Get a template draft
One template draft by its id. The documents service creates the draft.
GET
/
documents
/
template-drafts
/
{id}
Get a template draft
curl --request GET \
--url https://api.usenexio.com/documents/template-drafts/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.usenexio.com/documents/template-drafts/{id}"
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/template-drafts/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"created_at": "2023-11-07T05:31:56Z",
"data": "<unknown>",
"id": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"account_id": "<string>",
"document_id": "<string>",
"submission_id": "<string>",
"template_id": "<string>",
"user_id": "<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>"
}Response
OK