UnDatasIO Docs
  • Getting Started
    • 😄Sign up for UnDatasIO
    • 😀Create UnDatasIO Task
    • Process individual files
      • For Python Developers
      • For Web Service
  • Vector database ingestion
    • Chromadb
    • Mongodb
    • Qdrant
    • Redis
    • Postgresql
    • LLM index qdrant
  • Example Sample
    • Undatasio tsla gen report02
    • Qwen2.5 math
Powered by GitBook
On this page
  • Web Service
  • Overview
  • Prerequisites
  • Get your API Keys
  • Get your task_name
  • Configuration
  • Upload file
  • View all uploaded files
  • Parse the specified PDF file
  • View version information for all parsed results
  • View the parsed result
  1. Getting Started
  2. Process individual files

For Web Service

Native Web Service for accessing the UnDatasIO Platform

PreviousFor Python DevelopersNextVector database ingestion

Last updated 4 months ago

Web Service

Overview

The UnDatasIO for Web Service enables easy interaction with the UnDatasIO API, allowing developers to execute queries and mutations against the UnDatasIO platform.

Prerequisites

Before you begin, ensure you have the following:

  • An active account on the with access to the API Settings page.

Get your API Keys

Get your task_name

Configuration

{
    "baseURL":"https://backend.undatas.io/api/api",
    "Content-Type":"application/x-www-form-urlencoded"
}

Upload file

# 2. Upload files
{
    "url": "/upload",
    "params": {
        "file": "File",
        "user_id": "Your API Keys",
        "task_name": "Your task_name"
    },
    "response": {
        "code": 200,
        "message": "success",
        "data": []
    }
}

View all uploaded files

# 3. View all uploaded files
{
    "url": "/view_upload_file",
    "params": {
        "user_id": "Your API Keys",
        "task_name": "Your task_name"
    },
    "response": {
        "code": 200,
        "message": "success",
        "data": [
        {
            "file_name":"",
            "size":""
        }
    ]
    }
}

Parse the specified PDF file

# 4. Parse files
{
    "url": "/task_return_list",
    "params": {
        "fileName": ["example_file1.pdf", "example_file2.pdf"],
        "user_id": "String",
        "task_id": "String",
        "lang": "en",
        "parameter": "fast"
    },
    "response": {
        "code": 200,
        "message": "success",
        "data": {}
    }
}

View version information for all parsed results

# 5. View historical parsing results
{
    "url": "/version_info",
    "params": {
        "user_id": "String",
        "task_name": "String",
    },
    "response": {
        "code": 200,
        "message": "success",
        "data": {}
    }
}

View the parsed result

# 6. View parsing results (assuming you know the version number is 'v1' and want to get the title and table information in the parsing results)
{
  "url": "https://backend.undatas.io/api/api/get_type_info",
  "params": {
    "user_id": "025ae1da7598456daa802fef7873e31b",
    "type_info": ["table"],
    "file_name": "1d8c9bc374114b6e901da.pdf",
    "version": "v26",
    "task_name": "pdfParserDemo"
  },
  "response": {
    "code": 200,
    "message": "success",
    "data": "result"
  }
}
UnDatasIO Platform