Who needs this
The Content API is how a site built from code shows the posts your team writes. If your site runs on WordPress, Wix or Squarespace, you don't need it: the plugin or the blog widget does the work. If your site's code is on GitHub, NexoFlow usually sets this up for you in a pull request, and the one step left is adding your site key to your hosting.
Full developer docs are at /docs.
Your site key
Your site reads its posts from NexoFlow with its site key, sent as a Bearer token.
- Make the key in Settings, then Connections, under Site key. It's shown once.
- Add it to your hosting's environment settings as
NEXOFLOW_API_KEY, then put your site live again from your hosting. - The change NexoFlow makes in your code only names the setting, so the key never sits in your code.
- Treat it like a password and use it from server code only.
When you connect GitHub, the Connections row turns green as soon as your site loads its first posts. See Connecting your website.
Content API v1
The base address is https://nexoflow.net.
| Request | What it returns |
|---|---|
| GET /api/v1/content/posts | Your published posts, a page at a time |
| GET /api/v1/content/posts/:slug | One post, with its HTML and related articles |
| GET /api/v1/content/site-settings | The site's settings |
| GET /api/v1/content/structured-data?path= | The JSON-LD one page should carry, ready to print in its head |
| GET /api/v1/content/llms-txt | Your llms.txt, from your business's records |
| GET /api/v1/content/images/… | Your post images, with long-lived cache headers |
| POST /api/v1/content/revalidate | For your cache: when content last changed |
| POST /api/v1/content/verify | Checks the site key works, from your server |
The nexoflow-sdk package
The nexoflow-sdk package for TypeScript (version 0.3.8) wraps posts and site settings, with retries, pagination and Next.js revalidation built in. Install it with npm install nexoflow-sdk. See the SDK docs.
Your SEO data
There is no general public API for SEO data. Your assistant can read it through NexoFlow's MCP server; see Connecting your AI assistant.
If you cancel
Posts served through the Content API stay up for 30 more days after your plan ends.
Moving from NexoFlow v1
If your site used the earlier version of NexoFlow, you can bring its published posts across with their addresses: Settings, then Connections, then Bring your blog from NexoFlow v1, with the business's Content API key from v1. See New pages, posts and page refreshes.
Common questions
Where does the site key go?
In your hosting's environment settings, as NEXOFLOW_API_KEY. The change NexoFlow makes only names the setting, so the key never sits in your code. Use it from server code only.
Is there an API for my SEO data?
Not a general one. Your SEO data is available to AI assistants through NexoFlow's MCP server. The Content API serves your posts, site settings, structured data, llms.txt and images to your site.
What happens to my posts if I cancel?
Posts served through the Content API or the blog widget stay up for 30 more days. Your content stays yours.