Docs · Start here Docs home
Documentation
NexoFlow developer docs
What a site built from code needs to show the posts your NexoFlow team publishes: the Content API, the nexoflow-sdk package (v0.3.8) and your site key. Working from Claude or Cursor instead? That's the MCP server.
Quick start
Three steps take a code-built site from nothing to a list of its posts: install the package, add your site key to your hosting, and read the posts on the server. Pick your framework to see the third step in it.
Step 1 of 3
Install the package
nexoflow-sdk has no dependencies and full TypeScript types. It runs on the server: Node 18+, edge runtimes, Deno and Bun.
npm install nexoflow-sdk
# or
pnpm add nexoflow-sdk
$ npm install nexoflow-sdk
added 1 package in 1s- 0 dependencies
- TypeScript types
- Retries built in
- Node 18+ · edge · Deno · Bun
Is your site's code on GitHub?
fetch and no package added. Only step 2 is yours: the key in your hosting. See connecting through GitHub.Your site key
Your site key is the Content API key for one website. It starts with pk_live_ and goes in every request as Authorization: Bearer. In NexoFlow, open Connections, then Website, then Site key: choose Create key, or Show key for a key nobody has seen yet. NexoFlow shows a key once, so copy it straight into your hosting's environment settings as NEXOFLOW_API_KEY.
- Server only. The key is a secret. Never put it in a browser bundle, a client component or a URL: the API refuses keys sent as
?key=, and it doesn't answer browsers calling from other sites. - Lost it? Choose Make new key under Site key. Only one key works at a time, so the old one stops working right away and your site stops loading posts until your hosting has the new one. Revoke key turns the key off without a replacement.
- Connected? Any request your site makes with the key tells NexoFlow the site is connected. The Site key row shows when your site last used it.
curl https://nexoflow.net/api/v1/content/site-settings \
-H "Authorization: Bearer $NEXOFLOW_API_KEY"Connecting through GitHub
When your site's code is on GitHub, you don't write the integration. In Connections, under Website, sign in with GitHub, choose your site's code and press Connect my site. NexoFlow prepares the change that adds your blog in an isolated workspace that never sees your secrets, and it arrives as a pull request for you to review. Nothing changes on your site until you merge it. The pull request adds:
- A small server-only helper that reads the Content API with
fetch. No package is added and no lockfile changes. - Your blog list at
/blog, or at the address your blog already has, with page links. - Post pages at the address your permalink setting gives (each post's
path), with the title, meta description and robots tags taken from the post. - The posts in your sitemap, and a Blog link in your navigation if it has none.
- A check address,
/api/nexoflow/health, that tells NexoFlow whether the site can read its posts. It never returns the key.
Posts you already have, in Markdown files or from another service, stay at their addresses. The key is never in the code: the pull request only names the setting.
After you merge
- In your hosting's environment settings, add
NEXOFLOW_API_KEYwith your site key as its value, then redeploy. On Vercel it's Settings, Environment Variables; on Netlify, Site configuration, Environment variables; on Cloudflare Pages, Settings, Variables and Secrets; on your own server, the app's.envfile. - Until the key is there, a new blog shows “No posts yet.” and the build still passes.
- After the deploy,
/api/nexoflow/healthon your site answers"connected": true, and the Website row in Connections turns green once the site loads its first posts.
Wiring it up by hand?
Follow the quick start above, and add the same check address so Chat can tell whether your site reads its posts. It calls the posts list with the key on your server and answers with one of these, never with the key or any part of it:
// GET /api/nexoflow/health on your own site
{ "ok": true, "provider": "nexoflow", "connected": true, "configured": true }
// When reading the posts list fails ("configured" is true if NEXOFLOW_API_KEY is set)
{ "ok": false, "provider": "nexoflow", "connected": false, "configured": false }Browse the docs
Every page of the reference, in the order most people read it. Each one stands on its own.
- Content API reference Base URL, the Bearer key, every endpoint, its fields and its errors.
- nexoflow-sdk overview Install, quick start, server-side rules and the response envelope.
- Configuration Timeouts, retries, ISR hints, a custom fetch, debug logs and hooks.
- Posts List, get, all, slugs and iter, the fields worth knowing, and examples.
- Errors NexoFlowError: status, code, trace ids, the is… flags and API statuses.
- Frameworks & types Next.js, Nuxt, SvelteKit, Astro, Remix, Express and edge runtimes.
The package is on npm as nexoflow-sdk under the MIT license.
Where the Content API fits
NexoFlow changes a website in one of three ways, depending on how the site is built. Only a site built from code reads its posts through the Content API; on WordPress and on Wix or Squarespace there's nothing to code.
| Your site | How changes arrive | What you set up |
|---|---|---|
| WordPress | The NexoFlow plugin (or an application password) | Install the plugin; no code |
| Built from code, on GitHub | Pull requests NexoFlow opens; posts through the Content API | Merge the pull request that adds your blog, then add the site key to your hosting |
| Wix or Squarespace | The NexoFlow blog widget | Add the widget to your site |
Code changes run in isolated workspaces that never see your secrets, and pull requests stay drafts until your site's checks pass. Merges happen only on your OK. The developer overview covers the guardrails.
Using an AI assistant instead
If you'd rather work from Claude, Cursor or any MCP client, connect it to https://nexoflow.net/mcp. It signs in with OAuth, and you can rotate or revoke its tokens. It reads your Search Console keywords, reviews and content, and it can draft and schedule posts, but never publish on the spot: scheduling is at least 30 minutes ahead, so it can be cancelled. The MCP page has every client's setup. It's separate from the site key.
Not a general SEO data API
Need a hand?
For how the app works, the help centre has step-by-step guides. For anything else, email [email protected] or read the FAQ. Security questions are answered on the security page.