---
category: [Administration & Integrations, Platform and Product Extensions, Platform and Product Extensions/Integration, Administration & Integrations/Custom Integrations & Apps, Platform and Product Extensions/Workday Extend]
keyword: [Extend, Workday AI Gateway, AI Gateway]
nav: wcp_docs
parent_url: /wcp_docs/
title: Document Intelligence REST APIs
layout: subsection
---

The Document Intelligence REST APIs use machine learning to simplify the handling and processing of enterprise business documents for automating end-to-end business user flows. Using Optical Character Recognition (OCR) and Natural Language Processing (NLP) technologies, the Document Intelligence REST APIs can scan images and extract text. The Document Intelligence REST APIs include:

-   [Contracts REST API](/wcp_docs/GUID-87c1b575-160a-49c1-b048-283968b2f254-enHYPHENus.html)
-   [Document Scan REST API](/wcp_docs/GUID-bd4cdd16-610d-4b05-ac81-6e3a2e3eb8f9-enHYPHENus.html)
-   [Financial Documents REST API](/wcp_docs/GUID-e76d5525-1c97-49a2-b127-c22a502718c2-enHYPHENus.html)
-   [Identification Documents REST API](/wcp_docs/GUID-d3ccde0d-b4f2-4604-a105-58b00743f4be-enHYPHENus.html)
-   [Receipt REST API](/wcp_docs/GUID-fed2bf16-2dcd-4c1d-9242-d6caa4486490-enHYPHENus.html)
-   [Resume REST API](/wcp_docs/GUID-f07adb7f-630e-42a2-9de9-a39652e34ec5-enHYPHENus.html)


The Document Intelligence REST APIs accept an input file attachment in the request body:

-   If you're using a client tool such as Bruno, select the binary format and attach a file, such as an image file with text.
-   In an Extend app, you can:

    -   Create a [model attachment object](/wcp_docs/rxi1560967931825.html).
    -   Use a [fileUploader](/wcp_docs/icc1518036830536.html) widget to upload and submit the file as an attachment object.
    -   Use an orchestration to get the model attachment object and send it as text in the request body. Example: See the Scan Document orchestration in the [Document Intelligence with the AI Gateway](https://developer.workday.com/app-catalog/documentIntelligenceWithTheAIGateway) reference app.



## <a id="section_1"></a>Security Considerations

For client tools such as Bruno, use the Bearer token for your tenant API access.

For Extend apps, see [Concept: Extend App Security](/wcp_docs/vel1628698852360.html).

## <a id="section_4"></a>Limitations

The maximum file size is 20 MB.

## <a id="section_15"></a>Common Errors

<table><thead><tr><th>Error</th><th>Cause and Solution</th></tr></thead><tbody><tr><td>403</td><td><ul><li>Innovation Services not opted in. See <i>Tenant Availability and Setup</i> in <a href="/wcp_docs/GUID-6a9a5c40-42e1-4b9b-911d-ba5457fc61ce.html">Concept: Workday AI Gateway</a>.
</li><li>Insufficient permissions. Note that AI Gateway is available in:

<ul><li>Development tenants for all Extend customers.
</li><li>Non-Development tenants for Extend Professional customers <i>only</i>.
</li></ul></li></ul></td></tr><tr><td>422</td><td>Missing or invalid request parameter.</td></tr><tr><td>500</td><td>Missing file attachment.</td></tr></tbody></table><br/>

## <a id="section_11"></a>Reference App

[Document Intelligence with the AI Gateway](https://developer.workday.com/app-catalog/documentIntelligenceWithTheAIGateway)

