API Reference
The Swagger UI for the API is available at /api/v1/openapi. This page provides detailed information about the API endpoints, request and response formats, and authentication requirements.Upload a Document
Uploading a document to your Documenso account requires a two-step process.Generate Document From Template
Documenso allows you to generate documents from templates. This is useful when you have a standard document format you want to reuse. The API endpoint for generating a document from a template is/api/v1/templates/{templateId}/generate-document, and it takes a JSON payload with the following fields:
recipients property is required.
Add Fields to Document
The API allows you to add fields to a document via the/api/v1/documents/{documentId}/fields endpoint. This is useful when you want to add fields to a document before sending it to recipients.
To add fields to a document, you need to make a POST request with a JSON payload containing the field(s) information.
This endpoint accepts either one field or an array of fields.
A Note on Advanced Fields
The advanced fields are: text, checkbox, radio, number, and select. Whenever you append any of these advanced fields to a document, you need to pass thetype in the fieldMeta property:
text value with the corresponding field type:
- For the
TEXTfield it should betext. - For the
CHECKBOXfield it should becheckbox. - For the
RADIOfield it should beradio. - For the
NUMBERfield it should benumber. - For the
SELECTfield it should beselect. (check this before merge)

