> For the complete documentation index, see [llms.txt](https://docs.docbits.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.docbits.com/administration-and-setup/settings/global-settings/integration/api-calls-and-examples.md).

# API Calls and Examples

In document processing, APIs can be used to automate various tasks such as extracting text from documents, analyzing document contents, converting between different file formats, and more. Here are some examples of APIs in document processing:

* **OCR (Optical Character Recognition) API:** This type of API allows you to extract text from images or scanned documents. For example:

<figure><img src="https://lh7-us.googleusercontent.com/PMTSWY9TbPtvDQYJ_6irKyUGKdYvojdi4Is_imdFyGDffbHMR6nB8K6DBzmJlJhXdbB6HtOY2jGW-B5UbgtpNEG9_LnkjbiKBdI0iP7BH-8M4mFNbA2EfGWqPgjDmdMuCTX2mA73oXk_YN0Kdqu5rIo" alt=""><figcaption><p>This request sends an image with text to the OCR API to extract the text.</p></figcaption></figure>

* **NLP (Natural Language Processing) API:** This API enables analysis of text content in documents, including keyword identification, entity recognition, sentiment analysis, etc. For example:

<figure><img src="https://lh7-us.googleusercontent.com/7lrjDlrXL5gVCAokA4R7DdA5GfAhQ1mlKp4LMa0V18nvjLVNRIrJMqr75bMAvoocWMb--7s8ksi8rd0BSM1jRD2Aw8tnOTxGTUbUx1yhg6pFr7r171ICuub92JGblwKbOiD0L4EdZqA_v8NzkjZlJNE" alt=""><figcaption><p>This request sends the text of a document to the NLP API for analysis.</p></figcaption></figure>

* **Conversion API:** This type of API allows conversion between different file formats, for example from PDF to Word or from Word to PDF. For example:

<figure><img src="https://lh7-us.googleusercontent.com/0wbf26KXgcsnqvfTY4q35K6xK8e3Ema1spoA9Z7tlkQmnAZVJ3M_A7wlkXPlQbkUTHOTlejYusRhpQb456l5zkMEqBmf4WMITFksDY94Rp6Y5_YilcL6MbA9t-JKLGCMayP9dIcKTLaYqQKMhr97Pv4" alt=""><figcaption><p>This request sends a PDF file to the conversion API to convert it into a Word document.</p></figcaption></figure>

* **Document Management API:** This API allows you to upload, download and manage documents in a document management system. For example:

<figure><img src="https://lh7-us.googleusercontent.com/wkZTLICbpBPKiSbZGN_rmF9gt47eTYRdkKWnAiuwMESzvsB0SBxok_VNjVc-FjyJmBIjBxUerBlnKzqhmMcPcs6Rg2BE2VlMTZLP4wBwBv3lWvHn426BfznfUbvhRi4cBR8Zlz-VDRH6a0c3FA_lNr4" alt=""><figcaption><p>This request uploads a document to the document management system.</p></figcaption></figure>

These examples show how APIs can be used in document processing to automate various tasks and improve efficiency. The exact functionality and syntax of the API depends on the particular API and its specific features.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.docbits.com/administration-and-setup/settings/global-settings/integration/api-calls-and-examples.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
