MaxSignatures API v3.0
RESTful MaxSignatures API. Digital Signature tool using Hard Security Module Cryptographic functions.
PDF Digital Signatures
Parse, edit and sign PDF document.
Authentication
Access Token is required in order to access MaxSignatures API functions.
Click here for OAuth2 authentication instruction.
Put a valid Access Token in each HTTP Request Header:
Authorization: Bearer {access_token}
Endpoints
Function | Endpoint |
---|---|
Save | POST http://api.maxmddirect.com/maxsig/pdf
Post a PDF document to server and get identifier in response. The document will be deleted after 4 hours if no activity. The identifier will the required for other functions. |
GetDoc | GET http://api.maxmddirect.com/maxsig/pdf/{identifier}
Download the document. The response is in base64 encoded format (text/plain) |
GetDocInfo | GET http://api.maxmddirect.com/maxsig/pdf/{identifier}/info
Get metadata including document pages, signatures, forms and attributes. |
Delete | DELETE http://api.maxmddirect.com/maxsig/pdf/{identifier}
Delete the document. |
Flatten |
PATCH http://api.maxmddirect.com/maxsig/pdf/{identifier}/flatten
Flatten PDF form. PATCH http://api.maxmddirect.com/maxsig/pdf/{identifier}/flatten/pull
Flatten PDF form and pull document raw data. |
ClearUnsignedFields |
PATCH http://api.maxmddirect.com/maxsig/pdf/{identifier}/clearUnsignedFields
Remove unsigned empty signature fields. PATCH http://api.maxmddirect.com/maxsig/pdf/{identifier}/clearUnsignedFields/pull
Remove unsigned empty signature fields and pull document raw data. |
Sign |
PATCH http://api.maxmddirect.com/maxsig/pdf/{identifier}/sign
Create Digital Signature; PATCH http://api.maxmddirect.com/maxsig/pdf/{identifier}/sign/pull
Create Digital Signature and pull document raw data; |
MultiSign |
PATCH http://api.maxmddirect.com/maxsig/pdf/{identifier}/multiSign
Create Digital Multiple Signature; PATCH http://api.maxmddirect.com/maxsig/pdf/{identifier}/multiSign/pull
Create Digital Multiple Signature and pull document raw data. |
HTTP Request Header
Authorization: Bearer {accessToken}
Content-Type: application/json
Request Body
Function Name (Request Format) | Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Save (text/plain) | PDF Content | String | Plain text of PDF content data with base64 encoded | |||||||||||||||||||||||||||||||||||||||||
Sign (application/json) | name | String | Name of the signature | |||||||||||||||||||||||||||||||||||||||||
widget | WidgetObject | Signature position details | ||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||
reason | String | Reason to sign the document | ||||||||||||||||||||||||||||||||||||||||||
gsName | String | Signer name | ||||||||||||||||||||||||||||||||||||||||||
timezone | String | Signer timezone | ||||||||||||||||||||||||||||||||||||||||||
GMTOffset | Integer | GMT Offset | ||||||||||||||||||||||||||||||||||||||||||
graphicalSignature | Base64 Encoded String | Graphical signature data with base64 encoded | ||||||||||||||||||||||||||||||||||||||||||
MultiSign (application/json) | Signatures | SignatureObject[] | List of signature objects | |||||||||||||||||||||||||||||||||||||||||
|
HTTP Response Code
HTTP Code | Description |
---|---|
200 | Success. |
400 | Bad Request. Invalid action. Or some parameter is missing or invalid. |
401 | Unauthorized. No valid access token is found at request. |
403 | Forbidden. Permission denied for the requested action |
404 | Endpoint is not found |
500 | Server Error. |
Error Response Body (format: application/json)
Name | Type | Description |
---|---|---|
error | String | Error message |
description | String | Error description |
Success Response Body (format: application/json)
Function Name (Response Format) | Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Save (application/json) | documentType | String | Document Type | |||||||||||||||||||||||||||||||||||||||||
createdTime | Timestamp | Document save timestamp | ||||||||||||||||||||||||||||||||||||||||||
identifier | String | Document unique ID used to do all document actions and retrieve document information | ||||||||||||||||||||||||||||||||||||||||||
documentDigest | String | Document Digest to identify document update. | ||||||||||||||||||||||||||||||||||||||||||
description | String | Description | ||||||||||||||||||||||||||||||||||||||||||
GetDoc (text/plain) | PDF Content | String | Plain text of PDF content data with base64 encoded | |||||||||||||||||||||||||||||||||||||||||
GetDocInfo (application/json) | signatures | SignatureObject[] | List of signature objects | |||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||
formFields | FormFieldObject[] | list of form field objects | ||||||||||||||||||||||||||||||||||||||||||
pages | PageObject[] | List of page objects | ||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||
metaData | MetaDataObject | Metadata of document | ||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||
documentType | String | Document Type | ||||||||||||||||||||||||||||||||||||||||||
createdTime | Timestamp | Document created timestamp | ||||||||||||||||||||||||||||||||||||||||||
identifier | String | Document unique ID used to do all document actions and retrieve document information | ||||||||||||||||||||||||||||||||||||||||||
documentDigest | String | Document Digest to identify document update. | ||||||||||||||||||||||||||||||||||||||||||
description | String | Description | ||||||||||||||||||||||||||||||||||||||||||
Delete (application/json) | documentDigest | String | Empty digest because the docuemnt has been deleted | |||||||||||||||||||||||||||||||||||||||||
description | String | Description | ||||||||||||||||||||||||||||||||||||||||||
Flatten, ClearUnsignedFields, Sign, MultiSign [no pull] (application/json) | documentDigest | String | Document Digest to identify document update. | |||||||||||||||||||||||||||||||||||||||||
description | String | Description | ||||||||||||||||||||||||||||||||||||||||||
Flatten, ClearUnsignedFields, Sign, MultiSign [with pull] (text/plain) | PDF Content | String | Plain text of PDF content data with base64 encoded |