List Templates

get/template/list

Returns a list of the Templates that are accessible by you.

Take a look at our search guide to learn more about querying templates.

Securityapi_key or oauth2
Request
query Parameters
account_id
string

Which account to return Templates for. Must be a team member. Use all to indicate all team members. Defaults to your account.

page
integer
Default: 1

Which page number of the Template List to return. Defaults to 1.

page_size
integer [ 1 .. 100 ]
Default: 20

Number of objects to be returned per page. Must be between 1 and 100. Default is 20.

query
string

String that includes search terms and/or fields to be used to filter the Template objects.

Responses
200

successful operation

4XX

failed_operation

Request samples
<?php

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

$config = Dropbox\Sign\Configuration::getDefaultConfiguration();

// Configure HTTP basic authorization: api_key
$config->setUsername("YOUR_API_KEY");

// or, configure Bearer (JWT) authorization: oauth2
// $config->setAccessToken("YOUR_ACCESS_TOKEN");

$templateApi = new Dropbox\Sign\Api\TemplateApi($config);

$accountId = "f57db65d3f933b5316d398057a36176831451a35";

try {
    $result = $templateApi->templateList($accountId);
    print_r($result);
} catch (Dropbox\Sign\ApiException $e) {
    $error = $e->getResponseObject();
    echo "Exception when calling Dropbox Sign API: "
        . print_r($error->getError());
}
Response samples
application/json
{
  • "list_info": {
    },
  • "templates": [
    ]
}