Skip to main content
GET
/
docgen_templates
/
{template_id}
cURL
curl -L 'https://api.box.com/2.0/docgen_templates/12345678' \
     -H 'box-version: 2025.0' \
     -H 'Authorization: Bearer <ACCESS_TOKEN>'
{
  "file": {
    "type": "file",
    "id": "42037322"
  },
  "file_name": "Official contract"
}

Documentation Index

Fetch the complete documentation index at: https://developer.box.com/llms.txt

Use this file to discover all available pages before exploring further.

Learn more about Box SDK versioning strategy.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

box-version
enum<string>
required

Version header.

Available options:
2025.0

Path Parameters

template_id
string
required

The ID of a Box Doc Gen template.

Response

Returns a template.

A Box Doc Gen template object.

file
File reference · object

Enable the file to generate a document from.

file_name
string | null

The name of the template.

Example:

"Official contract"