Skip to main content
API version 2025.0 A full representation of a Box Doc Gen job.
This resource has a few variations that can be encountered when using the API.The fields that are part of the full variant can be returned by API endpoints that support the fields parameter. For example, by defining the fields request parameter as id,type when requesting a file by ID, only those fields will be returned in the API response.
id
string
example: 12345The unique identifier that represent a Box Doc Gen job.
type
string
example: docgen_jobThe value will always be docgen_job.Value is always docgen_job
batch
Box Doc Gen batch (Base)object
Box Doc Gen batch that the job belongs to.
created_at
string
example: 2022-05-11T10:56:11-07:00Time of job creation.
created_by
object
User who created the job.
enterprise
object
ID of the enterprise.
output_file
object
The output file of the job. This property is null until the job is completed.
output_file_version
object
File version of the output file. This property is null until the job is completed.
output_type
string
example: docxType of the generated file.
source
string
example: apiSource of the request.
status
string
example: completedStatus of the job.Value is one of submitted,completed,failed,completed_with_error,pending
template_file
object
Box Doc Gen template used in the job.
template_file_version
object
File version of a template.
{
  "id": "12345",
  "type": "docgen_job",
  "batch": {
    "id": "12345",
    "type": "docgen_batch"
  },
  "created_at": "2022-05-11T10:56:11-07:00",
  "created_by": {
    "id": "11446498",
    "type": "user"
  },
  "enterprise": {
    "id": "1910967",
    "type": "enterprise"
  },
  "output_file": {
    "id": "42037322",
    "type": "file"
  },
  "output_file_version": {
    "id": "12345",
    "type": "file_version"
  },
  "output_type": "docx",
  "source": "api",
  "status": "completed",
  "template_file": {
    "id": "42037322",
    "type": "file"
  },
  "template_file_version": {
    "id": "12345",
    "type": "file_version"
  }
}