# APITemplate.io

> Generate PDFs and images from templates, HTML, or a web page.

App · 5 actions. Web page: https://docs.lodol.com/docs/integrations/apitemplate

## Actions

### Create image from template

Fill an image template with your data.

**Inputs**

- Template (`template_id`, text, required): Choose the saved template.
- Overrides (`overrides`, list, required): Enter the template layers and their overrides.

**Outputs**

- `data` (object): The response from APITemplate.io.

**Example output**

```json
{
  "data": {
    "download_url": "example",
    "status": "example",
    "transaction_ref": "example"
  }
}
```

### Create PDF from a URL

Render a web page into a PDF.

**Inputs**

- URL (`url`, text, required): Enter the URL of the page to render.

**Outputs**

- `data` (object): The response from APITemplate.io.

**Example output**

```json
{
  "data": {
    "download_url": "example",
    "status": "example",
    "transaction_ref": "example"
  }
}
```

### Create PDF from HTML

Turn HTML markup into a PDF.

**Inputs**

- Body (`body`, text, required): Enter the HTML document.
- Css (`css`, text): Enter CSS styles.

**Outputs**

- `data` (object): The response from APITemplate.io.

**Example output**

```json
{
  "data": {
    "download_url": "example",
    "status": "example",
    "transaction_ref": "example"
  }
}
```

### Create PDF from template

Fill a PDF template with your data.

**Inputs**

- Template (`template_id`, text, required): Choose the saved template.
- Data (`data`, object, required): Map template field names to their values.

**Outputs**

- `data` (object): The response from APITemplate.io.

**Example output**

```json
{
  "data": {
    "download_url": "example",
    "status": "example",
    "transaction_ref": "example"
  }
}
```

### List templates

Show the saved PDF and image templates.

**Inputs**: None.

**Outputs**

- `data` (object): The response from APITemplate.io.

**Example output**

```json
{
  "data": {
    "status": "example",
    "templates": [
      {
        "name": "example",
        "template_id": "example"
      }
    ]
  }
}
```
