Skip to main content

AI assistants over MCP

Point any MCP-capable assistant at POST /api/v1/mcp with an API token. The endpoint executes reads and writes, it does not interpret them — there are no analysis features, by design.

Authentication​

The same bearer tokens as the REST API (Authorization: Bearer <token>), under the same per-token rate limit. Each tool checks the token's scopes exactly like its REST twin: a read-only token cannot create, and a denial comes back as a tool error in words, not a code to decode. There is no delete tool at all — an assistant acting on a misunderstood prompt must not be able to destroy what it cannot rebuild. It can rename a page or hide a block; it cannot remove either.

Tools​

ToolDoesNeeds
create_linkShorten a URL (destination_url, optional custom_slug, title, tags). Returns the id and public path.links:write
list_linksNewest-first links (query, limit up to 100).links:read
link_statsClicks for one link over a trailing window (link_id, days), with the previous window beside them. Same numbers the dashboard shows.links:read

Pages​

page_id is optional on get_page, add_block and reorder_blocks: omit it and the tool works on the bio page, which is the account's front door.

ToolDoesNeeds
list_pagesThe bio page plus every sub-page, with public paths and publish state.pages:read
get_pageOne page and its blocks in display order (page_id).pages:read
create_pageA sub-page under the handle (segment, title, optional description, theme).pages:write
update_pageTitle, description, theme, path segment, publish and index state (page_id plus the fields to change).pages:write
add_blockA block on a page (kind, label, url, description, icon, style).pages:write
update_blockLabel, destination, description, icon, style, visibility (block_id).pages:write
reorder_blocksEvery block id on a page, top to bottom.pages:write
update_profilePublic display name, bio, avatar.profile:write

Block kind is one of link, text, heading, social, embed, choice, buy, contact, product, gallery.

Analytics​

ToolDoesNeeds
account_statsAccount-wide clicks for a trailing window, the window before it, lifetime counters, and the busiest links (days).analytics:read

Campaigns​

Read-only. A giveaway is money, legal rules and a draw, and every editing step in the dashboard previews what an entrant will see — so the assistant reports on campaigns instead of restructuring them. Participant results carry no email, phone, or custom-field answers.

ToolDoesNeeds
list_campaignsGiveaways with live participant, entry, and view counts (status, limit).campaigns:read
get_campaignOne giveaway: name, public path, status, window, timezone (campaign_id).campaigns:read
campaign_statsViews, joins, entries, and shares for a trailing window, with the window before it (campaign_id, days).campaigns:read
list_participantsEntrants, paginated and searchable (campaign_id, search, limit).campaigns:read

Booking​

Read-only. An event type is availability rules, buffers, notice windows and a calendar connection — each one a dashboard form where the effect is visible. Invitee email is never returned.

ToolDoesNeeds
list_event_typesBookable event types: slug, title, duration, public path, location, live booking count.booking:read
list_bookingsBookings with event, time, status, and invitee name (status, scope, search, limit).booking:read
booking_statsUpcoming, requests, completed, cancelled, and this month.booking:read

Forms​

Read-only, and answers stop at metadata: the schema says what the creator asked, the response list says when someone replied. The answer bag is not part of this surface, because a form response is the easiest payload to paste into a chat window.

ToolDoesNeeds
list_formsForms with public path, status, responses, and views.forms:read
get_formOne form's questions: key, type, label, required (form_id).forms:read
form_statsViews, starts, responses, last seven days, completion and response rate (form_id).forms:read
form_responsesSubmission metadata — when, status, test flag — never the answers (form_id, limit).forms:read

Domains​

The one write in this group, because the work is one call plus a DNS record: the assistant prepares it, the human pastes it, and nothing is served until verification passes.

ToolDoesNeeds
list_domainsDomains, verification state, remaining allowance, and the CNAME still needed for each unverified one.domains:read
add_domainAttach a hostname and return the CNAME record to create (hostname).domains:write

Protocol​

JSON-RPC 2.0 over Streamable HTTP: initialize, tools/list, tools/call. The server answers each request with a single JSON object — no SSE streams. Unknown methods and tools answer -32601, malformed envelopes -32700, and notifications (including notifications/initialized) take a bare 202 with no body.