# `DocuSign.Api.TemplateResponsiveHtmlPreview`
[🔗](https://github.com/neilberkman/docusign_elixir/blob/v3.5.1/lib/docusign/api/template_responsive_html_preview.ex#L5)

API calls for all endpoints tagged `TemplateResponsiveHtmlPreview`.

# `responsive_html_post_template_responsive_html_preview`

```elixir
@spec responsive_html_post_template_responsive_html_preview(
  DocuSign.Connection.t(),
  String.t(),
  String.t(),
  keyword()
) ::
  {:ok, DocuSign.Model.DocumentHtmlDefinitions.t()} | {:error, Req.Response.t()}
```

Creates a preview of the responsive versions of all of the documents associated with a template.
Creates a preview of the [responsive](/docs/esign-rest-api/esign101/concepts/responsive/), HTML versions of all of the documents associated with a template. This method enables you to preview the PDF document conversions to responsive HTML across device types prior to sending.  The request body is a `documentHtmlDefinition` object, which holds the responsive signing parameters that define how to generate the HTML version of the documents.

### Parameters

- `connection` (DocuSign.Connection): Connection to server
- `account_id` (String.t): The external account number (int) or account ID GUID.
- `template_id` (String.t): The ID of the template.
- `opts` (keyword): Optional parameters
  - `:body` (DocumentHtmlDefinition): 

### Returns

- `{:ok, DocuSign.Model.DocumentHtmlDefinitions.t}` on success
- `{:error, Req.Response.t}` on failure

---

*Consult [api-reference.md](api-reference.md) for complete listing*
