Documint

Generate beautiful PDFs that your users will love.

Integrate the Documint API with the Python API

Setup the Documint API trigger to run a workflow which integrates with the Python API. Pipedream's integration platform allows you to integrate Documint and Python remarkably fast. Free for developers.

Create Document with the Documint API

Create a document. See the documentation

 
Try it
Run Python Code with the Python API

Write Python and use any of the 350k+ PyPi packages available. Refer to the Pipedream Python docs to learn more.

 
Try it
List Templates with the Documint API

Retrieves a list of your available Documint templates. See the documentation

 
Try it

Overview of Documint

The Documint API enables automated document generation with dynamic content, offering a robust solution for creating tailored PDFs or other document types from templates. With this API, you can insert custom data into predefined fields, generate documents on the fly, and streamline the creation of invoices, contracts, reports, and more. Integrating Documint with Pipedream allows for the orchestration of serverless workflows that react to various triggers, like webhooks, emails, or schedule timings, to produce documents as part of a larger automated process.

Connect Documint

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    documint: {
      type: "app",
      app: "documint",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.documint.me/1/templates`,
      headers: {
        "api_key": `${this.documint.$auth.api_key}`,
      },
    })
  },
})

Overview of Python

Develop, run and deploy your Python code in Pipedream workflows. Integrate seamlessly between no-code steps, with connected accounts, or integrate Data Stores and manipulate files within a workflow.

This includes installing PyPI packages, within your code without having to manage a requirements.txt file or running pip.

Below is an example of using Python to access data from the trigger of the workflow, and sharing it with subsequent workflow steps:

Connect Python

1
2
3
4
5
def handler(pd: "pipedream"):
  # Reference data from previous steps
  print(pd.steps["trigger"]["context"]["id"])
  # Return data for use in future steps
  return {"foo": {"test":True}}