Skip to content

ButterIX v1 is out: versions, multiple languages, Ask AI, and a per-site MCP server, all built in. →

Add content source

POSThttps://api.butterix.com/v1/sites/:site/sources

Requires the editor role. A document is Markdown; a website is a public website fetched from url (respecting robots.txt). A site can have up to 20 sources.

Authentication

AuthorizationBearer

An organization API key, created in the console under Organization settings → API Keys, starting with biti_. It acts as editor and can't do anything that requires admin.

biti_sessionstring

The HttpOnly session cookie set on login. Requests that change data must be same-origin (the Origin header is checked) to prevent CSRF.

Path parameters

sitestringRequired

Site slug or id

Request

This endpoint expects an object.
kindenumRequired
Allowed values:
urlstringRequired

Address to cite for a document, or where fetching starts

titlestringOptional<=200 characters

Title; required for document, the host name by default for website

documentstringOptional<=500000 characters

Markdown content, document only

pathslist of stringsOptional<=20 items

Fetch only pages under these paths; the start URL's directory by default, website only

excludelist of stringsOptional<=20 items

Don't fetch pages under these paths, website only

maxPagesintegerOptional1-500Defaults to 100

Page limit, website only

refreshenumOptionalDefaults to weekly

How often to fetch again, website only

Allowed values:

Response

New content source; websites are fetched in the background
idstringOptional
kindenumOptional
Allowed values:
titlestringOptional
urlstringOptional
configobjectOptional

Fetch settings, website only

pathslist of stringsOptional
excludelist of stringsOptional
maxPagesintegerOptional
refreshenumOptional
Allowed values:
statusenumOptional
Allowed values:
errorstringOptional

Why the last fetch failed

pageCountintegerOptional
createdAtintegerOptional
refreshedAtinteger or nullOptional

When the content was last updated

nextAtinteger or nullOptional

When it's fetched next

pageslist of objectsOptional

Pages, 500 at most; not in lists

urlstringOptional
titlestringOptional
sizeintegerOptional

Number of characters of text

documentstringOptional

Markdown content, document only; not in lists

Errors