Humata Docs
  • Getting started
    • Create an account
    • Account settings
      • Plan information
      • Pay-As-You-Go Spending Controls
    • How to set up single sign on
    • How to setup Multi-Factor Authentication
    • How to upload
      • How to move files
    • Website Import
    • Managing permissions and access
    • How to "Ask All"
    • Chat Settings
    • Custom Prompts
    • White Labeling
  • Humata API
    • How to get your API Key
    • How to Import Document
    • How to GET Pdf
    • How to Create Conversations
    • How to Ask
    • How to Download Data
    • How to Create New Users
    • FAQ
Powered by GitBook
On this page
  1. Humata API

How to Import Document

PreviousHow to get your API KeyNextHow to GET Pdf

Last updated 4 days ago

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.

  • POSTImport URL

Import URL

post

Imports a PDF from a given URL into the specified folder.

Authorizations
Body
urlstring · uriRequired

The URL of the PDF to import.

folder_idstring · uuidRequired

The UUID of the folder to import the PDF into.

Responses
200
Successfully imported the PDF.
application/json
401
Unauthorized access, invalid API key.
application/json
429
Rate limit exceeded.
application/json
post
POST /api/v2/import-url HTTP/1.1
Host: app.humata.ai
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 97

{
  "url": "https://pdfobject.com/pdf/sample.pdf",
  "folder_id": "e507832b-bdef-4baf-8423-822c1cb68e35"
}
{
  "id": "a8283bc7-02ee-471b-8590-5ef5401afa40"
}