Skip to main content
The POST /2.0/docgen_batches endpoint allows you to generate a document using Box Doc Gen template as input.

Prerequisites

Before you start using Box Doc Gen API, follow the steps listed in the guide to create a platform app and a Box Doc Gen template.

Send a request

To generate a document or a set of documents, use the POST /2.0/docgen_batches endpoint.

Parameters

To make a call, you need to pass the following parameters. Mandatory parameters are in bold.

Use case

When your Box Doc Gen template and JSON data is ready, you can make a request to Box Doc Gen API to generate documents. A sample call looks as follows:
When the request is being processed, each entry in the document_generation_data array is treated as a separate document generation job that Box Doc Gen adds to the document generation queue. Generated documents will be saved in the designated folder.
Last modified on March 19, 2026