Add a signature field to the PDF

PUT http://{host}:{port}/qoppapdf/v1/documents/mydir/mydoc.pdf/fields/signature-fields/myfield
(sample JSON in message body)
{
    "widget":[
        {
            "pageIndex":0,
            "rectangle":
            {
                "x":100,
                "y":100,
                "width":200,
                "height":50
            }
        }
    ]
}

Get all signature fields the PDF

GET http://{host}:{port}/qoppapdf/v1/documents/mydir/mydoc.pdf/fields/signature-fields

Sign the PDF

POST http://{host}:{port}/qoppapdf/v1/documents/mydir/mydoc.pdf/fields/signature-fields/myfield/signature
(pfx or p12 file as attachment)
(sample JSON)
{
  "keystorePassword":"password", 
  "keyAlias":"alias", 
  "keyPassword":"password", 
  "certifyingSignature":true, 
  "certifyingPermissions":3,
  "signLocation" : "US",
  "signReason" : "I approve this document",
  "signContactInformation" : "me@example.com"
}

Clear signature

DELETE http://{host}:{port}/qoppapdf/v1/documents/mydir/mydoc.pdf/fields/signature-fields/mySigField