Skip to Content
Docs

Add pages or sites to a Website source; they stay in every sync

POST
/api/website/pages

Add pages or sites to a Website source; they stay in every sync. Pages are fetched and appended now (mode append). A site rebuilds the source like a sync (mode sync), and so does a page whose host makes a single-host source span several hosts (every page moves under a host folder), or any add on a vector store that can't change single chunks. Only what the source doesn't list yet is added and fetched: a page it lists under any spelling, or a site with the same address and settings; when that leaves nothing, a 400 with code already_listed and nothing is queued. Refused with code page_limit when the source would hold more than WEB_MAX_PAGES pages; a 500 with code queue_failed when the entries were saved but the task couldn't be queued (the next sync fetches them).

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
entries*array<>

Pages or sites to add (as in /api/website)

source_id*string

Source ID

Response Body

Success

Example Request
curl -X POST 'http://localhost:7091/api/website/pages' \  -H 'Content-Type: application/json' \  -d '{  "entries": [    {}  ],  "source_id": "string"}'
Example Response200
Empty