Posts Collection
Retrieving structured content from FlowCMS headless API
Data Table
JSON Response
Integration Code
| ID | Title | Author | Status | Published At | Actions |
|---|
cURL
curl -X GET "https://api.flowcms.io/v2/get/content/posts?limit=10" \n\ -H "Authorization: Bearer YOUR_API_KEY" \n -H "Content-Type: application/json"
JavaScript / Fetch
const response = await fetch('https://api.flowcms.io/v2/get/content/posts', {
method: 'GET',
headers: {
'Authorization': `Bearer ${FLOWCMS_API_KEY}`,
'Content-Type': 'application/json'
}
});
const data = await response.json();
console.log(data.posts);
GraphQL Query
query GetPosts($limit: Int = 10) {
posts(limit: $limit) {
id
title
slug
status
author {
name
avatar
}
publishedAt
}
}