Skip to main content
POST
/
projects
/
{project_reference}
/
rag
/
documents
Upsert a RAG document
curl --request POST \
  --url https://api.veryfront.com/projects/{project_reference}/rag/documents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "<string>",
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "source": "<string>",
  "type": "<string>",
  "metadata": {}
}
'
{
  "document": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "title": "<string>",
    "source": "<string>",
    "type": "<string>",
    "metadata": {},
    "created_at": "<string>",
    "updated_at": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://veryfront.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Use a JWT bearer token or a Veryfront API key in the Authorization header.

Path Parameters

project_reference
string
required

Project ID or slug.

Body

application/json
title
string
required

Document title shown to operators and AI agents.

Minimum string length: 1
id
string<uuid>

Existing document ID to update. Omit to create a new document.

source
string

Optional upstream source reference such as a file path or URL.

type
string

Optional document type label used for retrieval metadata.

metadata
object

Optional structured metadata to persist alongside the document.

Response

Created or updated RAG document.

document
object
required

Created or updated RAG document.