Sign a signature block
curl --request POST \
--url https://app.myhero.so/signature/{documentId}/{nodeId}/sign \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"company": "<string>",
"title": "<string>",
"clientReportedAt": 123,
"signatureId": "<string>",
"customPayload": "<unknown>"
}
'import requests
url = "https://app.myhero.so/signature/{documentId}/{nodeId}/sign"
payload = {
"name": "<string>",
"company": "<string>",
"title": "<string>",
"clientReportedAt": 123,
"signatureId": "<string>",
"customPayload": "<unknown>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
company: '<string>',
title: '<string>',
clientReportedAt: 123,
signatureId: '<string>',
customPayload: '<unknown>'
})
};
fetch('https://app.myhero.so/signature/{documentId}/{nodeId}/sign', 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://app.myhero.so/signature/{documentId}/{nodeId}/sign",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'company' => '<string>',
'title' => '<string>',
'clientReportedAt' => 123,
'signatureId' => '<string>',
'customPayload' => '<unknown>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.myhero.so/signature/{documentId}/{nodeId}/sign"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"company\": \"<string>\",\n \"title\": \"<string>\",\n \"clientReportedAt\": 123,\n \"signatureId\": \"<string>\",\n \"customPayload\": \"<unknown>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.myhero.so/signature/{documentId}/{nodeId}/sign")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"company\": \"<string>\",\n \"title\": \"<string>\",\n \"clientReportedAt\": 123,\n \"signatureId\": \"<string>\",\n \"customPayload\": \"<unknown>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.myhero.so/signature/{documentId}/{nodeId}/sign")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"company\": \"<string>\",\n \"title\": \"<string>\",\n \"clientReportedAt\": 123,\n \"signatureId\": \"<string>\",\n \"customPayload\": \"<unknown>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"_id": "<string>",
"documentId": "<string>",
"nodeId": "<string>",
"signer": {
"userId": "<string>",
"email": "<string>",
"displayName": "<string>",
"authProvider": "<string>"
},
"signatory": {
"name": "<string>",
"company": "<string>",
"title": "<string>"
},
"terms": "<string>",
"termsHash": "<string>",
"ipAddress": "<string>",
"userAgent": "<string>",
"signedAt": 123,
"hashAlgorithm": "sha256",
"contentHash": "<string>",
"documentHash": "<string>",
"previousAuditId": "<string>",
"chainHash": "<string>",
"clientReportedAt": 123,
"resolvedContentHash": "<string>",
"voidedAt": 123,
"voidedBy": "<string>",
"restoredAt": 123
}
}{
"error": "<string>",
"message": "<string>",
"details": [
"<unknown>"
]
}{
"error": "<string>",
"message": "<string>",
"details": [
"<unknown>"
]
}{
"error": "<string>",
"message": "<string>",
"details": [
"<unknown>"
]
}Signatures
Sign a signature block
Signs one signature block.
The server captures the caller’s IP address, user agent and its own clock, hashes the document, writes an append-only audit record, and then applies the signature into the collaborative document.
Callers only need read access — signing does not require edit rights.
Signing is idempotent per block: a second call returns the existing record.
Rejected once the document is fully signed and locked.
POST
/
signature
/
{documentId}
/
{nodeId}
/
sign
Sign a signature block
curl --request POST \
--url https://app.myhero.so/signature/{documentId}/{nodeId}/sign \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"company": "<string>",
"title": "<string>",
"clientReportedAt": 123,
"signatureId": "<string>",
"customPayload": "<unknown>"
}
'import requests
url = "https://app.myhero.so/signature/{documentId}/{nodeId}/sign"
payload = {
"name": "<string>",
"company": "<string>",
"title": "<string>",
"clientReportedAt": 123,
"signatureId": "<string>",
"customPayload": "<unknown>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
company: '<string>',
title: '<string>',
clientReportedAt: 123,
signatureId: '<string>',
customPayload: '<unknown>'
})
};
fetch('https://app.myhero.so/signature/{documentId}/{nodeId}/sign', 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://app.myhero.so/signature/{documentId}/{nodeId}/sign",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'company' => '<string>',
'title' => '<string>',
'clientReportedAt' => 123,
'signatureId' => '<string>',
'customPayload' => '<unknown>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.myhero.so/signature/{documentId}/{nodeId}/sign"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"company\": \"<string>\",\n \"title\": \"<string>\",\n \"clientReportedAt\": 123,\n \"signatureId\": \"<string>\",\n \"customPayload\": \"<unknown>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.myhero.so/signature/{documentId}/{nodeId}/sign")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"company\": \"<string>\",\n \"title\": \"<string>\",\n \"clientReportedAt\": 123,\n \"signatureId\": \"<string>\",\n \"customPayload\": \"<unknown>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.myhero.so/signature/{documentId}/{nodeId}/sign")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"company\": \"<string>\",\n \"title\": \"<string>\",\n \"clientReportedAt\": 123,\n \"signatureId\": \"<string>\",\n \"customPayload\": \"<unknown>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"_id": "<string>",
"documentId": "<string>",
"nodeId": "<string>",
"signer": {
"userId": "<string>",
"email": "<string>",
"displayName": "<string>",
"authProvider": "<string>"
},
"signatory": {
"name": "<string>",
"company": "<string>",
"title": "<string>"
},
"terms": "<string>",
"termsHash": "<string>",
"ipAddress": "<string>",
"userAgent": "<string>",
"signedAt": 123,
"hashAlgorithm": "sha256",
"contentHash": "<string>",
"documentHash": "<string>",
"previousAuditId": "<string>",
"chainHash": "<string>",
"clientReportedAt": 123,
"resolvedContentHash": "<string>",
"voidedAt": 123,
"voidedBy": "<string>",
"restoredAt": 123
}
}{
"error": "<string>",
"message": "<string>",
"details": [
"<unknown>"
]
}{
"error": "<string>",
"message": "<string>",
"details": [
"<unknown>"
]
}{
"error": "<string>",
"message": "<string>",
"details": [
"<unknown>"
]
}Authorizations
HERO personal access token
Path Parameters
Minimum string length:
1Minimum string length:
1Body
application/json
Response
201 response
Show child attributes
Show child attributes