Content Management API
API endpoints for creating and managing content
Overview
The Content Management API allows you to programmatically create, read, update, and delete content in your IriSync account. With this API, you can automate content workflows, schedule posts, and synchronize content with other systems.
Content in IriSync is organized into different types such as posts, media, and templates. Each content type has its own set of endpoints and supported operations.
Example Usage
Here's a simple example of creating a new content post:
// Create a new content post
const createPost = async (postData) => {
const response = await fetch('https://api.irisync.com/api/content/posts', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
title: postData.title,
content: postData.content,
status: 'draft',
tags: postData.tags || []
})
});
return response.json();
};Key Endpoints
GET /api/content/posts - List all posts
GET /api/content/posts/{id} - Get a specific post
POST /api/content/posts - Create a new post
PUT /api/content/posts/{id} - Update a post
DELETE /api/content/posts/{id} - Delete a post