# Eagle doc

AI-Powered, Fast, Reliable and Accurate Invoice OCR and Receipt OCR API for Seamless Integration

- **Category:** ai document extraction
- **Auth:** API_KEY
- **Composio Managed App Available?** N/A
- **Tools:** 10
- **Triggers:** 0
- **Slug:** `EAGLE_DOC`
- **Version:** 20260312_00

## Tools

### Process Any Document with OCR

**Slug:** `EAGLE_DOC_ANY_DOC_OCR`

Tool to process any document type with OCR and automatic classification. Supports bank statements, resumes, passports, delivery sheets, and more. Use when you need to extract structured data from various document types.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `file` | object | Yes | Document file to process (PNG, JPG, TIF, or PDF). |
| `docType` | string ("BankStatement" | "TravelTicket" | "Passport" | "BusinessCard" | "EmployeeIDCard" | "StudentIDCard" | "DrivingLicense" | "BirthCertificate" | "DeliverySheet" | "Resume") | No | Specify document type for targeted extraction. If not provided, the system will automatically classify the document type. |
| `privacy` | boolean | No | Privacy setting. Default true (file not stored on server). Set to false to store files. |
| `configId` | string | No | Custom extraction configuration ID for tailored extraction rules. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Submit Batch Any Document OCR Task

**Slug:** `EAGLE_DOC_BATCH_ANY_DOC_OCR`

Tool to submit batch OCR processing tasks for various document types including bank statements, resumes, passports, delivery sheets, and more. Use when you need to asynchronously process documents with custom configurations. The task is processed asynchronously; use the Results Check API with the returned task ID to monitor status and retrieve results.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `file` | object | No | Document file to process. Supports png, jpg, tif, or PDF formats including multi-page documents. |
| `privacy` | boolean | No | Privacy setting. Set to false to allow file storage for algorithm enhancement. Defaults to true (files are not stored). |
| `doc_type` | string ("BankStatement" | "TravelTicket" | "Passport" | "BusinessCard" | "EmployeeIDCard" | "StudentIDCard" | "DrivingLicense" | "BirthCertificate" | "DeliverySheet" | "Resume") | No | Predefined document type for optimized OCR results. Specify the document type to improve extraction accuracy. If not provided, the system will auto-detect the document type. |
| `file_url` | string | No | Direct URL to download the document file from. Alternative to providing a file directly. Useful when the file is available at a public URL. |
| `config_id` | string | No | Custom extraction configuration ID for specialized extraction needs. Use when you have a predefined configuration for specific document processing requirements. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Delete Batch Processing Task

**Slug:** `EAGLE_DOC_BATCH_TASK_DELETE`

Tool to delete a submitted batch processing task from the queue. Use when you need to cancel or remove a previously submitted batch OCR task before processing completes.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `taskId` | string | Yes | ID of the task received when documents were submitted for batch processing. This task will be removed from the queue. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Eagle Doc Invoice OCR from Base64

**Slug:** `EAGLE_DOC_INVOICE_OCR_BASE64`

Tool to extract invoice data from base64 encoded images using Eagle Doc OCR API. Use when you need to process invoice images that are already base64 encoded. Supports optional parameters for privacy control, coordinate extraction, and full text extraction.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `polygon` | boolean | No | If true, returns coordinate data (polygon) for each extracted field, indicating the position of the field on the page. Default is false. |
| `privacy` | boolean | No | Controls server storage of the document. If true, the document is not stored on the server (default). If false, it may be stored for algorithm improvement purposes. |
| `fullText` | boolean | No | If true, provides full text extraction line-by-line for each page of the document. Default is false. |
| `base64_image` | string | Yes | Base64 encoded invoice image or document string. Must be a valid base64 string representing the image file. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Management Quota

**Slug:** `EAGLE_DOC_MANAGEMENT_QUOTA`

Tool to get contractual quota allowance and current usage counters for all workloads. Use when you need to check remaining capacity for dashboards or billing workflows.

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Receipt OCR V3

**Slug:** `EAGLE_DOC_RECEIPT_OCR_V3`

Tool to process receipt images into structured JSON with 40+ fields including merchant info, line items, taxes, and payments. Use when extracting detailed data from receipt images or PDFs.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `file` | object | No | Receipt image or multi-page PDF file. |
| `speed` | boolean | No | If true, prioritizes speed over accuracy with selective LLM enhancement. |
| `polygon` | boolean | No | If true, returns coordinate data for drawing polygons around extracted text. |
| `privacy` | boolean | No | If true (default), file is not stored. If false, file may be stored for algorithm improvement. |
| `file_url` | string | No | Direct URL to download the receipt file from. Alternative to providing a file directly. Useful when the file is available at a public URL. |
| `fullText` | boolean | No | If true, returns full unstructured text array per page. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Receipt Quota V2 (Deprecated)

**Slug:** `EAGLE_DOC_RECEIPT_QUOTA_V2`

Tool to get quota information for receipt processing API v2 (deprecated). Use when you need to check available quota and usage for receipt OCR processing. Note: Multi-page receipts count each page as one request.

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Current Month Usage

**Slug:** `EAGLE_DOC_USAGE_CURRENT_MONTH`

Tool to get current month's usage statistics including quota, pages processed, over-usage, and costs. Use when you need to check API usage and billing information for the current billing period.

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Monthly Usage History

**Slug:** `EAGLE_DOC_USAGE_MONTHLY_HISTORY`

Tool to retrieve historical monthly usage data with pricing context for reconciliation and forecasting. Use when you need to analyze page processing trends or calculate costs.

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Usage Request Logs

**Slug:** `EAGLE_DOC_USAGE_REQUEST_LOGS`

Tool to retrieve chronological list of recent API calls with page counts and timestamps. Use for troubleshooting and auditing consumption patterns.

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |
