NexoFlow
Docs · Start here Docs home

Technical SEODocumentation

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.

terminal
 npm install nexoflow-sdk
 # or
 pnpm add nexoflow-sdk
npm
$ 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?

Then NexoFlow writes the code for you in a pull request, with plain 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.
check your key
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

  1. In your hosting's environment settings, add NEXOFLOW_API_KEY with 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 .env file.
  2. Until the key is there, a new blog shows “No posts yet.” and the build still passes.
  3. After the deploy, /api/nexoflow/health on 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:

app/api/nexoflow/health
// 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

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 siteHow changes arriveWhat you set up
WordPressThe NexoFlow plugin (or an application password)Install the plugin; no code
Built from code, on GitHubPull requests NexoFlow opens; posts through the Content APIMerge the pull request that adds your blog, then add the site key to your hosting
Wix or SquarespaceThe NexoFlow blog widgetAdd 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

Apart from MCP, there's no public API for your SEO data. The Content API serves your published posts, site settings, structured data, llms.txt and post images to your own site.

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.