Get an eSignature draft
curl --request GET \
--url https://core-api.getaptly.com/api/esignature/drafts/{draftId} \
--header 'x-token: <api-key>'import requests
url = "https://core-api.getaptly.com/api/esignature/drafts/{draftId}"
headers = {"x-token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-token': '<api-key>'}};
fetch('https://core-api.getaptly.com/api/esignature/drafts/{draftId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://core-api.getaptly.com/api/esignature/drafts/{draftId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://core-api.getaptly.com/api/esignature/drafts/{draftId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://core-api.getaptly.com/api/esignature/drafts/{draftId}")
.header("x-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://core-api.getaptly.com/api/esignature/drafts/{draftId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"_id": "<string>",
"title": "<string>",
"userId": "<string>",
"objectId": "<string>",
"aptletOriginUuid": "<string>",
"status": "<string>",
"reviewerId": "<string>",
"reviewOutcome": "approved",
"data": {
"values": {
"cardId": "<string>",
"title": "<string>",
"builder": "pdf",
"pages": [
{
"uuid": "<string>",
"renderVersion": 2,
"source": "pdf",
"widthPt": 1,
"heightPt": 1,
"blocks": [
{
"uuid": "<string>",
"type": "input",
"x": 1,
"y": 1,
"w": 1,
"h": 1,
"z": 123,
"ownerUuid": "<string>",
"required": true,
"style": {}
}
],
"url": "<string>",
"documentUuid": "<string>",
"loose": true
}
],
"recipients": [
{
"email": "[email protected]",
"name": "<string>",
"role": "<string>",
"slot": "<string>",
"order": 123,
"uuid": "<string>",
"_id": "<string>"
}
],
"from": "<string>",
"expirationDate": "2023-11-07T05:31:56Z",
"orderEnabled": true,
"accessType": "<string>",
"message": "<string>",
"templateIds": [
"<string>"
],
"documents": [
{
"uuid": "<string>",
"source": "template",
"templateId": "<string>",
"name": "<string>",
"picked": true
}
],
"userIds": [
"<string>"
],
"assignee": "<string>",
"folderId": "<string>",
"revisionOf": "<string>",
"leaseDetails": "<unknown>",
"builderVersion": 123,
"documentSettings": {
"pageSize": "letter",
"orientation": "portrait",
"margins": {
"top": 360,
"right": 360,
"bottom": 360,
"left": 360
},
"pageNumbers": {
"enabled": true,
"position": "bottom-center",
"format": "n",
"startAt": 50000,
"skipFirst": true,
"fontFamily": "<string>",
"fontSize": 1
}
}
},
"step": 123
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}eSignature
Get an eSignature draft
One unsent draft with its wizard values (data.values, the same
fields as the create body). A draft awaiting review by an assigned
reviewer is visible only to that reviewer and its creator.
GET
/
api
/
esignature
/
drafts
/
{draftId}
Get an eSignature draft
curl --request GET \
--url https://core-api.getaptly.com/api/esignature/drafts/{draftId} \
--header 'x-token: <api-key>'import requests
url = "https://core-api.getaptly.com/api/esignature/drafts/{draftId}"
headers = {"x-token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-token': '<api-key>'}};
fetch('https://core-api.getaptly.com/api/esignature/drafts/{draftId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://core-api.getaptly.com/api/esignature/drafts/{draftId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://core-api.getaptly.com/api/esignature/drafts/{draftId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://core-api.getaptly.com/api/esignature/drafts/{draftId}")
.header("x-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://core-api.getaptly.com/api/esignature/drafts/{draftId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"_id": "<string>",
"title": "<string>",
"userId": "<string>",
"objectId": "<string>",
"aptletOriginUuid": "<string>",
"status": "<string>",
"reviewerId": "<string>",
"reviewOutcome": "approved",
"data": {
"values": {
"cardId": "<string>",
"title": "<string>",
"builder": "pdf",
"pages": [
{
"uuid": "<string>",
"renderVersion": 2,
"source": "pdf",
"widthPt": 1,
"heightPt": 1,
"blocks": [
{
"uuid": "<string>",
"type": "input",
"x": 1,
"y": 1,
"w": 1,
"h": 1,
"z": 123,
"ownerUuid": "<string>",
"required": true,
"style": {}
}
],
"url": "<string>",
"documentUuid": "<string>",
"loose": true
}
],
"recipients": [
{
"email": "[email protected]",
"name": "<string>",
"role": "<string>",
"slot": "<string>",
"order": 123,
"uuid": "<string>",
"_id": "<string>"
}
],
"from": "<string>",
"expirationDate": "2023-11-07T05:31:56Z",
"orderEnabled": true,
"accessType": "<string>",
"message": "<string>",
"templateIds": [
"<string>"
],
"documents": [
{
"uuid": "<string>",
"source": "template",
"templateId": "<string>",
"name": "<string>",
"picked": true
}
],
"userIds": [
"<string>"
],
"assignee": "<string>",
"folderId": "<string>",
"revisionOf": "<string>",
"leaseDetails": "<unknown>",
"builderVersion": 123,
"documentSettings": {
"pageSize": "letter",
"orientation": "portrait",
"margins": {
"top": 360,
"right": 360,
"bottom": 360,
"left": 360
},
"pageNumbers": {
"enabled": true,
"position": "bottom-center",
"format": "n",
"startAt": 50000,
"skipFirst": true,
"fontFamily": "<string>",
"fontSize": 1
}
}
},
"step": 123
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}