Skip to content
APITemplate.io logo

Connectors / Documents and e-signature · HTTP Connector

APITemplate.io integration and API

Create a PDF, create an image and update a PDF template in APITemplate.io, and start a workflow when APITemplate.io sends “PDF generated”.

What can you do with APITemplate.io on Tray.ai?

APITemplate.io generates PDFs and images from reusable templates, HTML, Markdown or a web page URL, with regional endpoints in the US, Europe, Singapore and Australia. Tray.ai connects to APITemplate.io through the HTTP Connector, so your workflows can call the APITemplate.io API alongside the rest of your stack.

  • Create a PDF of the invoice when an order is paid in your billing system.
  • When APITemplate.io sends “PDF generated”, email the file to the customer from your email platform.
  • Create a PDF from HTML for weekly reports pulled from your data warehouse.
  • Check remaining quota daily and alert the ops team in team chat before it runs out.
Connects through
HTTP Connector
Authentication
An API key in a request header
Base URL
https://rest.apitemplate.io

Set it up

Connect APITemplate.io to Tray.ai

Each step uses APITemplate.io's own API details, from its documentation.

Save APITemplate.io's API key

Save the key as a Tray.ai authentication. The HTTP Client puts it in the request header, read from $.auth. The key stays out of the workflow and out of the logs.

Point the HTTP Client at the API

Add an HTTP Client step and use https://rest.apitemplate.io as the base URL. Or paste a cURL example from APITemplate.io's API docs, and Tray.ai fills in the method, URL, and headers.

Start with “List generated objects”

It's one of 13 documented actions, under Images. The response comes back as data the next step can map into your other apps.

Start workflows from APITemplate.io events

Give APITemplate.io the URL of a Tray.ai webhook trigger. “PDF generated” can then start a workflow.

Workflows to build with APITemplate.io

Connect APITemplate.io with Salesforce, Box, DocuSign and Shopify

Each one uses actions and events from APITemplate.io's own API documentation.

Create a quote PDF for Salesforce opportunities

When

An opportunity moves to the proposal stage in Salesforce

Then

  1. Create a PDF from the quote template with the opportunity details
  2. Attach the PDF to the opportunity in Salesforce

With Salesforce

Send generated PDFs for signature in DocuSign

When

PDF generated

Then

  1. File the PDF in the customer folder in Box
  2. Send the PDF for signature in DocuSign

With Box and DocuSign

Create packing slips for new Shopify orders

When

An order is placed in Shopify

Then

  1. Create a PDF from the packing slip template
  2. Email the PDF to the warehouse team in Gmail

With Shopify and Gmail

Apps you can build on APITemplate.io data

Internal tools your team can build with an AI assistant, each one using APITemplate.io calls from its API documentation.

Document generator

Lets staff pick a template, fill in fields, and create a PDF, with a list of past generated files.

Quota and file cleanup board

Shows remaining quota and recent generated files so admins can delete old ones.

APITemplate.io MCP server for AI agents

Build an MCP server on APITemplate.io in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works

  • Create a PDF
  • Create an image
  • List templates
  • Get account information
  • Create a PDF from HTML
  • Create a PDF from URL
  • Create a PDF from Markdown
  • Merge multiple PDFs

What the APITemplate.io API covers

4 resources and 13 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how. New to APIs? Read what an API integration is.

PDFs

  • Create a PDF
  • Create a PDF from HTML
  • Create a PDF from URL
  • Create a PDF from Markdown
  • Merge multiple PDFs

Images

  • Create an image
  • List generated objects
  • Delete an object

Templates

  • List templates
  • Get a PDF template
  • Update a PDF template

Account

  • Get account information
  • Check remaining quota

Events APITemplate.io can send to a Tray.ai webhook trigger

  • PDF generated

Checked against APITemplate.io's own documentation on 2026-10-22

apitemplate.io/apiv2

Frequently asked questions

What can a Tray.ai workflow do in APITemplate.io?

The APITemplate.io API documents 13 actions across 4 resources (PDFs, Images, Templates, Account). For example: Create a PDF; Create an image; List templates. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with APITemplate.io?

The APITemplate.io API uses an API key in a request header. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

Which APITemplate.io events can start a Tray.ai workflow?

APITemplate.io sends one event to a webhook URL, for example: PDF generated. A Tray.ai webhook trigger receives them and starts a workflow.

See APITemplate.io working against your stack.

We'll walk through a tailored demo with your systems plugged in.

Great, a couple more details

This helps us connect you with the right person. Optional, and you can skip it.