> Agents can also search and read this documentation through its [MCP server](https://docs.humata.ai/guides/~gitbook/mcp).

# Getting started

This repository contains the documentation for Humata, including OpenAPI specifications.

## Setup

Install Python dependencies:

```bash
pip3 install -r requirements.txt
```

## OpenAPI Validation

To validate the OpenAPI specification:

```bash
python3 validate-openapi.py
```

The repository includes a pre-commit hook that automatically validates the OpenAPI file before commits and prevents commits if validation fails.


# Create an account

**Create an account**\
Sign up at Humata's [website](https://app.humata.ai/signup) using your Email and password (Should be at least 8 characters and may include special characters & numbers for a stronger password)

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2FrZugWVUVL8yEJZPIVupa%2Fimage.png?alt=media&amp;token=248f446d-53f2-4a96-b4e7-9cefa9e35afa" alt="" width="563"><figcaption><p>Sign up page</p></figcaption></figure>

Fill up the necessary fields and Click "Create an account".

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2FNgb1Qeteh1JlP9J8gS9n%2Fimage.png?alt=media&amp;token=836c10e6-c831-4f0d-bbb3-6293ab04125d" alt="" width="563"><figcaption></figcaption></figure>

A verification link will be sent to your email, check your inbox or SPAM folder.

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2F4DbPrgwPFSelOuRe3Uny%2Fimage.png?alt=media&amp;token=934fbac1-fd5b-491e-9253-f51ef177e4bc" alt=""><figcaption></figcaption></figure>

Confirm your signup by clicking the link to verify your email

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2FHyH7wVwWIYg7Sthqp8Qf%2FHumata_Email_Confirmation.png?alt=media&amp;token=3a7a2e4a-9ecf-4bbe-b0ca-73a565d227cb" alt=""><figcaption></figcaption></figure>


# Account settings

**Account settings**\
To go to the Account settings, click your profile located at the upper right corner of your screen and click Settings.

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2FRtTs6xvTY2PLybuK3BJc%2Fdefault2.jpg?alt=media&amp;token=a31f4329-32be-4cd1-bd86-a3d6f5fc714b" alt=""><figcaption></figcaption></figure>


# Plan information

**Plan information**\
You can check your plan information on the Account settings. Here you can monitor how many pages have been uploaded for the current month and how much additional charges will be added to your next bill.

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2Fi9vnrj5qrsDbZ3e1zAIh%2Fdefault1.jpg?alt=media&amp;token=32ae80b4-3ae3-4b72-913d-6f17a9978c58" alt=""><figcaption><p>Plan info will vary depending on your plan subscription</p></figcaption></figure>


# Pay-As-You-Go Spending Controls

**Pay-As-You-Go Spending Controls**\
On the Plan section of the Account settings, you can see the spending control feature where you can put a limit on how much you want to spend when uploading additional pages.

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2FCJZP02J8h7loRZ3sgklP%2Fimage.png?alt=media&amp;token=521c2893-6060-414d-b924-8ff154614fe7" alt=""><figcaption></figcaption></figure>


# How to set up single sign on

Allow your members to securely access Humata, ensuring a seamless login experience while strengthening overall security.

**SAML 2.0 Integration**

Use your company's existing SSO provider, such as:

* Okta
* Microsoft Azure Active Directory
* Google Workspace
* OneLogin  \
  and more to manage and log into Humata with our SSO SAML 2.0 connection through our authentication provider, Supabase.

Please follow the steps below to configure this authentication method.

1. Set up a new IDP connection with the information from the table provided below.
2. After configuring the IDP connection, download the SAML 2.0 Metadata XML file or a SAML 2.0 Metadata URL pointing to an XML file.
3. Email this configuration file to <support@humata.ai>, and we will complete the integration process.

<table data-header-hidden><thead><tr><th valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top"> </td><td valign="top">Please use the following connection information</td></tr><tr><td valign="top">Single sign-on URL</td><td valign="top">https://app.humata.ai/api/v1/sso/saml/acs</td></tr><tr><td valign="top">Recipient URL</td><td valign="top">https://api.humata.ai/auth/v1/sso/saml/acs</td></tr><tr><td valign="top">Destination URL</td><td valign="top">https://api.humata.ai/auth/v1/sso/saml/acs</td></tr><tr><td valign="top">Audience URI (SP Entity ID)</td><td valign="top">https://api.humata.ai/auth/v1/sso/saml/metadata</td></tr><tr><td valign="top">Name ID format             </td><td valign="top">Email Address</td></tr></tbody></table>


# How to setup Multi-Factor Authentication

1. Go to the **Personal** section of the Account settings. Then scroll down to see the **Multi-Factor Authentication**.
2. Click the **Manage** button.

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2FrxooueXmcNE0qatloRIc%2FPicture1.png?alt=media&amp;token=14ffddda-5609-4523-90ae-126ebd0fe341" alt=""><figcaption></figcaption></figure>

3. Enable the Multi-Factor Authentication, then click the **Add MFA method**.

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2FvoSfAg5MPkn6e8SqMpAM%2FPicture2.png?alt=media&amp;token=af6d3399-5ae9-4744-9b8b-3a9220cfb96f" alt=""><figcaption></figcaption></figure>

4. Scan the QR code with your authenticator app.

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2FCuodMnyztTcPfjWEIMPG%2FPicture3.png?alt=media&amp;token=a488750c-f569-4b4e-8515-b3d92648637b" alt=""><figcaption></figcaption></figure>

If you do not have a scanner, you may choose the **Can’t scan QR code?** option to get a code and manually enter the code in your authenticator app. Click the Copy secret key button to instantly copy the code.

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2Fo07E09acBGaLkwT2rGi7%2FPicture4.png?alt=media&amp;token=ea736132-6b3a-4fe8-891e-269af9982493" alt=""><figcaption></figcaption></figure>

5. Enter the verification code from your authenticator app, then click the **Verify and Enable MFA** button.

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2FGV6QInNn3jBAZzyjlegJ%2FPicture5.png?alt=media&amp;token=3f43ff9c-4a29-4b4e-bd53-326b18e4695a" alt=""><figcaption></figcaption></figure>

6. Every time you sign in to your Humata account, you will be asked to input the code from your Authenticator app. Then click the **Verify** button. This adds an extra layer of security to your account.

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2F4xsm05zby3Spklf1JXKs%2FPicture6.png?alt=media&amp;token=393e5aae-395b-48de-97a1-c99d518831d1" alt=""><figcaption></figcaption></figure>

**How to disable the Multi-Factor Authentication**

1. Click the trash bin icon to remove the Authenticator app from your Humata account.

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2F7AFi8Op15din8F7gnuCV%2FPicture7.png?alt=media&amp;token=790db81d-b399-4a72-a602-be7b46b561d2" alt=""><figcaption></figcaption></figure>

2. Enter the code from your Authenticator app to disable the Multi-Factor Authentication. Then click the **Verify and Disable MFA button**.2

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2Fwtxofw8I6AlAlWXy4wHf%2FPicture8.png?alt=media&amp;token=7f9752e8-2433-4c15-b601-01104e0ce1be" alt=""><figcaption></figcaption></figure>

3. Click the Multi-Factor Authentication button to disable.

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2FcBxmhVRZo9HKc7ijPkLG%2FPicture9.png?alt=media&amp;token=9f1845aa-d8db-4fc6-b94f-2c7c306d6d4c" alt=""><figcaption></figcaption></figure>


# How to upload

**How to upload?**\
To upload a file in Humata, drag and drop your files or folder in the upload section or you can choose to click the upload button to locate your document and upload.

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2FWR63JPiHIO2GkQpxa4OJ%2Fdefault1.jpg?alt=media&amp;token=6db9f40a-04d3-489c-87c7-bf794493058d" alt=""><figcaption></figcaption></figure>

After uploading a file, the ask feature will be automatically enabled. You can ask Humata what you want to know about your uploaded document.

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2F0daUT5Qnl7JOc5zeyJgM%2Fimage.png?alt=media&amp;token=0c833787-5349-42a4-94e1-53dcb424ff47" alt=""><figcaption></figcaption></figure>


# How to move files

**How to move files?**\
Choose the file or folder you want to move and click the three-dot icon next to the Ask button.

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2FDNbs8DFbk3jyngfJAO84%2FFile_mgt_1.JPG?alt=media&amp;token=3f7f76f7-24b5-4e11-9f6e-43bcd681ee77" alt=""><figcaption></figcaption></figure>

Select the “Move to” option.<br>

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2FGDyuCdd2S8dG9MBXMxg7%2FFile_mgt_2.JPG?alt=media&amp;token=1f984e83-70e2-41d4-8683-4a3e2dadcc5a" alt=""><figcaption></figcaption></figure>

A small window will pop-up and you will be directed to the “All Files” section, you should be able to see all the existing root folders on your Humata account.

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2FpvYrs3sxhRsgH7o0AGMy%2FFile_mgt_3.JPG?alt=media&amp;token=ca80e5b0-4bbe-467f-8e6e-cbb764e82063" alt=""><figcaption></figcaption></figure>

Choose your target location, the selected folder will be highlighted. Then click the “Move” button.

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2FMTZRvgnIqIjGlAnMAA0L%2FFile_mgt_4.JPG?alt=media&amp;token=76bde979-b5bd-4e59-86b0-d5f3beaccea0" alt=""><figcaption></figcaption></figure>

You can also move files or folders to a subfolder. Simply click the arrow ( > ) icon of the main folder and choose an existing subfolder.

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2F6tXOBX87ae49jADPOhfK%2FFile_mgt_5.JPG?alt=media&amp;token=b33f65de-b750-4cca-93f7-8d5befeb063d" alt=""><figcaption></figcaption></figure>

To move multiple files or folders, you need to tick the boxes next to the file or folder icon. Then, choose any of the three dot icons of the selected files and choose the “Move to” option.

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2FBJGax9dWLYVR0f8vUP0h%2FFile_mgt_6.JPG?alt=media&amp;token=5538108a-9816-4eb5-b272-163bf475d0f6" alt=""><figcaption></figcaption></figure>

Please note that if you choose the three-dot icon of an unselected file or folder, it will also be included when you relocate your files or folder to a new location.

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2FlqTSmhPUKppl1LXKkQpO%2FFile_mgt_1.JPG?alt=media&amp;token=210b8c3c-2195-4940-8465-0154d3909f63" alt=""><figcaption></figcaption></figure>

Select the “Move to” option.<br>

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2FfMvgTjeYKnv90WrvWPPH%2FFile_mgt_2.JPG?alt=media&amp;token=e076b7d9-62c1-4bcf-9a09-4eb560e9ace3" alt=""><figcaption></figcaption></figure>

A small window will pop up, and you will be directed to the “All Files” section. You should be able to see all the existing root folders on your Humata account.

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2FTTcjlDSvp033d7xuNE3l%2FFile_mgt_3.JPG?alt=media&amp;token=b2d52b8d-ec4f-432a-9971-2243387751ba" alt=""><figcaption></figcaption></figure>

Choose your target location, the selected folder will be highlighted. Then click the “Move” button.

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2Fad4PUOMnjaH5ge4gLFwQ%2FFile_mgt_4.JPG?alt=media&amp;token=3daafc5e-c156-42d1-af91-b44e7d2e874c" alt=""><figcaption></figcaption></figure>

You can also move files or folders to a subfolder. Simply click the arrow ( > ) icon of the main folder and choose an existing subfolder.

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2FjN8qNMRhO7KT11E5dfkg%2FFile_mgt_5.JPG?alt=media&amp;token=7d462c84-dcba-4011-8be5-d2be97281864" alt=""><figcaption></figcaption></figure>

To move multiple files or folders, you need to tick the boxes next to the file or folder icon. Then, choose any of the three dot icons of the selected files and choose the “Move to” option.

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2FGyDArnzHVrksdhQFPJKM%2FFile_mgt_6.JPG?alt=media&amp;token=15e7f2a8-55fb-450b-aadb-3ae48de1c710" alt=""><figcaption></figcaption></figure>

Please note that if you choose the three-dot icon of an unselected file or folder, it will also be included when you relocate your files or folder to a new location.

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2FjQW5hdTV09EzTcLtmaaW%2FFile_mgt_1.JPG?alt=media&amp;token=bdcc6173-759e-416e-86d1-45c329997feb" alt=""><figcaption></figcaption></figure>

Select the “Move to” option.<br>

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2Fj2u6StQdgZEYdZXtCRZK%2FFile_mgt_2.JPG?alt=media&amp;token=f9855c3e-4168-43e4-8023-9f282c422452" alt=""><figcaption></figcaption></figure>

A small window will pop up and you will be directed to the “All Files” section, you should be able to see all the existing root folders on your Humata account.

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2FYhREwEN4UJbwHJsI54BQ%2FFile_mgt_3.JPG?alt=media&amp;token=dd740b76-7114-4419-a38c-bbfcf39db7dd" alt=""><figcaption></figcaption></figure>

Choose your target location, the selected folder will be highlighted. Then click the “Move” button.

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2F3MJxFAr7UNW5AMVhAWgB%2FFile_mgt_4.JPG?alt=media&amp;token=5f58a8f4-25b3-4bdb-baf4-95d84b347bc3" alt=""><figcaption></figcaption></figure>

You can also move files or folders to a subfolder, simply click the arrow ( > ) icon of the main folder and choose an existing subfolder.

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2F57AEA31qT95inCFw99Nk%2FFile_mgt_5.JPG?alt=media&amp;token=22e5df8b-4d27-485d-8a3f-76b68f6e0010" alt=""><figcaption></figcaption></figure>

To move multiple files or folders, you need to tick the boxes next to the file or folder icon. Then choose any of the three-dot icons of the selected files and choose the “Move to” option.

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2FCFCpmV6S8FsEQqUj16Uo%2FFile_mgt_6.JPG?alt=media&amp;token=44300789-143e-413f-bb58-240488e82722" alt=""><figcaption></figcaption></figure>

Please note that if you choose the three-dot icon of an unselected file or folder it will also be included when you relocate your files or folder to a new location.


# Website Import

**How to import an entire website:**\
On the upload file section, click **“From URL”**\
![](https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2FSXIzoZUDJ1AN3CNTWt6d%2F0.png?alt=media)

A pop-up window will show where you can enter the website URL you want to import.

<br>

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2FawQFxQ4W8uZ0qLikHZBF%2F1.png?alt=media" alt=""><figcaption></figcaption></figure>

Once you enter the website URL. Press the tab on your keyboard select the website URL with an asterisk and press confirm.

![](https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2Fp4IOWpjtMcbKGOEqBwCr%2F3.png?alt=media)

Right after you press confirm. Humata will proceed to import the website. Once the importing of the website is complete. An ask botton will appear and you can start asking questions about your website.

<br>

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2FbZygCgnAaJ931sDEeHFp%2F4.png?alt=media" alt=""><figcaption></figcaption></figure>


# Managing permissions and access

**How to add a user to a plan**

To add users to an existing plan, go to **Account Settings> Settings > People.** Type the email address of the user then click invite. The invitation will be sent to their email. *Please note that the invited users should not have an existing account with Humata.*\
\
\**The invited user will receive the invitation via Email and needs to click the invitation link.*

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2FpFyTiVUdqOLBDFJtslql%2Fpicture%206.jpg?alt=media&amp;token=fb86c2db-72e7-4ceb-b143-63018c199d6f" alt=""><figcaption><p>Number of user that may be added to a plan may vary depending on your subscription.</p></figcaption></figure>

**Member management**\
Admins can manage members and assign roles (admin/member) and billing details.

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2FH2HpUpfQMGPcInaim0FK%2Fimage%20(1).png?alt=media&amp;token=9900f694-08c2-4148-8243-4e0c3140f282" alt=""><figcaption></figcaption></figure>

**Team management**\
To manage file access more easily, divide members into teams.

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2Fj5mZDtMPL5hLtKsie4yZ%2Fdefault1.jpg?alt=media&amp;token=bf013bd0-b4ab-4ddd-986a-e81929ab71c3" alt=""><figcaption></figcaption></figure>

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2FZlpW7IXsBHyTCVGy4LKj%2Fdefault1.jpg?alt=media&amp;token=36cb6f89-f076-4344-b5e2-1759fd4b942f" alt=""><figcaption></figcaption></figure>

**File restrictions**\
Admin can manage the access and restrictions to folders.

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2Fnkdq04rC4hLu0IBmg1B7%2Fdefault1.jpg?alt=media&amp;token=2e166cff-5dd7-4cfd-a930-113aec63c41d" alt=""><figcaption></figcaption></figure>

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2FhOEvmevgYfljhyFeekRP%2Fdefault1.jpg?alt=media&amp;token=25426324-5b00-45e0-a961-d05993713460" alt=""><figcaption></figcaption></figure>


# How to "Ask All"

**How to enable the "Ask all" feature.**\
To enable the "Ask All" feature, tick the boxes of the files or folder and click the Ask All button.

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2FT3DoNxTBnLSpn8SdEeMh%2Fimage.png?alt=media&amp;token=c9ed3500-6363-43d3-abce-9dd7e1973cea" alt=""><figcaption></figcaption></figure>

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2F6bSyc7He4c3Hd2Wk7U2z%2Fimage.png?alt=media&amp;token=71557b67-431a-4fac-a886-8a9fe1d5c2e4" alt=""><figcaption></figcaption></figure>


# Chat Settings

**Chat settings** You can choose between 3 modes on how Humata would respond to your questions.

**Grounded** - Humata strictly cites your documentation for precise answers. The AI will respond "I can not provide an answer based on the provided documents" if the information you seek cannot be found in your uploaded file.

**Balanced** - Humata will use your document first as a reference and to find information, but Humata may add extra insights and information not found in your uploaded document to complete an answer.

**Creative** - Humata expressively answers your questions loosely leveraging your document data. We recommend this setting if your question is out of topic or irrelevant to the document uploaded.

You can play around with the chat setting to find what response setting would best suit your needs.

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2FjBG4VWOCqBoyG8TnnrBk%2Fimage.png?alt=media&amp;token=065361c2-6261-4ae2-b6e2-b9894662349f" alt=""><figcaption></figcaption></figure>


# Custom Prompts

Custom prompts will be sent with all questions Humata users ask. This feature allows you to customize how Humata works and responds. Using this feature, you can set Humata to always answer in Spanish if your team exclusively speaks Spanish, or you can let Humata know that the user is extremely technical and it's encouraged to use domain-specific terms, or the reverse. You can design effective prompts for various simple tasks by using commands to instruct the model what you want to achieve, such as "Write," "Classify," "Summarize," "Translate," or "Order." Keep in mind that you also need to experiment a lot when creating prompts to see what works best.

How to set up Custom Prompt:\
Click your name icon on the upper right of your screen, click settings, and then click "Chats".<br>

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2FfIB0kTuvc0qWJOIqqtyW%2FCQ1.png?alt=media&amp;token=3a698c7e-b9ff-4511-b057-b93adf69971a" alt=""><figcaption></figcaption></figure>

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2FakZU0NzWKgQhyqDLwdqs%2FCQ2.png?alt=media&amp;token=09495946-7d6a-451c-97fb-93a02c899330" alt=""><figcaption></figcaption></figure>

Once you are in the Chat section page, you can now create your custom Prompt. Once you are done creating your prompt. Click "Save," and then you can start a conversation with Humata in any file you've uploaded.


# White Labeling

Humata supports white labeling of embedded chat views. This means that after uploading your files, you can embed Humata into your website and change Humata's logo to your company's brand and name.

Here is an example of what white labeling will look like once set up and embedded on your website.

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2Fgit-blob-17cbd15757fe50d5979b4dd5ae0b90cd42e1a21f%2Fwhite-labeling-example.png?alt=media" alt=""><figcaption></figcaption></figure>

After your account has been upgraded to the Enterprise tier, go to Settings > Organization and type in "Organization Name" and upload a logo for the "White Labeling" option.

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2Fgit-blob-452fdeed94788909b4097299695ae3cb580e9870%2Fadd-white-labeling-screen.png?alt=media" alt=""><figcaption></figcaption></figure>

Next, select the Folder or File you want to embed on your website and press "Ask > Share," then click the "Embed" button. You can use this embed code inside your website.

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2Fgit-blob-6e7604c590b89aa2bf1ab077a2c76c7fa7c3d952%2Fcreate_embed_example.png?alt=media" alt=""><figcaption></figcaption></figure>


# Humata API

How to Setup

The Humata API is the programmatic entry-point for your Humata documents, conversations, and answers.

##


# How to get your API Key

Setup

Here are the 3-steps to use the Humata API after you sign up:

1. Create a Humata API Key on the [Developer Settings Page](https://app.humata.ai/settings/developers) (Admin only)
2. Copy your Document IDs from the [Humata Dashboard](https://app.humata.ai/)

<figure><img src="https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2FnTkbgyvYJwwyI9Pidhr1%2Fimage.png?alt=media&amp;token=501f7343-de99-4702-bc0c-2209b0e0bea7" alt=""><figcaption></figcaption></figure>

3. Make API Requests


# How to Import Document

Humata allows you to import new documents via the API. By passing a publicly available URL (or signed URL) to this endpoint, the document will be downloaded and processed on the Humata server.

{% openapi src="/files/ANwcOfL9PysJBUOoneIJ" path="/v2/import-url" method="post" %}
[open-api.yaml](https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2Fgit-blob-4d955061fc20039380df41606f6cb4a77719b086%2Fopen-api.yaml?alt=media)
{% endopenapi %}

###


# How to GET Pdf

Fetch the information of an already created PDF. Typically this is useful to poll until `pdf.read_status == 'SUCCESS'` (and not `pdf.read_status == 'FAILED'`) before asking questions against the PDF.

{% openapi src="/files/ANwcOfL9PysJBUOoneIJ" path="/v1/pdf/{pdf-id}" method="get" %}
[open-api.yaml](https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2Fgit-blob-4d955061fc20039380df41606f6cb4a77719b086%2Fopen-api.yaml?alt=media)
{% endopenapi %}

###


# How to Create Conversations

Create a conversation with a set of documents. A conversation must be created before asking questions to documents.

{% openapi src="/files/ANwcOfL9PysJBUOoneIJ" path="/v1/conversations" method="post" %}
[open-api.yaml](https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2Fgit-blob-4d955061fc20039380df41606f6cb4a77719b086%2Fopen-api.yaml?alt=media)
{% endopenapi %}

###


# How to Ask

Humata allows you to chat with your document via the Ask endpoint. Create a conversation and then ask your documents

{% openapi src="/files/ANwcOfL9PysJBUOoneIJ" path="/v1/ask" method="post" %}
[open-api.yaml](https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2Fgit-blob-4d955061fc20039380df41606f6cb4a77719b086%2Fopen-api.yaml?alt=media)
{% endopenapi %}

#### Server-Sent Events

The Ask Endpoint returns a stream of [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events). Here is a full example of response to the question "Who is George Washington?":

```
data: { 'content': 'George Washington was ' }
data: { 'content': 'the first ' }
data: { 'content': 'president of the United States[3].' }
data: { 'content': '\n\nReferences - [3]: Page 10 of History of the United States.pdf' }
```

#### References

Each answer from Humata will provide references to the parts of the document that our AI used to answer the question. The format of references is subject to change.

###


# How to Download Data

Humata allows you to download your data via the Download Data endpoint. Simply initiate a request and retrieve your data effortlessly.

{% openapi src="/files/ANwcOfL9PysJBUOoneIJ" path="/v1/insights/download" method="get" %}
[open-api.yaml](https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2Fgit-blob-4d955061fc20039380df41606f6cb4a77719b086%2Fopen-api.yaml?alt=media)
{% endopenapi %}

###


# How to Create New Users

Humata provides a straightforward API solution for organizations to handle user sign-up and login processes.

{% openapi src="/files/ANwcOfL9PysJBUOoneIJ" path="/v1/users" method="post" %}
[open-api.yaml](https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2Fgit-blob-4d955061fc20039380df41606f6cb4a77719b086%2Fopen-api.yaml?alt=media)
{% endopenapi %}

{% openapi src="/files/ANwcOfL9PysJBUOoneIJ" path="/v1/users/token" method="post" %}
[open-api.yaml](https://360245911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8S8wUTipLV0NvvKYznS%2Fuploads%2Fgit-blob-4d955061fc20039380df41606f6cb4a77719b086%2Fopen-api.yaml?alt=media)
{% endopenapi %}


# FAQ

#### What is the API rate limit?

By default, the API rate limit is 120 requests/minute. This rate limit can be increased by request. Please reach out to <support@humata.ai> to get this limit raised.


