# DocRaptor AI integration on Definable

> The best and easiest HTML-to-PDF API

## What this connects

The best and easiest HTML-to-PDF API

Vendor: https://docraptor.com/

## Tools available

**10** tools available. First 10:

- `DOCRAPTOR_CREATE_ASYNC_DOC` — Create Async Document — Tool to create documents asynchronously from HTML content. Use when generating PDF, XLS, or XLSX documents and you need to poll for completion status or use a callback URL for notification. Returns a response containing an `id` field — store this value and pass it to DOCRAPTOR_GET_ASYNC_DOC_STATUS to poll for completion, then to DOCRAPTOR_GET_ASYNC_DOC to download the finished document.
- `DOCRAPTOR_CREATE_DOC` — Create Document — Tool to create a PDF or Excel document synchronously from HTML content or URL. Use when you need to generate a document file from HTML data. The document is returned immediately as a downloadable file. Either document_content or document_url must be provided, but not both.
- `DOCRAPTOR_CREATE_DOCUMENT_FROM_REFERRER` — Create Document from Referrer — Tool to convert webpages into documents using referrer-based authentication without an API key. Use when you need to generate PDFs or Excel files from registered domains without explicit API credentials.
- `DOCRAPTOR_CREATE_HOSTED_ASYNC_DOC` — Create Hosted Async Document — Tool to create a hosted document asynchronously. Use when you need to generate a PDF, XLS, or XLSX document and track its completion status via callback_url or the status API.
- `DOCRAPTOR_GET_ASYNC_DOC` — Download Async Document — Tool to download a completed asynchronous document using the download URL from status response. Use when you have a download_id and need to retrieve the generated document file.
- `DOCRAPTOR_GET_ASYNC_DOC_STATUS` — Get Async Document Status — Tool to check the status of an asynchronously created document. Use when monitoring progress of async documents by polling for completion status.
- `DOCRAPTOR_LIST_DOCUMENTS_JSON` — List Documents (JSON) — Tool to retrieve a paginated list of previously created documents with metadata in JSON format. Use when you need to see document creation history or query past documents.
- `DOCRAPTOR_LIST_DOCUMENTS_XML` — List Documents (XML) — Tool to retrieve a paginated list of previously created documents with metadata in XML format. Use when you need to see document creation history or query past documents in XML format.
- `DOCRAPTOR_LIST_IPS_JSON` — List IPs (JSON) — Tool to get list of IP addresses that DocRaptor uses to download assets. Use when you need to know which IPs DocRaptor uses for asset downloading. Note: Using IPs for securing assets is not recommended as they can change without notice.
- `DOCRAPTOR_LIST_IPS_TEXT` — List IPs (Text) — Tool to retrieve a list of IP addresses that DocRaptor uses to download assets in plain text format. Use when you need to identify DocRaptor's IP addresses for network configuration or security purposes.

## Auth

Auth schemes: `API_KEY`.

## How agents use DocRaptor

Inside a Definable workflow, DocRaptor is one of the tools the **Distributor specialist** can call. Example coordination patterns:

- **Researcher → DocRaptor** — the Researcher (GPT-5.5) pulls context from DocRaptor (records, threads, documents), synthesises findings, and briefs the rest of the team.
- **Writer → Distributor → DocRaptor** — the Writer (Claude Opus 4.7) drafts copy in brand voice, the Verifier passes it, then the Distributor writes the result into DocRaptor (create record, post message, draft email).
- **Designer / Engineer → Distributor → DocRaptor** — the Designer ships an asset or the Engineer ships a code change, the Distributor delivers it via DocRaptor (attach file, open PR comment, post status).

The Verifier checks every DocRaptor call. On rate limit, schema drift, or auth refresh it self-heals and retries — the workflow completes without manual intervention.

## Categories

- developer tools — https://definable.ai/apps/category/developer-tools/

## Related

- HTML page: https://definable.ai/apps/docraptor/
- Same category (developer tools): https://definable.ai/apps/category/developer-tools/
- All integrations: https://definable.ai/apps/
- Workflow (multi-agent loop): https://definable.ai/workflow/
- Apps llms.txt index: https://definable.ai/llms-apps.txt
