curl --request GET \
--url https://api.docsautomator.co/esign/sessions/{sessionId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.docsautomator.co/esign/sessions/{sessionId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.docsautomator.co/esign/sessions/{sessionId}', 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://api.docsautomator.co/esign/sessions/{sessionId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://api.docsautomator.co/esign/sessions/{sessionId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.docsautomator.co/esign/sessions/{sessionId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.docsautomator.co/esign/sessions/{sessionId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"documentName": "<string>",
"status": "pending",
"closeType": "signature",
"signingOrder": "sequential",
"deliveryMethod": "email",
"currentSignerIndex": 123,
"originalPdfUrl": "<string>",
"signedPdfUrl": "<string>",
"originalDocumentHash": "<string>",
"signedDocumentHash": "<string>",
"esignFields": [
{
"fieldId": "<string>",
"type": "signature",
"label": "<string>",
"required": true,
"value": "<string>",
"signedAt": "2023-11-07T05:31:56Z",
"signerIndex": 123
}
],
"signers": [
{
"index": 123,
"email": "<string>",
"name": "<string>",
"role": "<string>",
"status": "pending",
"invitedAt": "2023-11-07T05:31:56Z",
"openedAt": "2023-11-07T05:31:56Z",
"signedAt": "2023-11-07T05:31:56Z",
"consentGivenAt": "2023-11-07T05:31:56Z",
"signingDurationSeconds": 123
}
],
"reminderEnabled": true,
"reminderDays": 123,
"webhookParams": {
"recId": "recAbC123XyZ",
"orderId": "ORD-123"
},
"expiresAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z"
}{
"error": "Not found"
}Get session details
Returns comprehensive signing session information including signer statuses, e-sign fields with positions, document hashes, and completion timestamps.
curl --request GET \
--url https://api.docsautomator.co/esign/sessions/{sessionId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.docsautomator.co/esign/sessions/{sessionId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.docsautomator.co/esign/sessions/{sessionId}', 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://api.docsautomator.co/esign/sessions/{sessionId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://api.docsautomator.co/esign/sessions/{sessionId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.docsautomator.co/esign/sessions/{sessionId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.docsautomator.co/esign/sessions/{sessionId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"documentName": "<string>",
"status": "pending",
"closeType": "signature",
"signingOrder": "sequential",
"deliveryMethod": "email",
"currentSignerIndex": 123,
"originalPdfUrl": "<string>",
"signedPdfUrl": "<string>",
"originalDocumentHash": "<string>",
"signedDocumentHash": "<string>",
"esignFields": [
{
"fieldId": "<string>",
"type": "signature",
"label": "<string>",
"required": true,
"value": "<string>",
"signedAt": "2023-11-07T05:31:56Z",
"signerIndex": 123
}
],
"signers": [
{
"index": 123,
"email": "<string>",
"name": "<string>",
"role": "<string>",
"status": "pending",
"invitedAt": "2023-11-07T05:31:56Z",
"openedAt": "2023-11-07T05:31:56Z",
"signedAt": "2023-11-07T05:31:56Z",
"consentGivenAt": "2023-11-07T05:31:56Z",
"signingDurationSeconds": 123
}
],
"reminderEnabled": true,
"reminderDays": 123,
"webhookParams": {
"recId": "recAbC123XyZ",
"orderId": "ORD-123"
},
"expiresAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z"
}{
"error": "Not found"
}Authorizations
API key from your workspace settings. Pass as Authorization: Bearer <key> or X-API-Key: <key>. Find it at app.docsautomator.co/settings/workspace/api.
Response
Session details
Custom parameters passed in the original document creation request (webhookParams), returned verbatim. The trigger record identifier is folded in automatically — recId (Airtable, SmartSuite, Notion), taskId (ClickUp) or rowNumber (Google Sheets; positional at trigger time) — useful for correlating sessions with records in your data source. Caller-supplied keys are never overwritten. null when no identifier or parameters were provided.
{
"recId": "recAbC123XyZ",
"orderId": "ORD-123"
}