DocSpring
Productivity Token id and secretFill PDF templates and generate documents with DocSpring from any Windmill script, flow or app.
Set up in 3 steps
Create an API token
In DocSpring, open your account settings then API Tokens, and create one. It gives a token id and a secret — copy both.
Add the resource in Windmill
Open Resources, add a resource of type docspring, and fill tokenId and tokenSecret.
Run your first script
Fork any script below and read before writing anything.
Scripts
Building blocks, if none of the projects above fit. Fork one, run it, or call it as a step inside your own flow.
Update a submission data request
Update a Template
Test Authentication
Rename a folder
Move a folder
Move Template to folder
Merge submission PDFs, template PDFs, or custom files
Merge generated PDFs together
Look up a submission data request
List all submissions for a given template
List all submissions
Get a presigned URL so that you can upload a file to our AWS S3 bucket
Get a list of all templates
Get a list of all folders
Get a list of all combined submissions
Generates multiple PDFs
Generates a new PDF
Generated a preview PDF for partially completed data requests
Fetch the full template attributes
Fetch the JSON schema for a template
Expire a combined submission
Expire a PDF submission
Delete a template
Delete a folder
Creates a new data request token for form authentication
Create a new custom file from a cached presign upload
Create a new PDF template with a form POST file upload
Create a new PDF template from a cached presign upload
Create a new HTML template
Create a folder
Resource type
docspring — the shape of the credential every script on this page expects.
| Field | Type | Required | What it is |
|---|---|---|---|
| tokenId | string | Yes | |
| tokenSecret | string | Yes |
Questions
Why two fields?
DocSpring authenticates over HTTP Basic with the id as the username and the secret as the password. Neither works alone.
Test or live?
DocSpring issues separate tokens per environment, and test documents carry a watermark. Keep a resource for each.
Are my credentials stored on the hub?
Never. They live only in your own Windmill workspace, encrypted at rest.