Skip to content

Latest commit

 

History

History
7500 lines (5305 loc) · 103 KB

reference.md

File metadata and controls

7500 lines (5305 loc) · 103 KB

Reference

Deployment

client.deployment.licenseStatus() -> DeploymentLicenseStatusResponse

🔌 Usage

client.deployment().licenseStatus();
client.deployment.modules() -> DeploymentModulesResponse

📝 Description

What each module declares, for a dashboard or a script that lists modules, offers their permissions in its dialogs and shows their meters. Which tenants may use one is in their features (tenants.get); what it costs, if anything, is the operator's.

🔌 Usage

client.deployment().modules();

Doc

client.doc.head(docId) -> DocHeadResponse

🔌 Usage

client.doc().head(
    "docId",
    HeadDocRequest
        .builder()
        .build()
);

⚙️ Parameters

docId: String

documentPassword: Optional<String> — 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.

client.doc.changes(docId, layerName, request) -> DocChangesResponse

📝 Description

Each change stands on its own and names itself by opId: a refused change rolls back alone, and the answer lists every change in order, applied with its result or refused with its error. Asked again under its opId, a change gets the same answer, refusals included; a different change under an answered opId is refused (IdempotencyKeyReused). { opId, undoOf } undoes an earlier change of the caller, here or in an earlier request; an undo leaves alone what was changed since, and the undo of an undo redoes. A redaction, a flatten, a form repair or a completed signature ends undo for the changes before it (UndoUnavailable). Each op is checked against its own capability: annotation ops need doc.annotate.modify, form values doc.forms.fill, form structure doc.forms.modify, metadata doc.metadata.modify, outline doc.outline.modify, pages doc.pages.assemble, embedded files doc.attachments.modify. Bytes (a stamp's drawing, an attached file, a signature's artwork, a PDF whose pages come in) travel as multipart: a JSON body part, each op naming its files by role as resources: { <role>: '<key>' }, and each file as the part resource:<key>. At most 64 changes per request and 512 ops per change.

🔌 Usage

client.doc().changes(
    "docId",
    "layerName",
    DocChangesRequest
        .builder()
        .changes(
            Arrays.asList(
                DocChangesRequestChangesItem
                    .builder()
                    .opId("opId")
                    .build()
            )
        )
        .build()
);

⚙️ Parameters

docId: String

layerName: String

documentPassword: Optional<String> — 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.

changes: List<DocChangesRequestChangesItem>

client.doc.download(docId, layerName) -> InputStream

🔌 Usage

client.doc().download(
    "docId",
    "layerName",
    DownloadDocRequest
        .builder()
        .build()
);

⚙️ Parameters

docId: String

layerName: String

documentPassword: Optional<String> — 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.

client.doc.downloadLink(docId, layerName, request) -> DocDownloadLinkResponse

📝 Description

The link opens the layer as it is when created: once the layer changes, it answers 404, so create it right before handing it over. It downloads that one file and nothing else, and a password-protected document is checked when the link is created. Deployments that verify tokens with their own keys (JWKS) mint links on their backend: a doc token with layer_name, a download: { docVersion, mode: "incremental" } claim and a short exp, passed as link on the versioned download URL.

🔌 Usage

client.doc().downloadLink(
    "docId",
    "layerName",
    DocDownloadLinkRequest
        .builder()
        .build()
);

⚙️ Parameters

docId: String

layerName: String

documentPassword: Optional<String> — 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.

expiresInSeconds: Optional<Integer>

client.doc.manifest(docId, layerName) -> DocManifestResponse

🔌 Usage

client.doc().manifest(
    "docId",
    "layerName",
    ManifestDocRequest
        .builder()
        .build()
);

⚙️ Parameters

docId: String

layerName: String

documentPassword: Optional<String> — 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.

client.doc.render(docId, layerName, pageKey) -> InputStream

📝 Description

Render parameters (viewport, format) pass as flat dotted query keys, e.g. ?viewport.kind=width&viewport.width=800; the full grammar is documented with the viewer.

🔌 Usage

client.doc().render(
    "docId",
    "layerName",
    "pageKey",
    RenderDocRequest
        .builder()
        .build()
);

⚙️ Parameters

docId: String

layerName: String

pageKey: String — The page's address, obj:N: the page's indirect object number, the durable identity every PageLayout.ref carries. Mirrors annotationKey and fieldKey.

documentPassword: Optional<String> — 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.

client.doc.text(docId, layerName, pageKey) -> DocTextResponse

🔌 Usage

client.doc().text(
    "docId",
    "layerName",
    "pageKey",
    TextDocRequest
        .builder()
        .build()
);

⚙️ Parameters

docId: String

layerName: String

pageKey: String — The page's address, obj:N: the page's indirect object number, the durable identity every PageLayout.ref carries. Mirrors annotationKey and fieldKey.

documentPassword: Optional<String> — 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.

Grants

client.grants.exchange(request) -> GrantsExchangeResponse

📝 Description

Unauthenticated, but requires a browser Origin header, checked against the grant allowlist. Unknown, deleted, paused and archived grants are indistinguishable (404). Passphrase-protected grants return 422 GrantPassphraseRequired until passphrase is supplied. A grant that asks its visitors who they are on open returns 422 VisitorIdentityRequired until the required answers are given; error.details carries fields (what the grant asks), missing, invalid, purpose and privacyUrl. A grant that asks before the first change issues the session at once with visitor.identityRequest, and writes answer 403 VisitorIdentityRequired with the same details until the visitor exchanges again with their answers. Answers that can not be taken answer 422 on any grant. Mounted only when the deployment can sign (HS256 mode).

🔌 Usage

client.grants().exchange(
    GrantsExchangeRequest
        .builder()
        .grant("grant")
        .build()
);

⚙️ Parameters

grant: String

passphrase: Optional<String>

visitorHandle: Optional<String>

restart: Optional<Boolean>

visitorIdentity: Optional<GrantsExchangeRequestVisitorIdentity>

client.grants.list(tenantId) -> GrantsListResponse

🔌 Usage

client.grants().list(
    "tenantId",
    ListGrantsRequest
        .builder()
        .build()
);

⚙️ Parameters

tenantId: String

limit: Optional<Integer>

cursor: Optional<String>

docId: Optional<String>

archived: Optional<Boolean>

client.grants.create(tenantId, request) -> GrantsCreateResponse

📝 Description

The returned id is what a link page or an embed opens. Its scope gives only document permissions the caller holds itself, as tokens.issue does. Mounted only when the deployment can sign (HS256 mode) — exchange mints session JWTs, so grants exist only where minting does.

🔌 Usage

client.grants().create(
    "tenantId",
    GrantsCreateRequest
        .builder()
        .docId("docId")
        .scope(
            Arrays.asList("scope")
        )
        .build()
);

⚙️ Parameters

tenantId: String

docId: String

name: Optional<String>

layerMode: Optional<GrantsCreateRequestLayerMode>

layerName: Optional<String>

keepVisitorLayers: Optional<Boolean>

visitorIdleSeconds: Optional<Integer>

