- Submissions and data requests can now be in the
declinedstate, when a signer declines to sign. Data requests have a newdeclined_attimestamp. - New API methods for webhooks: create_webhook, list_webhooks, get_webhook, update_webhook and delete_webhook.
- New API method: get_template_model_code, which generates typed model code for a template's submission data, so your app can catch mistakes before it calls the API.
- Templates:
- Field dependencies:
field_dependencieswhen you create or update a template, anddependencieson the fields you add with add_fields_to_template. - add_fields_to_template accepts the
initialsfield type and aneditablesetting for each field. - Embedded template editor settings:
embed_edit_allow_document_replacement,embed_edit_allow_settings,embed_edit_allow_versioningandembed_edit_token. - New
template_schema_versionattribute. - A template's
pathis never null. - Individual template
defaultscan be null (for examplefontSizeafter it's cleared in the template editor). last_changed_by_typecan beexternal_user(a change made in the embedded template editor), withlast_changed_by_external_id,last_changed_by_external_nameandlast_changed_by_external_email.- Template versions say who published them with
published_by_type,published_by_user_id,published_by_name,published_by_emailandpublished_by_external_id. These replacepublished_by_id, which the API no longer returns. - The JSON schema from get_template_schema includes
$id,allOfanddependencies.
- Field dependencies:
- copy_template accepts a template
version, andparent_folder_idis now optional. move_template_to_folder also accepts aversion. - Pass a null
parent_folder_idto move_template_to_folder or move_folder_to_folder to move it to the root folder. - Submissions and submission actions include an
error_messagewhen processing fails. - combine_pdfs:
delete_custom_filesnow deletes the custom files once the merged PDF is processed (it used to be ignored).testhas no effect and is deprecated. - The package metadata declares the MIT license, like the LICENSE file (it said Unlicense).
- The
hostoption andDOCSPRING_HOSTcan end with/api/v1/or have spaces around them (a trailing slash after/api/v1sent requests to paths with//).
- All our API clients are now 100% end-to-end tested against our real server.
- Added support for Template Versioning parameters:
- Optional version parameter in submission requests (e.g., 1.2.3, draft, latest)
- New API methods: publish_template_version, restore_template_version
- Updated copy_template and delete_template methods to accept template version strings
- BREAKING CHANGE: Updated default host to our new synchronous API subdomain: sync.api.docspring.com. (EU customers should use sync.api-eu.docspring.com). Removed all custom polling code from library since this logic is now handled by the API service running on our sync subdomain
- Fixed User-Agent header: docspring-javascript-x.x.x
- Added Delete Template API endpoint
- Renamed "Template1" model to "FullTemplate" since it includes all properties
- Added 'password' parameter to Generate PDF and Combine PDF API endpoints. You can now encrypt each generated PDF with a unique password.
- Added "sort_order" property for Submission Data Requests
- Updated OpenAPI Generator to v3.3.0
- Fixed the "include_data=true" option for the "Get Submission" API endpoint. Added the "data" property to the Submission model so that this is parsed and returned correctly when requested
- Renamed some internal models for template creation API endpoints. (CreateTemplateData / CreateTemplateData1 renamed to CreateHtmlTemplateData and CreateTemplateFromUploadData)
- BREAKING CHANGE: Renamed createTemplate operation to createPDFTemplate
- Added createHTMLTemplate operation. (This uses the same API endpoint as createPDFTemplate, but the example shows how to set html, scss, etc. fields)
- Added updateTemplate operation, to update a PDF or HTML template
- Renamed FormAPI to DocSpring. (View the CHANGELOG in the original FormAPI API client for prior releases.)