Get Template Files as File Url

get/template/files_as_file_url/{template_id}

Obtain a copy of the current documents specified by the template_id parameter. Returns a JSON object with a url to the file (PDFs only).

If the files are currently being prepared, a status code of 409 will be returned instead. In this case please wait for the template_created callback event.

Securityapi_key or oauth2
Request
path Parameters
template_id
required
string

The id of the template files to retrieve.

Example: f57db65d3f933b5316d398057a36176831451a35
query Parameters
force_download
integer
Default: 1

By default when opening the file_url a browser will download the PDF and save it locally. When set to 0 the PDF file will be displayed in the browser.

Responses
200

successful operation

4XX

failed_operation

Request samples
<?php

namespace Dropbox\SignSandbox;

require_once __DIR__ . '/../vendor/autoload.php';

use SplFileObject;
use Dropbox;

$config = Dropbox\Sign\Configuration::getDefaultConfiguration();
$config->setUsername("YOUR_API_KEY");
// $config->setAccessToken("YOUR_ACCESS_TOKEN");

try {
    $response = (new Dropbox\Sign\Api\TemplateApi(config: $config))->templateFilesAsFileUrl(
        template_id: "f57db65d3f933b5316d398057a36176831451a35",
        force_download: 1,
    );

    print_r($response);
} catch (Dropbox\Sign\ApiException $e) {
    echo "Exception when calling TemplateApi#templateFilesAsFileUrl: {$e->getMessage()}";
}