vTilt
By roleFoundersKnow what to fix firstMarketersSee what happens after the clickCMOsSee what your budget really buys
By businessSaaSTurn signups into active usersEcommerceSee why shoppers abandon cartsAgenciesProve your work to clientsEnterpriseOne customer record for every team
MeasureWeb AnalyticsFind where buyers leaveSession ReplaySee why they left, not just that they didAdsKnow what paid visitors do nextIntegrationsOne snippet feeds your stack
ThinkPeopleOne profile per customerCustomer MemoryvTilt remembers every visitorSite KnowledgeAnswers and audits from your own pages
ActAsk AIAnswers from real behaviorAI ChatChat that knows the visitorEmail CampaignsEmail from real visits
PricingWhy vTiltDocs
Docs / Headless blog (@v-tilt/content)
Getting Started
OverviewInstallInitializeIdentify usersTrack eventsLogout & resetVerify eventsCommon mistakes
Guides
Event forwardingGoogle Tag Manager
Site builders
WordPressShopifyWebflowWixSquarespaceReverse proxyRealtime dashboardSite knowledgeStudioWebsite chat MCP
Frontend frameworks
Next.jsNuxt.jsVue.jsReactReact RouterRemixGatsbySvelte / SvelteKitAstroAngularTanStack StartDocusaurus
Backend frameworks
NestJSHonoCloudflare WorkersDjangoFlaskLaravelPhoenixRuby on Rails
Backend languages
PythonPHPRubyElixirGoJava.NET / C#Rust
Stack guides
Vue + PHP
API Reference
Browser SDK
Script bundlesAutocaptureWeb VitalsSession recordingChat widgetOutbound messagesCookie consentFeature readinessRemote configurationDebug logging
Node SDK
Install & setupCapture, identify & aliasContext & shutdownGlobal properties & opt-outError tracking
Content SDK
Headless blog
MCP server
Guides
OverviewAuthenticationOAuthAgent skills (prompts)AI intelligenceSite knowledgeGoogle AdsMeta AdsGoogle Search ConsoleGoogle Business Profile
Client setup
CursorClaude DesktopVS CodeChatGPTCodex

Getting Started

OverviewInstallInitializeIdentify usersTrack eventsLogout & resetVerify eventsCommon mistakes

Guides

Event forwardingGoogle Tag Manager
Reverse proxyRealtime dashboardSite knowledgeStudioWebsite chat MCP

API Reference

Headless blog

MCP server

On this page

On this page

  • Install
  • Keys
  • Core client
  • Next.js helpers
  • Webhooks
  • Attribution
  • Related
DocsAPI ReferenceContent SDKHeadless blog

Headless blog (@v-tilt/content)

Last updated November 16, 2026

Read published posts from the Content API with delivery or preview keys, Next.js helpers, and webhook revalidation.

Use @v-tilt/content when your own Next.js (or Node) site renders a blog stored in vTilt. Authors write in Studio, MCP, or the management REST API; your site reads the published snapshot with a delivery key.

Important: Content is enabled per project. Mint a delivery (vtc_…) or preview (vtp_…) key from the management API (POST /api/v1/content/manage/keys) before calling the public routes.

#Install

npm install @v-tilt/content
bash

#Keys

KeyPrefixReadsWhere it may live
Deliveryvtc_Published posts onlyServer or browser
Previewvtp_Drafts tooServer only — the client throws if it sees one in a browser

Management keys (vtu_) and the tracker token (vt_) do not work on the public read API.

#Core client

import { createContentClient } from '@v-tilt/content'

const content = createContentClient({
  key: process.env.VTILT_CONTENT_KEY!, // vtc_… or vtp_…
  // baseUrl: 'https://www.vtilt.com',
})

const { posts, next_cursor } = await content.listPosts({ limit: 10 })
const post = await content.getPost('hello-world') // null when not found
typescript
MethodPath
listPostsGET /api/v1/content/posts
getPostGET /api/v1/content/posts/{slug}
listTerms / listAuthorsGET /terms, /authors
listRedirects / findRedirectGET /redirects
getFeed / getSitemapGET /feed.xml, /feed.json, /sitemap

Failures throw ContentApiError with code, status, and optional next / details.

#Next.js helpers

import {
  createNextContentClient,
  createRevalidateHandler,
} from '@v-tilt/content/next'

export const content = createNextContentClient({
  key: process.env.VTILT_CONTENT_KEY!,
})

// app/api/vtilt/revalidate/route.ts
export const POST = createRevalidateHandler({
  secret: process.env.VTILT_CONTENT_WEBHOOK_SECRET!,
})
typescript

createNextContentClient tags fetches with vtilt-content / vtilt-post-slug-… so the webhook can purge them. Preview keys bypass the cache.

#Webhooks

Register an endpoint with create_content_webhook (MCP) or POST /api/v1/content/manage/webhooks. Verify signatures with verifyWebhookSignature from @v-tilt/content (X-Vtilt-Signature: t=…,v1=…).

#Attribution

On each post page, call vt.setPageContext({ contentId, contentSlug, contentCollection: 'posts' }) so analytics events carry $content_id for per-post stats in Studio.

#Related

  • OpenAPI for management routes: GET /api/v1/content/openapi.json
  • Package README and example app live in the @v-tilt/content source package
PreviousError trackingNode SDKNextOverviewMCP server