@idkollen/client
    Preparing search index...

    Class DocumentEndpoint

    Document upload and download operations.

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Download a signed PDF by document ID.

      Parameters

      • id: string

      Returns Promise<Uint8Array<ArrayBufferLike>>

      Raw PDF bytes.

    • Upload a PDF document. Returns the document ID for use in sign requests.

      Parameters

      • file: Uint8Array

        Raw file bytes.

      • filename: string

        Original filename sent as the multipart part name.

      • OptionalmimeType: string

        MIME type of the file. Defaults to "application/pdf".

      Returns Promise<DocumentUploadResponse>