API Documentation
Integrate AI content repurposing into your applications
Quick Navigation
Overview
The AI Content Repurposer API allows you to programmatically transform content across multiple platforms using AI.
All API endpoints are available at http://assisthub.xyz/api/v1.
Authentication
All API requests require authentication using an API key. Include your API key in the request header:
Get your API key from your profile page. Keep your API key secure and never share it publicly.
Content Generation
Generate repurposed content from source content.
Request Body
{
"content": "Your original content here...",
"sourceFormat": "Blog",
"targetFormat": "Twitter",
"tone": "Professional",
"provider": "Ollama" // Optional: Ollama, OpenAI, Qwen, or Auto
}
Response
{
"success": true,
"content": "Generated content...",
"provider": "Ollama",
"durationMs": 1250
}
AI Agents
Execute specific AI agent methods for specialized content tasks.
Available Methods
summarize
seo
social
email
blog
adcopy
bullets
title
rewrite
hashtags
questions
sentiment
keywords
grammar
faq
quiz
studyguide
Request Body
{
"content": "Content to process...",
"provider": "OpenAI" // Optional
}
Pipelines
Execute multi-step AI workflows.
List all available pipelines.
Request Body
{
"content": "Input content...",
"provider": "Qwen" // Optional
}
Available Pipelines
content-repurposing
Content Repurposing Pipeline
blog-creation
Blog Creation Pipeline
social-media-campaign
Social Media Campaign Pipeline
email-campaign
Email Campaign Pipeline
ad-copy
Ad Copy Optimization Pipeline
bug-analysis
Bug Analysis Pipeline
code-documentation
Code Documentation Pipeline
test-case-generator
Test Case Generator Pipeline
system-architecture
System Architecture Pipeline
incident-response
Incident Response Pipeline
+ 12 more pipelines
Templates
List all available content templates.
Request Body
{
"content": "Content to transform..."
}
Health Check
Check API and provider status. No authentication required.
{
"status": "healthy",
"timestamp": "2024-01-15T10:30:00Z",
"providers": {
"Ollama": true,
"OpenAI": true,
"Qwen": false
}
}
Error Handling
The API uses standard HTTP status codes and returns error details in JSON format.
| Code | Description |
|---|---|
| 200 | Success |
| 400 | Bad Request - Invalid parameters |
| 401 | Unauthorized - Missing or invalid API key |
| 404 | Not Found - Resource doesn't exist |
| 429 | Too Many Requests - Rate limit exceeded |
| 500 | Internal Server Error |