Build on top of NexoFlow
The NexoFlow Content API lets you use NexoFlow as a headless CMS backend. Fetch published content, handle webhooks for instant revalidation, and integrate into any frontend framework.
Content API
Fetch content in seconds
A single authenticated GET request returns your published content as typed JSON. Works with any language or framework that can make an HTTP request.
- JWT-based authentication
- Paginated, filterable responses
- Full post body, metadata, and SEO fields
- Consistent JSON schema across all content types
import { NexoFlow } from "nexoflow-sdk"
const nf = new NexoFlow({
apiKey: process.env.NEXOFLOW_API_KEY!,
revalidate: 60,
})
const { data } = await nf.posts.list({ limit: 10 })
// data.posts → PostListItem[]
// data.pagination → { page, limit, total, hasMore }REST API
Clean, predictable endpoints
Every endpoint follows REST conventions. Responses are typed JSON with consistent error codes and pagination metadata.
/v1/postsList posts (paginated)/v1/posts/:slugGet a single post by slug/v1/posts/slugsGet all slugs for static generationPagination
Paginate or iterate - your choice
Use posts.list() for page-by-page control, posts.all() to fetch everything at once, or the async iterator to stream through thousands of posts without manual pagination.
- posts.list() - paginated, with full pagination metadata
- posts.all() - auto-paginated, returns every post
- posts.iter() - async iterator, memory-efficient for large sets
- posts.slugs() - all slugs for generateStaticParams
- Filter by category, tag, or sort order on any method
// Paginated list
const { data } = await nf.posts.list({
limit: 12, page: 2, sort: "newest",
})
// Fetch all at once
const { data: all } = await nf.posts.all()
// Async iterator (memory-efficient)
for await (const post of nf.posts.iter()) {
console.log(post.title)
}
// All slugs for generateStaticParams
const slugs = await nf.posts.slugs()Everything you need to integrate
SDK reference
Full nexoflow-sdk documentation. Typed methods for listing, fetching, paginating, and iterating posts.
Read docsISR & revalidation
Pass revalidate to the SDK and cache headers are set automatically for Next.js Incremental Static Regeneration.
Read docsQuick-start guides
Step-by-step guides for connecting channels, fetching content, and using the SDK in any framework.
Read docsHeadless CMS setup
Use NexoFlow as a headless CMS backend. Works with Next.js, Astro, SvelteKit, and any JS frontend.
Read docsReady to integrate?
Sign up for free to get your API key and start pulling content into your frontend in minutes.