visitorIdentity: Optional<GrantsCreateRequestVisitorIdentity>

identity: Optional<Identity>

scope: List<String>

origins: Optional<List<String>>

passphrase: Optional<String>

sessionTtlSeconds: Optional<Integer>

expiresAt: Optional<OffsetDateTime>

client.grants.get(tenantId, grantId) -> GrantsGetResponse

🔌 Usage

client.grants().get(
    "tenantId",
    "grantId",
    GetGrantsRequest
        .builder()
        .build()
);

⚙️ Parameters

tenantId: String

grantId: String

client.grants.delete(tenantId, grantId)

🔌 Usage

client.grants().delete(
    "tenantId",
    "grantId",
    DeleteGrantsRequest
        .builder()
        .build()
);

⚙️ Parameters

tenantId: String

grantId: String

client.grants.update(tenantId, grantId, request) -> GrantsUpdateResponse

🔌 Usage

client.grants().update(
    "tenantId",
    "grantId",
    GrantsUpdateRequest
        .builder()
        .build()
);

⚙️ Parameters

tenantId: String

grantId: String

name: Optional<String>

layerMode: Optional<GrantsUpdateRequestLayerMode>

layerName: Optional<String>

keepVisitorLayers: Optional<Boolean>

visitorIdleSeconds: Optional<Integer>

visitorIdentity: Optional<GrantsUpdateRequestVisitorIdentity>

identity: Optional<Identity>

scope: Optional<List<String>>

origins: Optional<List<String>>

passphrase: Optional<String>

sessionTtlSeconds: Optional<Integer>

disabled: Optional<Boolean>

expiresAt: Optional<OffsetDateTime>

client.grants.archive(tenantId, grantId) -> GrantsArchiveResponse

📝 Description

Archiving is final: an archived grant never exchanges again, and to give access again you create a new grant. Pausing (disabled) is the reversible stop. An archived grant no longer counts as using its shared layer, so that layer can be deleted.

🔌 Usage

client.grants().archive(
    "tenantId",
    "grantId",
    ArchiveGrantsRequest
        .builder()
        .build()
);

⚙️ Parameters

tenantId: String

grantId: String

Tenants

client.tenants.list() -> TenantsListResponse

🔌 Usage

client.tenants().list(
    ListTenantsRequest
        .builder()
        .build()
);

⚙️ Parameters

limit: Optional<Integer>

cursor: Optional<String>

client.tenants.create(request) -> TenantsCreateResponse

🔌 Usage

client.tenants().create(
    TenantsCreateRequest
        .builder()
        .id("id")
        .build()
);

⚙️ Parameters

id: String

name: Optional<String>

client.tenants.get(tenantId) -> TenantsGetResponse

🔌 Usage

client.tenants().get(
    "tenantId",
    GetTenantsRequest
        .builder()
        .build()
);

⚙️ Parameters

tenantId: String

client.tenants.delete(tenantId)

📝 Description

Destroys the tenant and everything in its namespace — documents, layers, stored bytes, audit history. Irreversible.

🔌 Usage

client.tenants().delete(
    "tenantId",
    DeleteTenantsRequest
        .builder()
        .build()
);

⚙️ Parameters

tenantId: String

client.tenants.update(tenantId, request) -> TenantsUpdateResponse

📝 Description

A feature names an installed module; any other id is a 400. A module route answers a tenant without its feature 403 FeatureNotEnabled, and one whose feature is stopped 402 FeatureStopped (details.feature, details.stopped). Other replicas apply a change within 30 seconds.

🔌 Usage

client.tenants().update(
    "tenantId",
    TenantsUpdateRequest
        .builder()
        .features(
            Arrays.asList(
                TenantFeature
                    .builder()
                    .id("id")
                    .build()
            )
        )
        .build()
);

⚙️ Parameters

tenantId: String

features: List<TenantFeature>

client.tenants.resume(tenantId)

🔌 Usage

client.tenants().resume(
    "tenantId",
    ResumeTenantsRequest
        .builder()
        .build()
);

⚙️ Parameters

tenantId: String

client.tenants.suspend(tenantId, request)

📝 Description

Instantly reversible with resume. The API token is exempt, so a suspended tenant can still be inspected, exported, resumed, or deleted.

🔌 Usage

client.tenants().suspend(
    "tenantId",
    TenantsSuspendRequest
        .builder()
        .build()
);

⚙️ Parameters

tenantId: String

reason: Optional<String>

client.tenants.usage(tenantId) -> TenantsUsageResponse

📝 Description

Facts only — no limits or billing state. Views count grant exchanges plus authorized /v1/access requests, deduplicated across the two.

🔌 Usage

client.tenants().usage(
    "tenantId",
    UsageTenantsRequest
        .builder()
        .build()
);

⚙️ Parameters

tenantId: String

period: Optional<String>

from: Optional<String>

to: Optional<String>

Documents

client.documents.list(tenantId) -> DocumentsListResponse

🔌 Usage

client.documents().list(
    "tenantId",
    ListDocumentsRequest
        .builder()
        .build()
);

⚙️ Parameters

tenantId: String

limit: Optional<Integer>

cursor: Optional<String>

state: Optional<ListDocumentsRequestState> — Only documents in this state. Without it, every state except deleting.

q: Optional<String> — Only documents whose name contains this text, ignoring case.

folderId: Optional<String> — Only documents directly in this folder (root: the top level). Without it, documents in every folder.

sort: Optional<ListDocumentsRequestSort> — createdAt (default), name (ignoring case), or size (stored bytes; 0 while pending).

order: Optional<ListDocumentsRequestOrder> — Defaults to the reading order of the sort: A to Z for name, newest and largest first otherwise.

client.documents.get(tenantId, docId) -> DocumentsGetResponse

🔌 Usage

client.documents().get(
    "tenantId",
    "docId",
    GetDocumentsRequest
        .builder()
        .build()
);

⚙️ Parameters

tenantId: String

docId: String

client.documents.delete(tenantId, docId)

🔌 Usage

client.documents().delete(
    "tenantId",
    "docId",
    DeleteDocumentsRequest
        .builder()
        .build()
);

⚙️ Parameters

tenantId: String

docId: String

client.documents.update(tenantId, docId, request) -> DocumentsUpdateResponse

📝 Description

A document that is being deleted answers 404.

🔌 Usage

client.documents().update(
    "tenantId",
    "docId",
    DocumentsUpdateRequest
        .builder()
        .name("name")
        .build()
);

⚙️ Parameters

tenantId: String

docId: String

name: String — What people call the document: shown in dashboards, searched and sorted by. 1 to 255 characters, no control characters, no leading or trailing whitespace. Names need not be unique.

client.documents.commit(tenantId, docId, request) -> DocumentsCommitResponse

📝 Description

An upload token commits only the documents it started; any other document answers 404.

🔌 Usage

client.documents().commit(
    "tenantId",
    "docId",
    DocumentsCommitRequest
        .builder()
        .sha256("sha256")
        .build()
);

⚙️ Parameters

tenantId: String

docId: String

sha256: String

