Assisthub

API Documentation

Integrate AI content repurposing into your applications

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.

50+
AI Agents
22
Pipelines
3
AI Providers

Authentication

All API requests require authentication using an API key. Include your API key in the request header:

X-API-Key: your_api_key_here

Get your API key from your profile page. Keep your API key secure and never share it publicly.

Content Generation

POST /api/v1/generate

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.

POST /api/v1/agent/{method}

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.

GET /api/v1/pipelines

List all available pipelines.

POST /api/v1/pipelines/{id}/execute

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

GET /api/v1/templates

List all available content templates.

POST /api/v1/templates/{id}/use

Request Body

{
  "content": "Content to transform..."
}

Health Check

GET /api/v1/health

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
200Success
400Bad Request - Invalid parameters
401Unauthorized - Missing or invalid API key
404Not Found - Resource doesn't exist
429Too Many Requests - Rate limit exceeded
500Internal Server Error