# DocRaptor

The best and easiest HTML-to-PDF API

- **Category:** developer tools
- **Auth:** API_KEY
- **Composio Managed App Available?** N/A
- **Tools:** 10
- **Triggers:** 0
- **Slug:** `DOCRAPTOR`
- **Version:** 20260414_00

## Tools

### Create Async Document

**Slug:** `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. 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.

### Create Document

**Slug:** `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, but not both.

### Create Document from Referrer

**Slug:** `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.

### Create Hosted Async Document

**Slug:** `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.

### Download Async Document

**Slug:** `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.

### Get Async Document Status

**Slug:** `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.

### List Documents (JSON)

**Slug:** `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.

### List Documents (XML)

**Slug:** `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.

### List IPs (JSON)

**Slug:** `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.

### List IPs (Text)

**Slug:** `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.