client.documents.download(tenantId, docId) -> InputStream

🔌 Usage

client.documents().download(
    "tenantId",
    "docId",
    DownloadDocumentsRequest
        .builder()
        .build()
);

⚙️ Parameters

tenantId: String

docId: String

client.documents.thumbnail(tenantId, docId) -> InputStream

🔌 Usage

client.documents().thumbnail(
    "tenantId",
    "docId",
    ThumbnailDocumentsRequest
        .builder()
        .build()
);

⚙️ Parameters

tenantId: String

docId: String

client.documents.uploadProxy(tenantId, docId, request) -> DocumentsUploadProxyResponse

📝 Description

This bounded origin-mediated fallback must only be used after documents.init returns upload.kind=proxy. Auto mode prefers a presigned object-store PUT whenever available. An upload token sends files only to the documents it started.

🔌 Usage

client.documents().uploadProxy(
    "tenantId",
    "docId",
    null,
    UploadProxyDocumentsRequest
        .builder()
        .build()
);

⚙️ Parameters

tenantId: String

docId: String

client.documents.importFrom(tenantId, request) -> DocumentsImportFrom200Response

📝 Description

Default mode is synchronous and bounded: the response returns only after the transfer verified and committed (or failed). mode=async (connection sources only) answers 202 immediately and an in-process worker performs the transfer with leased, fenced retries; poll the document until ready/failed. The deployment import policy gates scheme, network range, and size; sources must declare a length. CloudPDF copies and owns the bytes — the source is never referenced in place. A 502 marks a retryable upstream failure: retry with the same idempotencyKey to resume the same document. URL sources are capabilities and never echoed back. Connection sources name operator-registered storage (bucket/prefix scope, allowed credential classes, and tenant bindings are deployment configuration); revision is provider-interpreted (S3 VersionId, GCS generation, Azure version id).

🔌 Usage

client.documents().importFrom(
    "tenantId",
    DocumentsImportFromRequest
        .builder()
        .source(
            DocumentsImportFromRequestSource.url(
                DocumentsImportFromRequestSourceUrl
                    .builder()
                    .url("url")
                    .build()
            )
        )
        .build()
);

⚙️ Parameters

tenantId: String

source: DocumentsImportFromRequestSource — Where CloudPDF pulls the bytes from. The two shapes differ in who supplies the authority to read, not in which storage vendor holds the file.

expected: Optional<DocumentsImportFromRequestExpected> — Integrity pins, enforced when present. When absent, the server-observed values become authoritative.

name: Optional<String> — What people call the document: shown in dashboards, searched and sorted by. 1 to 255 characters, no control characters, no leading or trailing whitespace. Names need not be unique.

folderId: Optional<String> — A folder id, or root for the top level.

metadata: Optional<Map<String, Object>>

idempotencyKey: Optional<String> — Retrying with the same key resumes the same document rather than importing a second copy — including after a 502.

dedupMode: Optional<DocumentsImportFromRequestDedupMode> — always-create (default) creates a new document every time. reuse-existing returns a document that already holds the same content instead of storing it twice.

docId: Optional<String>

mode: Optional<DocumentsImportFromRequestMode> — sync (default) holds the response open for the whole transfer. async answers 202 with the document pending and transfers in the background; it requires a connection source, and filesystem connections additionally require expected.sha256.

client.documents.init(tenantId, request) -> DocumentsInitResponse

📝 Description

With an upload token, the document goes into the token's folder with the token's metadata, whatever the request says; sizeBytes must be within the token's maxBytes, and the token makes at most maxFiles documents (403 after). docId, idempotencyKey and dedupMode reuse-existing are refused (400): each could reach a document the token didn't make.

🔌 Usage

client.documents().init(
    "tenantId",
    DocumentsInitRequest
        .builder()
        .sizeBytes(1)
        .contentSha256("contentSha256")
        .build()
);

⚙️ Parameters

tenantId: String

sizeBytes: Integer

contentSha256: String

name: Optional<String> — What people call the document: shown in dashboards, searched and sorted by. 1 to 255 characters, no control characters, no leading or trailing whitespace. Names need not be unique.

folderId: Optional<String> — A folder id, or root for the top level.

metadata: Optional<Map<String, Object>>

idempotencyKey: Optional<String>

dedupMode: Optional<DocumentsInitRequestDedupMode> — always-create (default) creates a new document every time. reuse-existing returns a document that already holds the same content instead of storing it twice.

docId: Optional<String>

uploadTtlSeconds: Optional<Integer>

uploadPreference: Optional<DocumentsInitRequestUploadPreference>

Folders

client.folders.list(tenantId) -> FoldersListResponse

🔌 Usage

client.folders().list(
    "tenantId",
    ListFoldersRequest
        .builder()
        .build()
);

⚙️ Parameters

tenantId: String

limit: Optional<Integer>

cursor: Optional<String>

parentId: Optional<String> — Only the folders directly in this folder (root: the top level). Without it, every folder.

client.folders.create(tenantId, request) -> FoldersCreateResponse

📝 Description

409 Conflict carries details.reason: name-taken (a sibling has the name, ignoring case; details.name) or too-deep (folders nest at most 100 levels; details.maxDepth). 404 when the parent folder does not exist.

🔌 Usage

client.folders().create(
    "tenantId",
    FoldersCreateRequest
        .builder()
        .name("name")
        .build()
);

⚙️ Parameters

tenantId: String

name: String — What people call the folder: 1 to 255 characters, no control characters, no leading or trailing whitespace, and unique among the folder's siblings, ignoring case.

parentId: Optional<String> — A folder id, or root for the top level.

client.folders.get(tenantId, folderId) -> FoldersGetResponse

🔌 Usage

client.folders().get(
    "tenantId",
    "folderId",
    GetFoldersRequest
        .builder()
        .build()
);

⚙️ Parameters

tenantId: String

folderId: String

client.folders.delete(tenantId, folderId)

📝 Description

Without recursive, a folder with anything inside is refused: 409 Conflict with details.reason not-empty and what it holds, counted over every level below, in details.folders and details.documents. With recursive=true, the folder and every folder under it go at once, and every document in them stops opening, leaves every list and stops answering its grants at once; their stored files and grants are removed in the background. Uploads into those folders that have not committed cannot commit.

🔌 Usage

client.folders().delete(
    "tenantId",
    "folderId",
    DeleteFoldersRequest
        .builder()
        .build()
);

⚙️ Parameters

tenantId: String

folderId: String

recursive: Optional<Boolean> — true deletes everything in the folder too. Never the default.

client.folders.update(tenantId, folderId, request) -> FoldersUpdateResponse

📝 Description

409 Conflict with details.reason name-taken when a sibling has the name, ignoring case.

🔌 Usage

client.folders().update(
    "tenantId",
    "folderId",
    FoldersUpdateRequest
        .builder()
        .name("name")
        .build()
);

⚙️ Parameters

tenantId: String

folderId: String

name: String — What people call the folder: 1 to 255 characters, no control characters, no leading or trailing whitespace, and unique among the folder's siblings, ignoring case.

