# DocRaptor

The best and easiest HTML-to-PDF API

This is a first-class FlyMyAI MCP. Agents **discover it automatically** via tool search and call the actions below on demand - you never wire it up by hand. See the [Composio catalog](https://docs.flymy.ai/mcp/composio.md) for how discovery works.

## Connect

**DocRaptor** authenticates with an API key. Generate the credential in your DocRaptor account, then paste it into FlyMyAI the first time an agent uses a DocRaptor action.

[Get your DocRaptor credential →](https://docraptor.com/documentation/api)

### Fields to fill in FlyMyAI

| Field | Details |
| --- | --- |
| `API Key` | Sign in and copy your API key directly from your DocRaptor dashboard _(required)_ |

## Actions

Every action this integration exposes. Agents pick the right one from the task; you do not call them by name.

| Action | What it does | Required inputs |
| --- | --- | --- |
| `DOCRAPTOR_CREATE_ASYNC_DOC` | 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. | `name`, `document_type` |
| `DOCRAPTOR_CREATE_DOC` | 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,… | `name`, `document_type` |
| `DOCRAPTOR_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` | 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. | `name`, `document_type` |
| `DOCRAPTOR_GET_ASYNC_DOC` | 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. | `id` |
| `DOCRAPTOR_GET_ASYNC_DOC_STATUS` | Tool to check the status of an asynchronously created document. Use when monitoring progress of async documents by polling for completion status. | `id` |
| `DOCRAPTOR_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` | 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` | 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` | 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. | - |

## Links

- [DocRaptor website](https://docraptor.com/)
- [Get API key / credential](https://docraptor.com/documentation/api)
- [Browse the full Composio catalog](https://docs.flymy.ai/mcp/composio.md)
