Skip to Content
Docs

Uploads remote source for vectorization

POST
/api/remote

Uploads remote source for vectorization. Honors an optional Idempotency-Key header: a repeat request with the same key within 24h returns the original cached response without re-enqueuing.

Personal access token scope: sources:write.

Authorization

bearer
headerAuthorizationBearer <token>

A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).

Request Body

application/json
  1. body
data*string

JSON loader config. For source=website: {entries: [{url, mode: page|site, max_pages, path_prefix, include_subdomains, discovery: auto|sitemap|links, sitemap_url}], skip: [url or https://host/path/*], keep_links}

name*string

Job name

repo_url?string

GitHub repository URL

source*string

Source of the data

sync_frequency?string

How often to re-fetch: never (default), daily, weekly or monthly

user*string

User ID

Response Body

Success

Example Request
curl -X POST 'http://localhost:7091/api/remote' \  -H 'Content-Type: application/json' \  -d '{  "data": "string",  "name": "string",  "source": "string",  "user": "string"}'
Example Response200
Empty