Skip to content

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

Create access token

POSThttps://api.butterix.com/v1/sites/:site/access-tokens

Requires the admin role. For reading the pages, .md, llms.txt, and MCP server of a password-protected site with Authorization Bearer. The token is returned only once, on creation. A site can have up to 50.

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.
namestringRequired<=100 characters
expiresInDaysinteger or nullOptional1-3650

Days until it expires; left out or null means it stays valid

Response

New token
idstringOptional
tokenstringOptional

The full token, returned only this once

Errors