curl --request PUT \
--url 'https://sandbox.circularo.com/api/v1/documents/sign/finish/digest?token=' \
--header 'Content-Type: application/json' \
--data '
{
"sessionId": "sign:session:9f2c4e1b7a0d63855c1e8f04b2d97a63e5108c4fbd26a7391e0c58d4a6b7f213",
"signedDigests": [
{
"originalDigest": "9F2C4E1B7A0D63855C1E8F04B2D97A63E5108C4FBD26A7391E0C58D4A6B7F213",
"signedDigest": "b9e6bf9fd04bec0f61e85b81ac33dfdef64b0e2bfea6a76dad1c8d8656ec922e6e5ab8536f6c76d12c9ec151cda4192009a1752088b396ec592ab12aca8813923b702e98bb03453edb5ecd881902e16c081f934606f8f781798e63c2a8b7ad9c05b0c5e52bff233a7035d0919de5da62091f0503a57dbc1761a4cdc6084814ad0861488d4f37a823bfe64d731e8ef9669e9512da73906dad98fe84d3cd607f063079b8d00394209bc88012a263b9d8fbec627a393ed57eaee766dde246f393356fef6d38af9606c25a049acf26c06bb900a6168bb515e677cc53326002a5bb2ec70d472200c4a19bf99d6a9cfd1d4ba389e0d0e48f46cc3b2fb23add7f55f561"
}
],
"tsaServer": "primary",
"useTsa": false
}
'import requests
url = "https://sandbox.circularo.com/api/v1/documents/sign/finish/digest?token="
payload = {
"sessionId": "sign:session:9f2c4e1b7a0d63855c1e8f04b2d97a63e5108c4fbd26a7391e0c58d4a6b7f213",
"signedDigests": [
{
"originalDigest": "9F2C4E1B7A0D63855C1E8F04B2D97A63E5108C4FBD26A7391E0C58D4A6B7F213",
"signedDigest": "b9e6bf9fd04bec0f61e85b81ac33dfdef64b0e2bfea6a76dad1c8d8656ec922e6e5ab8536f6c76d12c9ec151cda4192009a1752088b396ec592ab12aca8813923b702e98bb03453edb5ecd881902e16c081f934606f8f781798e63c2a8b7ad9c05b0c5e52bff233a7035d0919de5da62091f0503a57dbc1761a4cdc6084814ad0861488d4f37a823bfe64d731e8ef9669e9512da73906dad98fe84d3cd607f063079b8d00394209bc88012a263b9d8fbec627a393ed57eaee766dde246f393356fef6d38af9606c25a049acf26c06bb900a6168bb515e677cc53326002a5bb2ec70d472200c4a19bf99d6a9cfd1d4ba389e0d0e48f46cc3b2fb23add7f55f561"
}
],
"tsaServer": "primary",
"useTsa": False
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
sessionId: 'sign:session:9f2c4e1b7a0d63855c1e8f04b2d97a63e5108c4fbd26a7391e0c58d4a6b7f213',
signedDigests: [
{
originalDigest: '9F2C4E1B7A0D63855C1E8F04B2D97A63E5108C4FBD26A7391E0C58D4A6B7F213',
signedDigest: 'b9e6bf9fd04bec0f61e85b81ac33dfdef64b0e2bfea6a76dad1c8d8656ec922e6e5ab8536f6c76d12c9ec151cda4192009a1752088b396ec592ab12aca8813923b702e98bb03453edb5ecd881902e16c081f934606f8f781798e63c2a8b7ad9c05b0c5e52bff233a7035d0919de5da62091f0503a57dbc1761a4cdc6084814ad0861488d4f37a823bfe64d731e8ef9669e9512da73906dad98fe84d3cd607f063079b8d00394209bc88012a263b9d8fbec627a393ed57eaee766dde246f393356fef6d38af9606c25a049acf26c06bb900a6168bb515e677cc53326002a5bb2ec70d472200c4a19bf99d6a9cfd1d4ba389e0d0e48f46cc3b2fb23add7f55f561'
}
],
tsaServer: 'primary',
useTsa: false
})
};
fetch('https://sandbox.circularo.com/api/v1/documents/sign/finish/digest?token=', 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://sandbox.circularo.com/api/v1/documents/sign/finish/digest?token=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'sessionId' => 'sign:session:9f2c4e1b7a0d63855c1e8f04b2d97a63e5108c4fbd26a7391e0c58d4a6b7f213',
'signedDigests' => [
[
'originalDigest' => '9F2C4E1B7A0D63855C1E8F04B2D97A63E5108C4FBD26A7391E0C58D4A6B7F213',
'signedDigest' => 'b9e6bf9fd04bec0f61e85b81ac33dfdef64b0e2bfea6a76dad1c8d8656ec922e6e5ab8536f6c76d12c9ec151cda4192009a1752088b396ec592ab12aca8813923b702e98bb03453edb5ecd881902e16c081f934606f8f781798e63c2a8b7ad9c05b0c5e52bff233a7035d0919de5da62091f0503a57dbc1761a4cdc6084814ad0861488d4f37a823bfe64d731e8ef9669e9512da73906dad98fe84d3cd607f063079b8d00394209bc88012a263b9d8fbec627a393ed57eaee766dde246f393356fef6d38af9606c25a049acf26c06bb900a6168bb515e677cc53326002a5bb2ec70d472200c4a19bf99d6a9cfd1d4ba389e0d0e48f46cc3b2fb23add7f55f561'
]
],
'tsaServer' => 'primary',
'useTsa' => false
]),
CURLOPT_HTTPHEADER => [
"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://sandbox.circularo.com/api/v1/documents/sign/finish/digest?token="
payload := strings.NewReader("{\n \"sessionId\": \"sign:session:9f2c4e1b7a0d63855c1e8f04b2d97a63e5108c4fbd26a7391e0c58d4a6b7f213\",\n \"signedDigests\": [\n {\n \"originalDigest\": \"9F2C4E1B7A0D63855C1E8F04B2D97A63E5108C4FBD26A7391E0C58D4A6B7F213\",\n \"signedDigest\": \"b9e6bf9fd04bec0f61e85b81ac33dfdef64b0e2bfea6a76dad1c8d8656ec922e6e5ab8536f6c76d12c9ec151cda4192009a1752088b396ec592ab12aca8813923b702e98bb03453edb5ecd881902e16c081f934606f8f781798e63c2a8b7ad9c05b0c5e52bff233a7035d0919de5da62091f0503a57dbc1761a4cdc6084814ad0861488d4f37a823bfe64d731e8ef9669e9512da73906dad98fe84d3cd607f063079b8d00394209bc88012a263b9d8fbec627a393ed57eaee766dde246f393356fef6d38af9606c25a049acf26c06bb900a6168bb515e677cc53326002a5bb2ec70d472200c4a19bf99d6a9cfd1d4ba389e0d0e48f46cc3b2fb23add7f55f561\"\n }\n ],\n \"tsaServer\": \"primary\",\n \"useTsa\": false\n}")
req, _ := http.NewRequest("PUT", url, payload)
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.put("https://sandbox.circularo.com/api/v1/documents/sign/finish/digest?token=")
.header("Content-Type", "application/json")
.body("{\n \"sessionId\": \"sign:session:9f2c4e1b7a0d63855c1e8f04b2d97a63e5108c4fbd26a7391e0c58d4a6b7f213\",\n \"signedDigests\": [\n {\n \"originalDigest\": \"9F2C4E1B7A0D63855C1E8F04B2D97A63E5108C4FBD26A7391E0C58D4A6B7F213\",\n \"signedDigest\": \"b9e6bf9fd04bec0f61e85b81ac33dfdef64b0e2bfea6a76dad1c8d8656ec922e6e5ab8536f6c76d12c9ec151cda4192009a1752088b396ec592ab12aca8813923b702e98bb03453edb5ecd881902e16c081f934606f8f781798e63c2a8b7ad9c05b0c5e52bff233a7035d0919de5da62091f0503a57dbc1761a4cdc6084814ad0861488d4f37a823bfe64d731e8ef9669e9512da73906dad98fe84d3cd607f063079b8d00394209bc88012a263b9d8fbec627a393ed57eaee766dde246f393356fef6d38af9606c25a049acf26c06bb900a6168bb515e677cc53326002a5bb2ec70d472200c4a19bf99d6a9cfd1d4ba389e0d0e48f46cc3b2fb23add7f55f561\"\n }\n ],\n \"tsaServer\": \"primary\",\n \"useTsa\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/documents/sign/finish/digest?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"sessionId\": \"sign:session:9f2c4e1b7a0d63855c1e8f04b2d97a63e5108c4fbd26a7391e0c58d4a6b7f213\",\n \"signedDigests\": [\n {\n \"originalDigest\": \"9F2C4E1B7A0D63855C1E8F04B2D97A63E5108C4FBD26A7391E0C58D4A6B7F213\",\n \"signedDigest\": \"b9e6bf9fd04bec0f61e85b81ac33dfdef64b0e2bfea6a76dad1c8d8656ec922e6e5ab8536f6c76d12c9ec151cda4192009a1752088b396ec592ab12aca8813923b702e98bb03453edb5ecd881902e16c081f934606f8f781798e63c2a8b7ad9c05b0c5e52bff233a7035d0919de5da62091f0503a57dbc1761a4cdc6084814ad0861488d4f37a823bfe64d731e8ef9669e9512da73906dad98fe84d3cd607f063079b8d00394209bc88012a263b9d8fbec627a393ed57eaee766dde246f393356fef6d38af9606c25a049acf26c06bb900a6168bb515e677cc53326002a5bb2ec70d472200c4a19bf99d6a9cfd1d4ba389e0d0e48f46cc3b2fb23add7f55f561\"\n }\n ],\n \"tsaServer\": \"primary\",\n \"useTsa\": false\n}"
response = http.request(request)
puts response.read_body{
"status": "SUCCESS"
}{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 402,
"type": "SUBSCRIPTION:NOT_ACTIVE",
"message": "Subscription not active",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 404,
"type": "RESOURCE:NOT_FOUND",
"message": "Resource not found",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 409,
"type": "RESOURCE:STATE_CONFLICT",
"message": "Resource state conflict",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 410,
"type": "AUTH:IDENTITY_TOKEN_EXPIRED",
"message": "Identity token expired",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Finish two-step digest signing of a document
PUT /documents/sign/finish/digest
Completes a client-side signing session opened by POST /documents/sign/{version}/start/digest - the second of the two calls that flow makes up. The client signed the digests it was handed with the private key on its own device and returns them here, where they become the document’s signatures.
The session is loaded, checked for expiry and confirmed to belong to the caller, and exactly one signed digest has to arrive for every digest handed out. Each one is injected, together with the public certificate captured at the start, into the signature placeholder reserved for it in the matching prepared file - that is what turns the prepared copy into a signed PDF. The signed files then replace the document’s own, the signature components are stored and the document is recorded as signed. Prepared files that carried only annotations or images are finalized here too, without the client sending anything for them.
When useTsa is set, the trusted timestamps are obtained here as well - from the server named in tsaServer, or from the account’s default one - and not at the start, because the bytes the client signs must not carry a timestamp yet. This variant can add both a timestamp inside the signature and a standalone document timestamp, as the account’s timestamp type configures.
Signing then carries the transaction forward: the signer stops being waited for, share tokens that are no longer needed are disabled, and when nobody else is expected to act the document is completed and sealed when the document owner’s settings seal on completion, with the owner’s seal-on-complete or default seal provider. The audit trail is written, the signed and completed webhooks are sent, whoever has the turn next is notified, and the signature and its timestamps are counted against the subscription.
The session lives for a few minutes only, and the document must not change between the start and the finish - a prepared signature is made over specific content, so a document that has moved on makes it unusable and the signing has to start again.
Token authorization: Authorize using a token — either a session token obtained from login or an API key — to call this endpoint.
curl --request PUT \
--url 'https://sandbox.circularo.com/api/v1/documents/sign/finish/digest?token=' \
--header 'Content-Type: application/json' \
--data '
{
"sessionId": "sign:session:9f2c4e1b7a0d63855c1e8f04b2d97a63e5108c4fbd26a7391e0c58d4a6b7f213",
"signedDigests": [
{
"originalDigest": "9F2C4E1B7A0D63855C1E8F04B2D97A63E5108C4FBD26A7391E0C58D4A6B7F213",
"signedDigest": "b9e6bf9fd04bec0f61e85b81ac33dfdef64b0e2bfea6a76dad1c8d8656ec922e6e5ab8536f6c76d12c9ec151cda4192009a1752088b396ec592ab12aca8813923b702e98bb03453edb5ecd881902e16c081f934606f8f781798e63c2a8b7ad9c05b0c5e52bff233a7035d0919de5da62091f0503a57dbc1761a4cdc6084814ad0861488d4f37a823bfe64d731e8ef9669e9512da73906dad98fe84d3cd607f063079b8d00394209bc88012a263b9d8fbec627a393ed57eaee766dde246f393356fef6d38af9606c25a049acf26c06bb900a6168bb515e677cc53326002a5bb2ec70d472200c4a19bf99d6a9cfd1d4ba389e0d0e48f46cc3b2fb23add7f55f561"
}
],
"tsaServer": "primary",
"useTsa": false
}
'import requests
url = "https://sandbox.circularo.com/api/v1/documents/sign/finish/digest?token="
payload = {
"sessionId": "sign:session:9f2c4e1b7a0d63855c1e8f04b2d97a63e5108c4fbd26a7391e0c58d4a6b7f213",
"signedDigests": [
{
"originalDigest": "9F2C4E1B7A0D63855C1E8F04B2D97A63E5108C4FBD26A7391E0C58D4A6B7F213",
"signedDigest": "b9e6bf9fd04bec0f61e85b81ac33dfdef64b0e2bfea6a76dad1c8d8656ec922e6e5ab8536f6c76d12c9ec151cda4192009a1752088b396ec592ab12aca8813923b702e98bb03453edb5ecd881902e16c081f934606f8f781798e63c2a8b7ad9c05b0c5e52bff233a7035d0919de5da62091f0503a57dbc1761a4cdc6084814ad0861488d4f37a823bfe64d731e8ef9669e9512da73906dad98fe84d3cd607f063079b8d00394209bc88012a263b9d8fbec627a393ed57eaee766dde246f393356fef6d38af9606c25a049acf26c06bb900a6168bb515e677cc53326002a5bb2ec70d472200c4a19bf99d6a9cfd1d4ba389e0d0e48f46cc3b2fb23add7f55f561"
}
],
"tsaServer": "primary",
"useTsa": False
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
sessionId: 'sign:session:9f2c4e1b7a0d63855c1e8f04b2d97a63e5108c4fbd26a7391e0c58d4a6b7f213',
signedDigests: [
{
originalDigest: '9F2C4E1B7A0D63855C1E8F04B2D97A63E5108C4FBD26A7391E0C58D4A6B7F213',
signedDigest: 'b9e6bf9fd04bec0f61e85b81ac33dfdef64b0e2bfea6a76dad1c8d8656ec922e6e5ab8536f6c76d12c9ec151cda4192009a1752088b396ec592ab12aca8813923b702e98bb03453edb5ecd881902e16c081f934606f8f781798e63c2a8b7ad9c05b0c5e52bff233a7035d0919de5da62091f0503a57dbc1761a4cdc6084814ad0861488d4f37a823bfe64d731e8ef9669e9512da73906dad98fe84d3cd607f063079b8d00394209bc88012a263b9d8fbec627a393ed57eaee766dde246f393356fef6d38af9606c25a049acf26c06bb900a6168bb515e677cc53326002a5bb2ec70d472200c4a19bf99d6a9cfd1d4ba389e0d0e48f46cc3b2fb23add7f55f561'
}
],
tsaServer: 'primary',
useTsa: false
})
};
fetch('https://sandbox.circularo.com/api/v1/documents/sign/finish/digest?token=', 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://sandbox.circularo.com/api/v1/documents/sign/finish/digest?token=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'sessionId' => 'sign:session:9f2c4e1b7a0d63855c1e8f04b2d97a63e5108c4fbd26a7391e0c58d4a6b7f213',
'signedDigests' => [
[
'originalDigest' => '9F2C4E1B7A0D63855C1E8F04B2D97A63E5108C4FBD26A7391E0C58D4A6B7F213',
'signedDigest' => 'b9e6bf9fd04bec0f61e85b81ac33dfdef64b0e2bfea6a76dad1c8d8656ec922e6e5ab8536f6c76d12c9ec151cda4192009a1752088b396ec592ab12aca8813923b702e98bb03453edb5ecd881902e16c081f934606f8f781798e63c2a8b7ad9c05b0c5e52bff233a7035d0919de5da62091f0503a57dbc1761a4cdc6084814ad0861488d4f37a823bfe64d731e8ef9669e9512da73906dad98fe84d3cd607f063079b8d00394209bc88012a263b9d8fbec627a393ed57eaee766dde246f393356fef6d38af9606c25a049acf26c06bb900a6168bb515e677cc53326002a5bb2ec70d472200c4a19bf99d6a9cfd1d4ba389e0d0e48f46cc3b2fb23add7f55f561'
]
],
'tsaServer' => 'primary',
'useTsa' => false
]),
CURLOPT_HTTPHEADER => [
"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://sandbox.circularo.com/api/v1/documents/sign/finish/digest?token="
payload := strings.NewReader("{\n \"sessionId\": \"sign:session:9f2c4e1b7a0d63855c1e8f04b2d97a63e5108c4fbd26a7391e0c58d4a6b7f213\",\n \"signedDigests\": [\n {\n \"originalDigest\": \"9F2C4E1B7A0D63855C1E8F04B2D97A63E5108C4FBD26A7391E0C58D4A6B7F213\",\n \"signedDigest\": \"b9e6bf9fd04bec0f61e85b81ac33dfdef64b0e2bfea6a76dad1c8d8656ec922e6e5ab8536f6c76d12c9ec151cda4192009a1752088b396ec592ab12aca8813923b702e98bb03453edb5ecd881902e16c081f934606f8f781798e63c2a8b7ad9c05b0c5e52bff233a7035d0919de5da62091f0503a57dbc1761a4cdc6084814ad0861488d4f37a823bfe64d731e8ef9669e9512da73906dad98fe84d3cd607f063079b8d00394209bc88012a263b9d8fbec627a393ed57eaee766dde246f393356fef6d38af9606c25a049acf26c06bb900a6168bb515e677cc53326002a5bb2ec70d472200c4a19bf99d6a9cfd1d4ba389e0d0e48f46cc3b2fb23add7f55f561\"\n }\n ],\n \"tsaServer\": \"primary\",\n \"useTsa\": false\n}")
req, _ := http.NewRequest("PUT", url, payload)
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.put("https://sandbox.circularo.com/api/v1/documents/sign/finish/digest?token=")
.header("Content-Type", "application/json")
.body("{\n \"sessionId\": \"sign:session:9f2c4e1b7a0d63855c1e8f04b2d97a63e5108c4fbd26a7391e0c58d4a6b7f213\",\n \"signedDigests\": [\n {\n \"originalDigest\": \"9F2C4E1B7A0D63855C1E8F04B2D97A63E5108C4FBD26A7391E0C58D4A6B7F213\",\n \"signedDigest\": \"b9e6bf9fd04bec0f61e85b81ac33dfdef64b0e2bfea6a76dad1c8d8656ec922e6e5ab8536f6c76d12c9ec151cda4192009a1752088b396ec592ab12aca8813923b702e98bb03453edb5ecd881902e16c081f934606f8f781798e63c2a8b7ad9c05b0c5e52bff233a7035d0919de5da62091f0503a57dbc1761a4cdc6084814ad0861488d4f37a823bfe64d731e8ef9669e9512da73906dad98fe84d3cd607f063079b8d00394209bc88012a263b9d8fbec627a393ed57eaee766dde246f393356fef6d38af9606c25a049acf26c06bb900a6168bb515e677cc53326002a5bb2ec70d472200c4a19bf99d6a9cfd1d4ba389e0d0e48f46cc3b2fb23add7f55f561\"\n }\n ],\n \"tsaServer\": \"primary\",\n \"useTsa\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/documents/sign/finish/digest?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"sessionId\": \"sign:session:9f2c4e1b7a0d63855c1e8f04b2d97a63e5108c4fbd26a7391e0c58d4a6b7f213\",\n \"signedDigests\": [\n {\n \"originalDigest\": \"9F2C4E1B7A0D63855C1E8F04B2D97A63E5108C4FBD26A7391E0C58D4A6B7F213\",\n \"signedDigest\": \"b9e6bf9fd04bec0f61e85b81ac33dfdef64b0e2bfea6a76dad1c8d8656ec922e6e5ab8536f6c76d12c9ec151cda4192009a1752088b396ec592ab12aca8813923b702e98bb03453edb5ecd881902e16c081f934606f8f781798e63c2a8b7ad9c05b0c5e52bff233a7035d0919de5da62091f0503a57dbc1761a4cdc6084814ad0861488d4f37a823bfe64d731e8ef9669e9512da73906dad98fe84d3cd607f063079b8d00394209bc88012a263b9d8fbec627a393ed57eaee766dde246f393356fef6d38af9606c25a049acf26c06bb900a6168bb515e677cc53326002a5bb2ec70d472200c4a19bf99d6a9cfd1d4ba389e0d0e48f46cc3b2fb23add7f55f561\"\n }\n ],\n \"tsaServer\": \"primary\",\n \"useTsa\": false\n}"
response = http.request(request)
puts response.read_body{
"status": "SUCCESS"
}{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 402,
"type": "SUBSCRIPTION:NOT_ACTIVE",
"message": "Subscription not active",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 404,
"type": "RESOURCE:NOT_FOUND",
"message": "Resource not found",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 409,
"type": "RESOURCE:STATE_CONFLICT",
"message": "Resource state conflict",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 410,
"type": "AUTH:IDENTITY_TOKEN_EXPIRED",
"message": "Identity token expired",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Authorizations
Body
Name of the Time Stamping Authority server to request the timestamp from, as configured in settings. When left out, the account's default server is used. Naming one requires the set_tsa right; leaving it out does not. Rejected when no timestamp is being requested.
200^[A-Za-z0-9._-]+$"primary"