- Get Box Doc Gen job by ID
- List all Box Doc Gen jobs
- Get Box Doc Gen jobs by batch ID
- Generate document using Box Doc Gen template
Get details of the Box Doc Gen job.
This operation is performed by calling function get_docgen_job_by_id_v2025_r0.
See the endpoint docs at API Reference.
client.docgen.get_docgen_job_by_id_v2025_r0(docgen_job_item_from_list.id)- job_id
str- Box Doc Gen job ID. Example: 123
- box_version
BoxVersionHeaderV2025R0- Version header.
- extra_headers
Optional[Dict[str, Optional[str]]]- Extra headers that will be included in the HTTP request.
This function returns a value of type DocGenJobV2025R0.
Details of the Box Doc Gen job.
Lists all Box Doc Gen jobs for a user.
This operation is performed by calling function get_docgen_jobs_v2025_r0.
See the endpoint docs at API Reference.
client.docgen.get_docgen_jobs_v2025_r0(limit=10000)- marker
Optional[str]- Defines the position marker at which to begin returning results. This is used when paginating using marker-based pagination. This requires
usemarkerto be set totrue.
- Defines the position marker at which to begin returning results. This is used when paginating using marker-based pagination. This requires
- limit
Optional[int]- The maximum number of items to return per page.
- box_version
BoxVersionHeaderV2025R0- Version header.
- extra_headers
Optional[Dict[str, Optional[str]]]- Extra headers that will be included in the HTTP request.
This function returns a value of type DocGenJobsFullV2025R0.
A list of Box Doc Gen jobs.
Lists Box Doc Gen jobs in a batch.
This operation is performed by calling function get_docgen_batch_job_by_id_v2025_r0.
See the endpoint docs at API Reference.
client.docgen.get_docgen_batch_job_by_id_v2025_r0(docgen_batch.id)- batch_id
str- Box Doc Gen batch ID. Example: 123
- marker
Optional[str]- Defines the position marker at which to begin returning results. This is used when paginating using marker-based pagination. This requires
usemarkerto be set totrue.
- Defines the position marker at which to begin returning results. This is used when paginating using marker-based pagination. This requires
- limit
Optional[int]- The maximum number of items to return per page.
- box_version
BoxVersionHeaderV2025R0- Version header.
- extra_headers
Optional[Dict[str, Optional[str]]]- Extra headers that will be included in the HTTP request.
This function returns a value of type DocGenJobsV2025R0.
Returns a list of Box Doc Gen jobs in a Box Doc Gen batch.
Generates a document using a Box Doc Gen template.
This operation is performed by calling function create_docgen_batch_v2025_r0.
See the endpoint docs at API Reference.
client.docgen.create_docgen_batch_v2025_r0(
FileReferenceV2025R0(id=uploaded_file_docx.id),
"api",
CreateDocgenBatchV2025R0DestinationFolder(id=folder.id),
"pdf",
[
DocGenDocumentGenerationDataV2025R0(
generated_file_name="test", user_input={"abc": "xyz"}
)
],
)- file
FileReferenceV2025R0 - file_version
Optional[FileVersionBaseV2025R0] - input_source
str- Source of input. The value has to be
apifor all the API-based document generation requests.
- Source of input. The value has to be
- destination_folder
CreateDocgenBatchV2025R0DestinationFolder - output_type
str- Type of the output file.
- document_generation_data
List[DocGenDocumentGenerationDataV2025R0] - box_version
BoxVersionHeaderV2025R0- Version header.
- extra_headers
Optional[Dict[str, Optional[str]]]- Extra headers that will be included in the HTTP request.
This function returns a value of type DocGenBatchBaseV2025R0.
The created Batch ID.