0.0.1
OAS 3.0.0

QuePasa RAG SaaS API

API for RAG retrieval, managing documents, files, and related operations including Telegram integration.

Base URL

Production server

Bearer Authentication (bearerAuth)
Client Libraries
Shell
Ruby
Node.js
PHP
Python
More

Upsert documents

Insert new documents or update existing ones based on the ID.

Path Parameters
  • domain
    required
    string

    The domain name.

Body
application/json

List of documents to upsert.

array object[]

List of documents to upsert.

Responses
  • 200Operation accepted. Batch ID returned.
    application/json
  • 500Operation failed.
    application/json
POST/upload/data/documents/{domain}
Shell cURL
curl --request POST \
  --url https://api.quepasa.ai/api/v1/upload/data/documents/__DOMAIN__ \
  --header 'Content-Type: application/json' \
  --data '[
  {
    "id": "",
    "url": "",
    "pages": [
      {
        "text": "",
        "language": ""
      }
    ]
  }
]'
{
  "status": "…",
  "data": {
    "batch_id": "…",
    "processed_ids": [
      "…"
    ]
  }
}

Models