Skip to content
DocRaptor logo

Connectors / Documents and e-signature · HTTP Connector

Automate DocRaptor with Tray.ai

Create a document in DocRaptor and start a workflow when DocRaptor sends “Document created”.

What can you do with DocRaptor on Tray.ai?

DocRaptor is an API that converts HTML into PDF and Excel files, with synchronous or queued generation and optional hosted download links. Tray.ai connects to DocRaptor through the HTTP Connector, so your workflows can call the DocRaptor API alongside the rest of your stack.

  • Create a document to turn each monthly statement into a PDF for your customers.
  • When DocRaptor sends “Document created”, store the PDF in your document system.
  • Create a document as an Excel report each week from your finance data.
Connects through
HTTP Connector
Authentication
Basic authentication or an API key in the query string
Base URL
https://api.docraptor.com

Set it up

Connect DocRaptor to Tray.ai

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

Step 1

Save DocRaptor's username and password

Save the credentials DocRaptor gives you as a Tray.ai authentication. The HTTP Client sends them as basic auth. They stay out of the workflow and out of the logs.

Step 2

Point the HTTP Client at the API

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

Step 3

Start with “List created documents”

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

Step 4

Start workflows from DocRaptor events

Give DocRaptor the URL of a Tray.ai webhook trigger. “Document created” can then start a workflow.

Workflows to build with DocRaptor

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

Create DocRaptor PDF reports from Salesforce opportunities

When

An opportunity closes in Salesforce

Then

  1. Create a document in DocRaptor from the deal summary
  2. Attach the PDF to the opportunity in Salesforce

With Salesforce

Save DocRaptor documents to Box

When

Document created

Then

  1. Download a finished document in DocRaptor
  2. Save it to the reports folder in Box

With Box

Give your AI agents DocRaptor tools

Build an MCP server on DocRaptor 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 document
  • Get job status
  • List created documents
  • Download a finished document

What the DocRaptor API covers

2 resources and 4 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.

Documents

  • Create a document
  • List created documents

Generation jobs

  • Get job status
  • Download a finished document

Events DocRaptor can send to a Tray.ai webhook trigger

  • Document created

Checked against DocRaptor's own documentation on 2026-10-22

docraptor.com/documentation/api

Frequently asked questions

What can a Tray.ai workflow do in DocRaptor?

+

The DocRaptor API documents 4 actions across 2 resources (Documents, Generation jobs). For example: Create a document; Get job status. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with DocRaptor?

+

The DocRaptor API uses basic authentication and an API key in the query string. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

Which DocRaptor events can start a Tray.ai workflow?

+

DocRaptor sends one event to a webhook URL, for example: Document created. A Tray.ai webhook trigger receives them and starts a workflow.

See DocRaptor 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.