-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into DOCS-2659-eadvanced-updates
- Loading branch information
Showing
20 changed files
with
440 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
--- | ||
rank: 1 | ||
related_endpoints: | ||
- post_docgen_templates_v2025.0 | ||
- post_docgen_batches_v2025.0 | ||
related_guides: | ||
- docgen/generate-document | ||
- docgen/mark-template | ||
- docgen/docgen-jobs | ||
- docgen/docgen-templates | ||
--- | ||
|
||
# Get started with Box Doc Gen | ||
|
||
To start generating documents with Box Doc Gen API you will need a custom application and a developer token to | ||
authenticate your calls. You also need a Doc Gen template that will serve as an input source for your document. | ||
|
||
## Enable Box Doc Gen | ||
|
||
To use Box Doc Gen, make sure it is enabled by an | ||
admin in the Admin Console. | ||
If you are a Box Admin, you will find the necessary information in | ||
[Enterprise Settings: Content & Sharing Tab][settings] documentation. | ||
|
||
## Create and upload a Box Doc Gen template | ||
|
||
To use Box Doc Gen API to generate documents, a Box Doc Gen template must already exist in Box. You have the following options to create a template: | ||
|
||
* Install the [Box Doc Gen Template Creator add-in for Microsoft Word][template-addin]. | ||
* Create a Box Doc Gen template [using a JSON file][json-template] or manually create [template tags][template-tags]. | ||
|
||
## Create a custom application | ||
|
||
First you need to create a custom application | ||
you will use to make calls. To create | ||
an application, follow the guide | ||
on [creating custom apps][createapps]. | ||
|
||
## Generate a developer token | ||
|
||
You need a developer token | ||
to authenticate your app when sending requests. | ||
|
||
To generate a token: | ||
|
||
1. Go to **Developer Console** > **My Platform Apps**. | ||
2. Click the **Options menu** button (…) on the right. | ||
3. Select **Generate Developer Token**. The token will be automatically generated and saved to clipboard. | ||
|
||
![generate token](./images/developer-token.png) | ||
|
||
You can also open your app, go to | ||
**Configuration** > **Developer Token** | ||
and generate the token. | ||
|
||
<Message type="notice"> | ||
A developer token is only valid for one hour. | ||
</Message> | ||
|
||
For additional details, see [developer token][token]. | ||
After you generate the token, you can use it in cURL | ||
or other clients, such as [Postman][postman], to make | ||
calls. | ||
|
||
[token]: g://authentication/tokens/developer-tokens | ||
[createapps]: g://applications/app-types/custom-apps | ||
[postman]: g://tooling/postman | ||
[settings]: https://support.box.com/hc/en-us/articles/4404822772755-Enterprise-Settings-Content-Sharing-Tab#h_01FYQGK5RW42T07GV985MQ9E9A | ||
[template-addin]: https://support.box.com/hc/en-us/articles/36587535449747-Installing-Box-Doc-Gen-Add-in | ||
[template-tags]: https://support.box.com/hc/en-us/articles/36151895655059-Creating-A-Box-Doc-Gen-Template-Manually | ||
[json-template]: https://support.box.com/hc/en-us/articles/36148012877843-Creating-a-Box-Doc-Gen-Template-using-JSON-data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
rank: 5 | ||
related_endpoints: | ||
- get_docgen_jobs_v2025.0 | ||
- get_docgen_batch_jobs_id_v2025.0 | ||
- get_docgen_jobs_id_v2025.0 | ||
related_guides: | ||
- docgen/docgen-getting-started | ||
- docgen/generate-document | ||
--- | ||
|
||
# Box Doc Gen jobs | ||
|
||
A Box Doc Gen job runs when you make a request to generate a document. | ||
The `document_generation_data` parameter in the `POST` request is an array of entries that represent Box Doc Gen jobs run to generate a document. | ||
|
||
<Samples id='post_docgen_batches_v2025.0' /> | ||
|
||
Box Doc Gen API allows you to get information about the Box Doc Gen jobs. | ||
|
||
## Prerequisites | ||
|
||
Before you start using Box Doc Gen API, follow the steps listed in the [get started with Box Doc Gen][docgen-prerequisites] guide to create a custom app and a Box Doc Gen template. | ||
|
||
## List all Box Doc Gen jobs | ||
|
||
To get a list of all Box Doc Gen jobs that were run, | ||
use the `GET /2.0/docgen_jobs` endpoint. You don't have to provide any additional parameters. | ||
|
||
<Samples id='get_docgen_jobs_v2025.0' /> | ||
|
||
## Get a Box Doc Gen job by ID | ||
|
||
To get a specific Box Doc Gen job, | ||
use the `GET /2.0/docgen_jobs_id` endpoint and provide the `job_id`. | ||
|
||
<Samples id='get_docgen_jobs_id_v2025.0' /> | ||
|
||
## Get Box Doc Gen jobs in batch with a specific ID | ||
|
||
A single request can generate several documents. In such a case, a separate generation job is run for each document and all these jobs are included in one "batch" meaning a request. | ||
To get all jobs performed within one request, use the `GET /2.0/docgen_batch_jobs_id` endpoint and provide the `batch_id`. | ||
|
||
<Samples id='get_docgen_jobs_id_v2025.0' /> | ||
|
||
[docgen-prerequisites]: g://docgen/docgen-getting-started |
Oops, something went wrong.