client.folders.moveInto(tenantId, folderId, request)

📝 Description

Up to 1,000 ids in total. A folder moves with everything in it. 404 NotFound names the ids that do not exist or are being deleted in details.docIds and details.folderIds. 409 Conflict carries details.reason: cycle (the destination is a moved folder or inside one; details.folderId), too-deep (the move would nest folders deeper than 100 levels; details.maxDepth) or name-taken (a moved folder's name is taken in the destination, ignoring case; details.name).

🔌 Usage

client.folders().moveInto(
    "tenantId",
    "folderId",
    FoldersMoveIntoRequest
        .builder()
        .build()
);

⚙️ Parameters

tenantId: String

folderId: String — A folder id, or root for the top level.

docIds: Optional<List<String>>

folderIds: Optional<List<String>>

Tokens

client.tokens.issue(tenantId, request) -> TokensIssueResponse

📝 Description

Authority mints only downward: kind "doc" gives only document permissions the caller holds itself, kind "tenant" requires the API token, and kind "upload" requires docs.create instead of tokens.issue-doc, since an upload token can do only what docs.create allows. Mounted only when the deployment can sign (HS256 mode); asymmetric deployments mint with their own private key.

🔌 Usage

client.tokens().issue(
    "tenantId",
    IssueTokensRequest
        .builder()
        .body(
            TokensIssueRequest.doc(
                TokensIssueRequestDoc
                    .builder()
                    .sub("sub")
                    .docId("docId")
                    .expiresInSeconds(1)
                    .scope(
                        Arrays.asList("scope")
                    )
                    .build()
            )
        )
        .build()
);

⚙️ Parameters

tenantId: String

request: TokensIssueRequest

client.tokens.revoke(tenantId, jti, request)

📝 Description

Mounted only when the deployment enables token revocation.

🔌 Usage

client.tokens().revoke(
    "tenantId",
    "jti",
    TokensRevokeRequest
        .builder()
        .build()
);

⚙️ Parameters

tenantId: String

jti: String

reason: Optional<String>

expiresAt: Optional<OffsetDateTime>

Doc Annotations

client.doc.annotations.listAll(docId, layerName) -> AnnotationList

📝 Description

Returns one entry per page plus the audit-log cursor for reconciling subsequent document events. Page order is unspecified; join by page (a PageRef) when display order matters.

🔌 Usage

client.doc().annotations().listAll(
    "docId",
    "layerName",
    ListAllAnnotationsRequest
        .builder()
        .build()
);

⚙️ Parameters

docId: String

layerName: String

documentPassword: Optional<String> — 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.

client.doc.annotations.list(docId, layerName, pageKey) -> AnnotationList

🔌 Usage

client.doc().annotations().list(
    "docId",
    "layerName",
    "pageKey",
    ListAnnotationsRequest
        .builder()
        .build()
);

⚙️ Parameters

docId: String

layerName: String

pageKey: String — The page's address, obj:N: the page's indirect object number, the durable identity every PageLayout.ref carries. Mirrors annotationKey and fieldKey.

documentPassword: Optional<String> — 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.

client.doc.annotations.create(docId, layerName, pageKey, request) -> DocAnnotationsCreateResponse

📝 Description

Doc JWTs may instead carry collab scopes (annotations:create:self, …) that refine per-annotation authorship rules; the API token is exempt from both.

🔌 Usage

client.doc().annotations().create(
    "docId",
    "layerName",
    "pageKey",
    CreateAnnotationsRequest
        .builder()
        .body(
            new HashMap<String, Object>() {{
                put("key", "value");
            }}
        )
        .build()
);

⚙️ Parameters

docId: String

layerName: String

pageKey: String — The page's address, obj:N: the page's indirect object number, the durable identity every PageLayout.ref carries. Mirrors annotationKey and fieldKey.

documentPassword: Optional<String> — 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.

idempotencyKey: Optional<String> — Names the change: 1 to 255 printable ASCII characters. A retry under the same key on the same layer answers with what the first request committed, and changes nothing.

request: Map<String, Object>

client.doc.annotations.delete(docId, layerName, pageKey, annotationKey) -> DocAnnotationsDeleteResponse

🔌 Usage

client.doc().annotations().delete(
    "docId",
    "layerName",
    "pageKey",
    "annotationKey",
    DeleteAnnotationsRequest
        .builder()
        .build()
);

⚙️ Parameters

docId: String

layerName: String

pageKey: String — The page's address, obj:N: the page's indirect object number, the durable identity every PageLayout.ref carries. Mirrors annotationKey and fieldKey.

annotationKey: String — The annotation's address on the page: obj:N, its indirect object number, or base:N for an annotation the uploaded file stored inline (without an object number of its own), the position it was born at in the page's /Annots. The name the annotation's ref carries for life.

documentPassword: Optional<String> — 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.

idempotencyKey: Optional<String> — Names the change: 1 to 255 printable ASCII characters. A retry under the same key on the same layer answers with what the first request committed, and changes nothing.

client.doc.annotations.update(docId, layerName, pageKey, annotationKey, request) -> DocAnnotationsUpdateResponse

🔌 Usage

client.doc().annotations().update(
    "docId",
    "layerName",
    "pageKey",
    "annotationKey",
    UpdateAnnotationsRequest
        .builder()
        .body(
            new HashMap<String, Object>() {{
                put("key", "value");
            }}
        )
        .build()
);

⚙️ Parameters

docId: String

layerName: String

pageKey: String — The page's address, obj:N: the page's indirect object number, the durable identity every PageLayout.ref carries. Mirrors annotationKey and fieldKey.

annotationKey: String — The annotation's address on the page: obj:N, its indirect object number, or base:N for an annotation the uploaded file stored inline (without an object number of its own), the position it was born at in the page's /Annots. The name the annotation's ref carries for life.

documentPassword: Optional<String> — 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.

idempotencyKey: Optional<String> — Names the change: 1 to 255 printable ASCII characters. A retry under the same key on the same layer answers with what the first request committed, and changes nothing.

request: Map<String, Object>

client.doc.annotations.readAppearance(docId, layerName, pageKey, annotationKey) -> InputStream

🔌 Usage

client.doc().annotations().readAppearance(
    "docId",
    "layerName",
    "pageKey",
    "annotationKey",
    ReadAppearanceAnnotationsRequest
        .builder()
        .build()
);

⚙️ Parameters

docId: String

layerName: String

pageKey: String — The page's address, obj:N: the page's indirect object number, the durable identity every PageLayout.ref carries. Mirrors annotationKey and fieldKey.

annotationKey: String — The annotation's address on the page: obj:N, its indirect object number, or base:N for an annotation the uploaded file stored inline (without an object number of its own), the position it was born at in the page's /Annots. The name the annotation's ref carries for life.

documentPassword: Optional<String> — 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.

client.doc.annotations.readFile(docId, layerName, pageKey, annotationKey) -> InputStream

📝 Description

A file that decodes past the server's limit is refused (PayloadTooLarge).

🔌 Usage

client.doc().annotations().readFile(
    "docId",
    "layerName",
    "pageKey",
    "annotationKey",
    ReadFileAnnotationsRequest
        .builder()
        .build()
);

⚙️ Parameters

docId: String

layerName: String

pageKey: String — The page's address, obj:N: the page's indirect object number, the durable identity every PageLayout.ref carries. Mirrors annotationKey and fieldKey.

annotationKey: String — The annotation's address on the page: obj:N, its indirect object number, or base:N for an annotation the uploaded file stored inline (without an object number of its own), the position it was born at in the page's /Annots. The name the annotation's ref carries for life.

documentPassword: Optional<String> — 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.

client.doc.annotations.exportAppearance(docId, layerName, pageKey, request) -> InputStream

🔌 Usage

client.doc().annotations().exportAppearance(
    "docId",
    "layerName",
    "pageKey",
    ExportAppearanceAnnotationsRequest
        .builder()
        .body(
            new HashMap<String, Object>() {{
                put("string", new 
                HashMap<String, Object>() {{put("key", "value");
                }});
            }}
        )
        .build()
);

⚙️ Parameters

docId: String

layerName: String

pageKey: String — The page's address, obj:N: the page's indirect object number, the durable identity every PageLayout.ref carries. Mirrors annotationKey and fieldKey.

documentPassword: Optional<String> — 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.

request: Map<String, Object>

client.doc.annotations.flatten(docId, layerName, pageKey, request) -> DocAnnotationsFlattenResponse

🔌 Usage

client.doc().annotations().flatten(
    "docId",
    "layerName",
    "pageKey",
    FlattenAnnotationsRequest
        .builder()
        .body(
            new HashMap<String, Object>() {{
                put("key", "value");
            }}
        )
        .build()
);

⚙️ Parameters

docId: String

layerName: String

pageKey: String — The page's address, obj:N: the page's indirect object number, the durable identity every PageLayout.ref carries. Mirrors annotationKey and fieldKey.

documentPassword: Optional<String> — 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.

idempotencyKey: Optional<String> — Names the change: 1 to 255 printable ASCII characters. A retry under the same key on the same layer answers with what the first request committed, and changes nothing.

request: Map<String, Object>

client.doc.annotations.reorder(docId, layerName, pageKey, request) -> DocAnnotationsReorderResponse

🔌 Usage

client.doc().annotations().reorder(
    "docId",
    "layerName",
    "pageKey",
    DocAnnotationsReorderRequest
        .builder()
        .position(
            AnnotationPosition.of(AnnotationPositionZero.START)
        )
        .refs(
            Arrays.asList(
                AnnotationRef.objectNumber(
                    AnnotationRefObjectNumber
                        .builder()
                        .page(
                            PageRef
                                .builder()
                                .kind(PageRefKind.OBJECT_NUMBER)
                                .objectNumber(1)
                                .build()
                        )
                        .objectNumber(1)
                        .build()
                )
            )
        )
        .build()
);

⚙️ Parameters

docId: String

layerName: String

pageKey: String — The page's address, obj:N: the page's indirect object number, the durable identity every PageLayout.ref carries. Mirrors annotationKey and fieldKey.

documentPassword: Optional<String> — 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.

idempotencyKey: Optional<String> — Names the change: 1 to 255 printable ASCII characters. A retry under the same key on the same layer answers with what the first request committed, and changes nothing.

refs: List<AnnotationRef>

position: AnnotationPosition

Doc Attachments

client.doc.attachments.download(docId, layerName, fileKey) -> InputStream

📝 Description

A file that decodes past the server's limit is refused (PayloadTooLarge).

🔌 Usage

client.doc().attachments().download(
    "docId",
    "layerName",
    "fileKey",
    DownloadAttachmentsRequest
        .builder()
        .build()
);

⚙️ Parameters

docId: String

layerName: String

fileKey: String — The embedded file's name-tree key (its ref.key), token-text encoded, as fieldKey is.

documentPassword: Optional<String> — 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.

client.doc.attachments.list(docId, layerName) -> AttachmentList

📝 Description

A file-attachment annotation's file is listed with the annotation; read its bytes with doc.annotations.readFile.

🔌 Usage

client.doc().attachments().list(
    "docId",
    "layerName",
    ListAttachmentsRequest
        .builder()
        .build()
);

⚙️ Parameters

docId: String

layerName: String

documentPassword: Optional<String> — 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.

Doc Fonts

client.doc.fonts.list(docId, layerName) -> FontList

🔌 Usage

client.doc().fonts().list(
    "docId",
    "layerName",
    ListFontsRequest
        .builder()
        .build()
);

⚙️ Parameters

docId: String

layerName: String

documentPassword: Optional<String> — 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.

client.doc.fonts.resolve(docId, layerName, request) -> FontResolution

🔌 Usage

client.doc().fonts().resolve(
    "docId",
    "layerName",
    ResolveFontsRequest
        .builder()
        .body(
            FontResolveRequest
                .builder()
                .runs(
                    Arrays.asList(
                        FontResolveRun
                            .builder()
                            .text("text")
                            .build()
                    )
                )
                .build()
        )
        .build()
);

⚙️ Parameters

docId: String

layerName: String

documentPassword: Optional<String> — 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.

request: FontResolveRequest

Doc Forms

client.doc.forms.list(docId, layerName) -> DocFormsListResponse

🔌 Usage

client.doc().forms().list(
    "docId",
    "layerName",
    ListFormsRequest
        .builder()
        .build()
);

⚙️ Parameters

docId: String

layerName: String

documentPassword: Optional<String> — 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.

client.doc.forms.reorderCalculations(docId, layerName, request) -> DocFormsReorderCalculationsResponse

🔌 Usage

client.doc().forms().reorderCalculations(
    "docId",
    "layerName",
    DocFormsReorderCalculationsRequest
        .builder()
        .position(
            FieldPosition.of(FieldPositionZero.START)
        )
        .fields(
            Arrays.asList(
                FormFieldRef.objectNumber(
                    FormFieldRefObjectNumber
                        .builder()
                        .objectNumber(1)
                        .build()
                )
            )
        )
        .build()
);

⚙️ Parameters

docId: String

layerName: String

documentPassword: Optional<String> — 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.

idempotencyKey: Optional<String> — Names the change: 1 to 255 printable ASCII characters. A retry under the same key on the same layer answers with what the first request committed, and changes nothing.

fields: List<FormFieldRef>

position: FieldPosition

client.doc.forms.setValue(docId, layerName, fieldKey, request) -> DocFormsSetValueResponse

🔌 Usage

client.doc().forms().setValue(
    "docId",
    "layerName",
    "fieldKey",
    SetValueFormsRequest
        .builder()
        .body(
            new HashMap<String, Object>() {{
                put("key", "value");
            }}
        )
        .build()
);

⚙️ Parameters

docId: String

layerName: String

fieldKey: String

documentPassword: Optional<String> — 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.

idempotencyKey: Optional<String> — Names the change: 1 to 255 printable ASCII characters. A retry under the same key on the same layer answers with what the first request committed, and changes nothing.

request: Map<String, Object>

client.doc.forms.reset(docId, layerName, request) -> DocFormsResetResponse

🔌 Usage

client.doc().forms().reset(
    "docId",
    "layerName",
    DocFormsResetRequest
        .builder()
        .build()
);

⚙️ Parameters

docId: String

layerName: String

documentPassword: Optional<String> — 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.

idempotencyKey: Optional<String> — Names the change: 1 to 255 printable ASCII characters. A retry under the same key on the same layer answers with what the first request committed, and changes nothing.

refs: Optional<List<FormFieldRef>>

client.doc.forms.deleteWidget(docId, layerName, pageKey, annotationKey) -> DocFormsDeleteWidgetResponse

🔌 Usage

client.doc().forms().deleteWidget(
    "docId",
    "layerName",
    "pageKey",
    "annotationKey",
    DeleteWidgetFormsRequest
        .builder()
        .build()
);

⚙️ Parameters

docId: String

layerName: String

pageKey: String — The page's address, obj:N: the page's indirect object number, the durable identity every PageLayout.ref carries. Mirrors annotationKey and fieldKey.

annotationKey: String — The annotation's address on the page: obj:N, its indirect object number, or base:N for an annotation the uploaded file stored inline (without an object number of its own), the position it was born at in the page's /Annots. The name the annotation's ref carries for life.

documentPassword: Optional<String> — 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.

idempotencyKey: Optional<String> — Names the change: 1 to 255 printable ASCII characters. A retry under the same key on the same layer answers with what the first request committed, and changes nothing.

client.doc.forms.updateWidget(docId, layerName, pageKey, annotationKey, request) -> DocFormsUpdateWidgetResponse

🔌 Usage

client.doc().forms().updateWidget(
    "docId",
    "layerName",
    "pageKey",
    "annotationKey",
    DocFormsUpdateWidgetRequest
        .builder()
        .patch(
            WidgetPatch
                .builder()
                .build()
        )
        .build()
);

⚙️ Parameters

docId: String

layerName: String

pageKey: String — The page's address, obj:N: the page's indirect object number, the durable identity every PageLayout.ref carries. Mirrors annotationKey and fieldKey.

annotationKey: String — The annotation's address on the page: obj:N, its indirect object number, or base:N for an annotation the uploaded file stored inline (without an object number of its own), the position it was born at in the page's /Annots. The name the annotation's ref carries for life.

documentPassword: Optional<String> — 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.

idempotencyKey: Optional<String> — Names the change: 1 to 255 printable ASCII characters. A retry under the same key on the same layer answers with what the first request committed, and changes nothing.

patch: WidgetPatch

client.doc.forms.reorderWidgets(docId, layerName, pageKey, request) -> DocFormsReorderWidgetsResponse

🔌 Usage

client.doc().forms().reorderWidgets(
    "docId",
    "layerName",
    "pageKey",
    DocFormsReorderWidgetsRequest
        .builder()
        .position(
            AnnotationPosition.of(AnnotationPositionZero.START)
        )
        .widgets(
            Arrays.asList(
                AnnotationRef.objectNumber(
                    AnnotationRefObjectNumber
                        .builder()
                        .page(
                            PageRef
                                .builder()
                                .kind(PageRefKind.OBJECT_NUMBER)
                                .objectNumber(1)
                                .build()
                        )
                        .objectNumber(1)
                        .build()
                )
            )
        )
        .build()
);

⚙️ Parameters

docId: String

layerName: String

pageKey: String — The page's address, obj:N: the page's indirect object number, the durable identity every PageLayout.ref carries. Mirrors annotationKey and fieldKey.

documentPassword: Optional<String> — 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.

idempotencyKey: Optional<String> — Names the change: 1 to 255 printable ASCII characters. A retry under the same key on the same layer answers with what the first request committed, and changes nothing.

widgets: List<AnnotationRef>

position: AnnotationPosition

Doc Metadata

client.doc.metadata.get(docId, layerName) -> DocumentMetadata

🔌 Usage

client.doc().metadata().get(
    "docId",
    "layerName",
    GetMetadataRequest
        .builder()
        .build()
);

⚙️ Parameters

docId: String

layerName: String

documentPassword: Optional<String> — 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.

Doc Outline

client.doc.outline.get(docId, layerName) -> DocumentOutline

🔌 Usage

client.doc().outline().get(
    "docId",
    "layerName",
    GetOutlineRequest
        .builder()
        .build()
);

⚙️ Parameters

docId: String

layerName: String

documentPassword: Optional<String> — 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.

Doc Pages

client.doc.pages.setScale(docId, layerName, pageKey, request) -> DocPagesSetScaleResponse

🔌 Usage

client.doc().pages().setScale(
    "docId",
    "layerName",
    "pageKey",
    DocPagesSetScaleRequest
        .builder()
        .build()
);

⚙️ Parameters

docId: String

layerName: String

pageKey: String — The page's address, obj:N: the page's indirect object number, the durable identity every PageLayout.ref carries. Mirrors annotationKey and fieldKey.

documentPassword: Optional<String> — 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.

idempotencyKey: Optional<String> — Names the change: 1 to 255 printable ASCII characters. A retry under the same key on the same layer answers with what the first request committed, and changes nothing.

measure: Optional<DocPagesSetScaleRequestMeasure>

client.doc.pages.viewports(docId, layerName, pageKey) -> DocPagesViewportsResponse

🔌 Usage

client.doc().pages().viewports(
    "docId",
    "layerName",
    "pageKey",
    ViewportsPagesRequest
        .builder()
        .build()
);

⚙️ Parameters

docId: String

layerName: String

pageKey: String — The page's address, obj:N: the page's indirect object number, the durable identity every PageLayout.ref carries. Mirrors annotationKey and fieldKey.

documentPassword: Optional<String> — 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.

client.doc.pages.extract(docId, layerName, request) -> InputStream

📝 Description

A read, not a mutation: the source document is untouched and no event is published. Body is {"pages": PageRef[], "flatten"?: {"usage"?: "display" | "print"}, "includeAnnotations"?: boolean, "includeFormFields"?: boolean}; the response body is the new PDF. With flatten the copy is the pages as they draw for usage ("print": a print copy): the annotations and form fields painted in, nothing interactive left, layers in their state for the usage. A flattened copy takes doc.download or doc.download.flattened, and paints only what the caller may read; includeAnnotations and includeFormFields choose what it paints, and are refused without flatten.

🔌 Usage

client.doc().pages().extract(
    "docId",
    "layerName",
    ExtractPagesRequest
        .builder()
        .body(
            new HashMap<String, Object>() {{
                put("string", new 
                HashMap<String, Object>() {{put("key", "value");
                }});
            }}
        )
        .build()
);

⚙️ Parameters

docId: String

layerName: String

documentPassword: Optional<String> — 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.

request: Map<String, Object>

client.doc.pages.flatten(docId, layerName, request) -> DocPagesFlattenResponse

🔌 Usage

client.doc().pages().flatten(
    "docId",
    "layerName",
    FlattenPagesRequest
        .builder()
        .body(
            new HashMap<String, Object>() {{
                put("key", "value");
            }}
        )
        .build()
);

⚙️ Parameters

docId: String

layerName: String

documentPassword: Optional<String> — 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.

idempotencyKey: Optional<String> — Names the change: 1 to 255 printable ASCII characters. A retry under the same key on the same layer answers with what the first request committed, and changes nothing.

request: Map<String, Object>

client.doc.pages.setName(docId, layerName, request) -> DocPagesSetNameResponse

🔌 Usage

client.doc().pages().setName(
    "docId",
    "layerName",
    SetNamePagesRequest
        .builder()
        .body(
            new HashMap<String, Object>() {{
                put("key", "value");
            }}
        )
        .build()
);

⚙️ Parameters

docId: String

layerName: String

documentPassword: Optional<String> — 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.

idempotencyKey: Optional<String> — Names the change: 1 to 255 printable ASCII characters. A retry under the same key on the same layer answers with what the first request committed, and changes nothing.

request: Map<String, Object>

client.doc.pages.removeName(docId, layerName, request) -> DocPagesRemoveNameResponse

🔌 Usage

client.doc().pages().removeName(
    "docId",
    "layerName",
    RemoveNamePagesRequest
        .builder()
        .body(
            new HashMap<String, Object>() {{
                put("key", "value");
            }}
        )
        .build()
);

⚙️ Parameters

docId: String

layerName: String

documentPassword: Optional<String> — 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.

idempotencyKey: Optional<String> — Names the change: 1 to 255 printable ASCII characters. A retry under the same key on the same layer answers with what the first request committed, and changes nothing.

request: Map<String, Object>

Doc Redactions

client.doc.redactions.apply(docId, layerName, request) -> DocRedactionsApplyResponse

🔌 Usage

client.doc().redactions().apply(
    "docId",
    "layerName",
    DocRedactionsApplyRequest
        .builder()
        .build()
);

⚙️ Parameters

docId: String

layerName: String

documentPassword: Optional<String> — 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.

idempotencyKey: Optional<String> — Names the change: 1 to 255 printable ASCII characters. A retry under the same key on the same layer answers with what the first request committed, and changes nothing.

pages: Optional<List<PageRef>>

annotations: Optional<List<AnnotationRef>>

Doc Signatures

client.doc.signatures.list(docId, layerName) -> DocSignaturesListResponse

📝 Description

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.

🔌 Usage

client.doc().signatures().list(
    "docId",
    "layerName",
    ListSignaturesRequest
        .builder()
        .build()
);

⚙️ Parameters

docId: String

layerName: String

documentPassword: Optional<String> — 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.

client.doc.signatures.cancel(docId, layerName, signingId) -> DocSignaturesCancelResponse

🔌 Usage

client.doc().signatures().cancel(
    "docId",
    "layerName",
    "signingId",
    CancelSignaturesRequest
        .builder()
        .build()
);

⚙️ Parameters

docId: String

layerName: String

signingId: String

documentPassword: Optional<String> — 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.

client.doc.signatures.complete(docId, layerName, signingId, request) -> DocSignaturesCompleteResponse

📝 Description

cms is the detached CMS over the prepared digest, base64. expectedVersion must be what prepare returned. Idempotent by signing id: the same CMS again answers already-completed. The new version is the layer's own: only this layer moves to it, and the document and every other layer stay as they were. Refetch the manifest after a completion.

🔌 Usage

client.doc().signatures().complete(
    "docId",
    "layerName",
    "signingId",
    DocSignaturesCompleteRequest
        .builder()
        .cms("cms")
        .expectedVersion(
            DocSignaturesCompleteRequestExpectedVersion
                .builder()
                .baseSha256("baseSha256")
                .editsVersion(1)
                .build()
        )
        .build()
);

⚙️ Parameters

docId: String

layerName: String

signingId: String

documentPassword: Optional<String> — 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.

cms: String

expectedVersion: DocSignaturesCompleteRequestExpectedVersion

client.doc.signatures.analysis(docId, layerName) -> DocSignaturesAnalysisResponse

📝 Description

Exactly one of since.signature=<index> or since.revision=<index>; the layer's pending edits are the end. level=fill|annotate|lta|none evaluates exploratorily and never becomes a verdict. For history between two base revisions use the version analysis.

🔌 Usage

client.doc().signatures().analysis(
    "docId",
    "layerName",
    AnalysisSignaturesRequest
        .builder()
        .build()
);

⚙️ Parameters

docId: String

layerName: String

sinceSignature: Optional<Integer>

sinceRevision: Optional<Integer>

level: Optional<AnalysisSignaturesRequestLevel>

documentPassword: Optional<String> — 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.

client.doc.signatures.prepare(docId, layerName, request) -> DocSignaturesPrepareResponse

📝 Description

Multipart: a JSON body part (field, subFilter, digest, contentsSize, signer, certify, lock), naming the appearance PDF it may carry as resources: { appearance: '<key>' }, and that PDF as the part resource:<key>. A certification (certify.permission) additionally requires doc.sign.certify. The layer is read-only until the signing completes, is cancelled, or expires (15 minutes). A document timestamp (kind: 'timestamp') may leave field out, since 3.3: the engine then makes a field of no size for it, under a name no other field has, and the answer names it in field. That needs doc.sign for the document. The signature is made over the layer's own base: the upload, or the version its last signature made.

🔌 Usage

client.doc().signatures().prepare(
    "docId",
    "layerName",
    null,
    PrepareSignaturesRequest
        .builder()
        .build()
);

⚙️ Parameters

docId: String

layerName: String

documentPassword: Optional<String> — 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.

client.doc.signatures.validationInfo(docId, layerName) -> DocSignaturesValidationInfoResponse

📝 Description

Each entry is one DER object, base64. It reads the layer as it is now, so entries stored and not yet sealed by a signature are among them. Arrived in 3.3.

🔌 Usage

client.doc().signatures().validationInfo(
    "docId",
    "layerName",
    ValidationInfoSignaturesRequest
        .builder()
        .build()
);

⚙️ Parameters

docId: String

layerName: String

documentPassword: Optional<String> — 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.

client.doc.signatures.addValidationInfo(docId, layerName, request) -> DocSignaturesAddValidationInfoResponse

📝 Description

Each entry is one DER object of at most 16 MiB, base64. An entry the file already holds, byte for byte, is not stored again: added counts the new ones. An entry that is not one DER object fails the request and nothing is stored; the error names it, as in certificates[1]. The server stores what it is given and asks no certificate authority: collect the answers first. It needs doc.sign for the document, not for a group of fields, and is refused after a certification that allows no changes. It cannot be undone, and it leaves undo for earlier changes as it was. Arrived in 3.3.

🔌 Usage

client.doc().signatures().addValidationInfo(
    "docId",
    "layerName",
    DocSignaturesAddValidationInfoRequest
        .builder()
        .build()
);

⚙️ Parameters

docId: String

layerName: String

documentPassword: Optional<String> — 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.

idempotencyKey: Optional<String> — Names the change: 1 to 255 printable ASCII characters. A retry under the same key on the same layer answers with what the first request committed, and changes nothing.

certificates: Optional<List<String>>

ocspResponses: Optional<List<String>>

crls: Optional<List<String>>

Doc Versions

client.doc.versions.list(docId, layerName) -> DocVersionsListResponse

📝 Description

Every completed signature makes a new version of its layer; another layer's versions are never listed. Never cached: the list grows.

🔌 Usage

client.doc().versions().list(
    "docId",
    "layerName",
    ListVersionsRequest
        .builder()
        .build()
);

⚙️ Parameters

docId: String

layerName: String

documentPassword: Optional<String> — 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.

client.doc.versions.analysis(docId, layerName, sha256) -> DocVersionsAnalysisResponse

📝 Description

Exactly one of since.signature / since.revision; until=<revision> defaults to the last. The same answer for every caller. A version never changes, but the rules that judge it can: with engine, the analysis value of the layer's head, a settled answer is immutable. Without it, or with another value, the answer is this server's own, with no-store and the current value in EmbedPDF-Engine.

🔌 Usage

client.doc().versions().analysis(
    "docId",
    "layerName",
    "sha256",
    AnalysisVersionsRequest
        .builder()
        .build()
);

⚙️ Parameters

docId: String

layerName: String

sha256: String

sinceSignature: Optional<Integer>

sinceRevision: Optional<Integer>

level: Optional<AnalysisVersionsRequestLevel>

until: Optional<Integer>

engine: Optional<String> — The analysis engine value from the layer's head (engine.analysis): the rules the answer is judged with. With it, a settled answer is cached.

documentPassword: Optional<String> — 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.

client.doc.versions.download(docId, layerName, sha256) -> InputStream

🔌 Usage

client.doc().versions().download(
    "docId",
    "layerName",
    "sha256",
    DownloadVersionsRequest
        .builder()
        .build()
);

⚙️ Parameters

docId: String

layerName: String

sha256: String

documentPassword: Optional<String> — 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.

client.doc.versions.revision(docId, layerName, sha256, index) -> InputStream

🔌 Usage

client.doc().versions().revision(
    "docId",
    "layerName",
    "sha256",
    1,
    RevisionVersionsRequest
        .builder()
        .build()
);

⚙️ Parameters

docId: String

layerName: String

sha256: String

index: Integer

documentPassword: Optional<String> — 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.

client.doc.versions.signatures(docId, layerName, sha256) -> DocVersionsSignaturesResponse

📝 Description

A version never changes, but what the server reads from it can: with engine, the signatures value of the layer's head, the answer is immutable. Without it, or with another value, the answer is this server's own, with no-store and the current value in EmbedPDF-Engine.

🔌 Usage

client.doc().versions().signatures(
    "docId",
    "layerName",
    "sha256",
    SignaturesVersionsRequest
        .builder()
        .build()
);

⚙️ Parameters

docId: String

layerName: String

sha256: String

engine: Optional<String> — The signatures engine value from the layer's head (engine.signatures): what the answer is computed with besides the file. With it, the answer is cached.

documentPassword: Optional<String> — 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.

client.doc.versions.signatureContents(docId, layerName, sha256, fieldKey) -> InputStream

📝 Description

fieldKey is the field's fully qualified name, token-text encoded (the same encoding attachment keys use).

🔌 Usage

client.doc().versions().signatureContents(
    "docId",
    "layerName",
    "sha256",
    "fieldKey",
    SignatureContentsVersionsRequest
        .builder()
        .build()
);

⚙️ Parameters

docId: String

layerName: String

sha256: String

fieldKey: String

documentPassword: Optional<String> — 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.

client.doc.versions.signatureDigest(docId, layerName, sha256, fieldKey, algorithm) -> InputStream

📝 Description

What a CMS verifier compares its message digest to.

🔌 Usage

client.doc().versions().signatureDigest(
    "docId",
    "layerName",
    "sha256",
    "fieldKey",
    SignatureDigestVersionsRequestAlgorithm.SHA1,
    SignatureDigestVersionsRequest
        .builder()
        .build()
);

⚙️ Parameters

docId: String

layerName: String

sha256: String

fieldKey: String

algorithm: SignatureDigestVersionsRequestAlgorithm

documentPassword: Optional<String> — 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.

Doc Fonts Programs

client.doc.fonts.programs.download(docId, layerName, displaySha256) -> InputStream

📝 Description

A document token needs any one of the listed capabilities: one that may write text in the document. A file the list says can't be downloaded (canDownload: false) is not found.

🔌 Usage

client.doc().fonts().programs().download(
    "docId",
    "layerName",
    "displaySha256",
    DownloadProgramsRequest
        .builder()
        .build()
);

⚙️ Parameters

docId: String

layerName: String

displaySha256: String

documentPassword: Optional<String> — 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.

client.doc.fonts.programs.get(docId, layerName, displaySha256) -> FontProgramInfo

🔌 Usage

client.doc().fonts().programs().get(
    "docId",
    "layerName",
    "displaySha256",
    GetProgramsRequest
        .builder()
        .build()
);

⚙️ Parameters

docId: String

layerName: String

displaySha256: String

documentPassword: Optional<String> — 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.

Doc Metadata Custom

client.doc.metadata.custom.get(docId, layerName) -> Map&lt;String, String&gt;

🔌 Usage

client.doc().metadata().custom().get(
    "docId",
    "layerName",
    GetCustomRequest
        .builder()
        .build()
);

⚙️ Parameters

docId: String

layerName: String

documentPassword: Optional<String> — 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.

Documents Layers

client.documents.layers.list(tenantId, docId) -> DocumentsLayersListResponse

🔌 Usage

client.documents().layers().list(
    "tenantId",
    "docId",
    ListLayersRequest
        .builder()
        .build()
);

⚙️ Parameters

tenantId: String

docId: String

limit: Optional<Integer>

cursor: Optional<String>

grantId: Optional<String>

client.documents.layers.delete(tenantId, docId, layerName)

🔌 Usage

client.documents().layers().delete(
    "tenantId",
    "docId",
    "layerName",
    DeleteLayersRequest
        .builder()
        .build()
);

⚙️ Parameters

tenantId: String

docId: String

layerName: String

Grants Visitors

client.grants.visitors.list(tenantId, grantId) -> GrantsVisitorsListResponse

📝 Description

An archived grant's visitors are listed too.

🔌 Usage

client.grants().visitors().list(
    "tenantId",
    "grantId",
    ListVisitorsRequest
        .builder()
        .build()
);

⚙️ Parameters

tenantId: String

grantId: String

limit: Optional<Integer>

cursor: Optional<String>

client.grants.visitors.delete(tenantId, grantId, visitorId)

📝 Description

Their handle brings them back as a new visitor, who is asked again. Deleting a visitor already deleted changes nothing.

🔌 Usage

client.grants().visitors().delete(
    "tenantId",
    "grantId",
    "visitorId",
    DeleteVisitorsRequest
        .builder()
        .build()
);

⚙️ Parameters

tenantId: String

grantId: String

visitorId: String