CloudPDF
DocsPricing
Start building

List signatures

GET/v1/docs/{docId}/layers/{layerName}/signaturesv3.5.0

The layer view of digital signatures: revisions, every signature field with its signed state, and the protection in force.

Describes the bytes the layer is over: the base version's signatures plus the layer's own edits as the last revision. Signed bytes (contents, digests, revision prefixes) are served per base version under /versions.

Authentication#

Any one of these credentials is accepted.

API token

The deployment's static root credential (CLOUDPDF_API_AUTH_TOKENS), valid on every surface.

Tenant token

Delegated tenant JWT, valid only for its own tenant: under /v1/tenants/{tenantId}/ the path tenant must equal the token's tenant_id, and on /v1/docs/{docId} the document must belong to that tenant and the token's scope must hold the operation's document permissions, as a document token does. For servers; browsers get document tokens. Doc-scoped viewer tokens are rejected on every admin route.

Document token

Doc-scoped JWT, valid only on the /v1/docs/{docId} subtree it names, gated by the capability scopes it carries (each operation's x-required-capability).

Document capabilitydoc.forms.read

Parameters#

docIdpathstringrequired
layerNamepathstringrequired
X-Document-Passwordheaderstring

Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.

SDK examples#

The selected SDK is remembered across the API reference. Values are examples; replace them with identifiers and input from your application.

import { CloudPDFClient } from "@cloudpdf/sdk";

const client = new CloudPDFClient({
  token: "<token>",
});

await client.doc.signatures.list({
  docId: "docId",
  layerName: "layerName"
});

Responses#

200OK
application/jsonDocSignaturesListResponse
chainValidboolean
revisionsobject[]
indexinteger
endinteger
xrefOffsetinteger
signatureIndexinteger
signaturesobject[]
indexinteger
fieldFormFieldRef
kind =
kind"objectNumber"
objectNumberinteger
fieldNamestring
widgetFormWidget
signedboolean
kind"signature" | "timestamp"
filterstring
subFilterstring
byteRange[integer, integer, integer, integer]
contentsSizeBytesinteger
coverage"whole-revision" | "partial" | "malformed"
revisionIndexinteger
signerobject
namestring
reasonstring
locationstring
contactInfostring
signedAtstring<date-time>
docMdpDocMdpPermission
catalogCertificationboolean
fieldMdpFieldLockSpec
lockFieldLockSpec
seedValueobject
parserVersioninteger
parserVersionRequiredboolean
mdp0 | 1 | 2 | 3
filterstring
filterRequiredboolean
subFiltersstring[]
subFiltersRequiredboolean
digestMethodsstring[]
digestMethodsRequiredboolean
reasonsstring[]
reasonsRequiredboolean
unsupportedRequiredboolean
protectionobject
enforced"none" | "lta" | "fill" | "annotate"
judged"none" | "lta" | "fill" | "annotate"
certificationobject
signatureIndexinteger
permissionDocMdpPermission
fieldLocksobject[]
signatureIndexinteger
source"fieldmdp" | "lock"
specFieldLockSpec
action"all" | "include" | "exclude"
fieldsstring[]
permissionDocMdpPermissionoptional
policyVersioninteger
404Not found
application/jsonErrorResponse
errorEngineError
code"Unknown" | "InvalidArg" | "DocNotOpen" | "DocOpenFailed" | "DocPasswordRequired" | "DocPasswordIncorrect" | "GrantPassphraseRequired" | "Aborted" | "Network" | "Unauthenticated" | "Forbidden" | "NotFound" | "WireFormat" | "RuntimeUnavailable" | "LayerVersionConflict" | "NotImplemented" | "MalformedPdf" | "SigningPending" | "SigningExpired" | "SigningVersionMismatch" | "SignatureRefused" | "ProtectedDocument" | "PayloadTooLarge" | "ObjectNumberUnavailable" | "LayerFull" | "ChangeConflict" | "UndoUnavailable" | "IdempotencyKeyReused" | "LayerDeleted" | "VisitorIdentityRequired" | "Conflict" | "EngineBusy" | "EngineRestarting" | "DocumentQuarantined" | "ThumbnailNotReady" | "TooManyRequests" | "GrantExpired" | "OriginRequired" | "OriginNotAllowed" | "FeatureNotEnabled" | "FeatureStopped" | "LicenseInvalid" | "LicenseUsageLimit" | "UpstreamError"

Why the request failed. A newer server can add codes: read one your client doesn't know as `Unknown`.

messagestring
detailsobjectoptional

What a code carries besides its message, as each code says.

defaultError
application/jsonErrorResponse
errorEngineError
code"Unknown" | "InvalidArg" | "DocNotOpen" | "DocOpenFailed" | "DocPasswordRequired" | "DocPasswordIncorrect" | "GrantPassphraseRequired" | "Aborted" | "Network" | "Unauthenticated" | "Forbidden" | "NotFound" | "WireFormat" | "RuntimeUnavailable" | "LayerVersionConflict" | "NotImplemented" | "MalformedPdf" | "SigningPending" | "SigningExpired" | "SigningVersionMismatch" | "SignatureRefused" | "ProtectedDocument" | "PayloadTooLarge" | "ObjectNumberUnavailable" | "LayerFull" | "ChangeConflict" | "UndoUnavailable" | "IdempotencyKeyReused" | "LayerDeleted" | "VisitorIdentityRequired" | "Conflict" | "EngineBusy" | "EngineRestarting" | "DocumentQuarantined" | "ThumbnailNotReady" | "TooManyRequests" | "GrantExpired" | "OriginRequired" | "OriginNotAllowed" | "FeatureNotEnabled" | "FeatureStopped" | "LicenseInvalid" | "LicenseUsageLimit" | "UpstreamError"

Why the request failed. A newer server can add codes: read one your client doesn't know as `Unknown`.

messagestring
detailsobjectoptional

What a code carries besides its message, as each code says.