API reference
Repurpose content, run agents, pipelines and templates from your own code over a JSON REST API.
Overview
All endpoints live under one base URL, accept and return JSON, and use standard HTTP status codes.
http://assisthub.xyz/api/v1
13
Endpoints
17
Agent methods
22
Pipelines
6
AI providers
Authentication
Endpoints that call an AI model, and all library endpoints, need an API key. Send it in the X-API-Key header or as Authorization: Bearer. Listing and health endpoints work without one.
X-API-Key: ak_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Create and revoke keys on your profile page . Keep keys on the server side: never put them in browser code or commit them to source control.
Rate limits
Limits apply per API key (or per signed-in user) over a rolling one-minute window. When you go over, the API returns 429 with a Retry-After header giving the seconds to wait.
| Applies to | Requests per minute |
|---|---|
| Endpoints that call an AI model AI | 20 |
| All requests combined | 600 |
GET /health | Unlimited |
Errors
Errors return a non-2xx status and a JSON body with a human-readable message.
{ "error": "Invalid or missing API key" }
| Status | Meaning |
|---|---|
400 | The request is missing a required field or has an unknown value. |
401 | The API key is missing, wrong or revoked. |
404 | The pipeline or template id does not exist. |
429 | Rate limit reached. Wait for Retry-After seconds. |
500 | The AI provider or server failed. Safe to retry. |
Content
Repurpose content
Try it/api/v1/generate
Rewrite a piece of content for another format and tone.
Body
contentstring required- The text to repurpose.
sourceFormatstring- What the content is now, e.g. Blog, Article, Podcast. Default: Blog.
targetFormatstring- What to turn it into, e.g. Twitter, LinkedIn, Email. Default: Twitter.
tonestring- Professional, Casual, Humorous, Educational or Inspirational. Default: Professional.
providerstring-
AI provider for this call. Default: the workspace default.
OllamaOpenAIClaudeGeminiDeepSeekQwenAuto
curl -X POST http://assisthub.xyz/api/v1/generate \
-H "X-API-Key: $ASSISTHUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"content": "Artificial intelligence is changing how teams plan, write and publish. The best results come from pairing a clear brief with a model that knows your audience.",
"sourceFormat": "Blog",
"targetFormat": "LinkedIn",
"tone": "Professional"
}'
const res = await fetch("http://assisthub.xyz/api/v1/generate", {
method: "POST",
headers: {
"X-API-Key": process.env.ASSISTHUB_API_KEY,
"Content-Type": "application/json"
},
body: JSON.stringify({
"content": "Artificial intelligence is changing how teams plan, write and publish. The best results come from pairing a clear brief with a model that knows your audience.",
"sourceFormat": "Blog",
"targetFormat": "LinkedIn",
"tone": "Professional"
})
});
const data = await res.json();
import os
import requests
res = requests.post(
"http://assisthub.xyz/api/v1/generate",
headers={"X-API-Key": os.environ["ASSISTHUB_API_KEY"]},
json={
"content": "Artificial intelligence is changing how teams plan, write and publish. The best results come from pairing a clear brief with a model that knows your audience.",
"sourceFormat": "Blog",
"targetFormat": "LinkedIn",
"tone": "Professional"
}
)
data = res.json()
Response 200
{
"success": true,
"contentId": "3f6c1e2a-…",
"content": "AI is reshaping how teams plan, write and publish…",
"provider": "DeepSeek",
"durationMs": 4180
}
Run an agent
Try it/api/v1/agent/{method}
Run a single-purpose agent such as summarize, seo or hashtags on your content.
Path parameters
methodstring required-
One of the agent methods listed below.
summarizeseosocialemailblogadcopybulletstitlerewritehashtagsquestionssentimentkeywordsgrammarfaqquizstudyguide
Body
contentstring required- The text to process.
providerstring-
AI provider for this call. Default: the workspace default.
OllamaOpenAIClaudeGeminiDeepSeekQwenAuto
curl -X POST http://assisthub.xyz/api/v1/agent/summarize \
-H "X-API-Key: $ASSISTHUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"content": "Artificial intelligence is changing how teams plan, write and publish. The best results come from pairing a clear brief with a model that knows your audience."
}'
const res = await fetch("http://assisthub.xyz/api/v1/agent/summarize", {
method: "POST",
headers: {
"X-API-Key": process.env.ASSISTHUB_API_KEY,
"Content-Type": "application/json"
},
body: JSON.stringify({
"content": "Artificial intelligence is changing how teams plan, write and publish. The best results come from pairing a clear brief with a model that knows your audience."
})
});
const data = await res.json();
import os
import requests
res = requests.post(
"http://assisthub.xyz/api/v1/agent/summarize",
headers={"X-API-Key": os.environ["ASSISTHUB_API_KEY"]},
json={
"content": "Artificial intelligence is changing how teams plan, write and publish. The best results come from pairing a clear brief with a model that knows your audience."
}
)
data = res.json()
Response 200
{
"success": true,
"method": "summarize",
"content": "Pair a clear brief with an audience-aware model to get better AI-assisted content.",
"durationMs": 2240
}
Repurpose for several channels
Try it/api/v1/batch
Rewrite the same content for up to 8 target formats in one call. Each successful result is saved to the library.
Body
contentstring required- The text to repurpose.
targetFormatsstring[] required- 1 to 8 formats, e.g. ["LinkedIn", "Twitter", "Email"].
sourceFormatstring- What the content is now. Default: Blog.
tonestring- Default: Professional.
providerstring-
AI provider for every format. Default: the workspace default.
OllamaOpenAIClaudeGeminiDeepSeekQwenAuto
curl -X POST http://assisthub.xyz/api/v1/batch \
-H "X-API-Key: $ASSISTHUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"content": "Artificial intelligence is changing how teams plan, write and publish. The best results come from pairing a clear brief with a model that knows your audience.",
"targetFormats": ["LinkedIn", "Twitter", "Email"],
"tone": "Professional"
}'
const res = await fetch("http://assisthub.xyz/api/v1/batch", {
method: "POST",
headers: {
"X-API-Key": process.env.ASSISTHUB_API_KEY,
"Content-Type": "application/json"
},
body: JSON.stringify({
"content": "Artificial intelligence is changing how teams plan, write and publish. The best results come from pairing a clear brief with a model that knows your audience.",
"targetFormats": ["LinkedIn", "Twitter", "Email"],
"tone": "Professional"
})
});
const data = await res.json();
import os
import requests
res = requests.post(
"http://assisthub.xyz/api/v1/batch",
headers={"X-API-Key": os.environ["ASSISTHUB_API_KEY"]},
json={
"content": "Artificial intelligence is changing how teams plan, write and publish. The best results come from pairing a clear brief with a model that knows your audience.",
"targetFormats": ["LinkedIn", "Twitter", "Email"],
"tone": "Professional"
}
)
data = res.json()
Response 200
{
"success": true,
"results": [
{ "targetFormat": "LinkedIn", "success": true, "contentId": "…", "content": "…", "error": null, "durationMs": 4100 },
{ "targetFormat": "Twitter", "success": true, "contentId": "…", "content": "…", "error": null, "durationMs": 3600 }
]
}
List agents
Try it/api/v1/agents
List the single-purpose agent methods you can call with Run an agent.
This endpoint takes no parameters.
curl http://assisthub.xyz/api/v1/agents
const res = await fetch("http://assisthub.xyz/api/v1/agents");
const data = await res.json();
import requests
res = requests.get(
"http://assisthub.xyz/api/v1/agents"
)
data = res.json()
Response 200
{
"agents": [
{ "method": "summarize", "description": "Concise summary" },
{ "method": "hashtags", "description": "Hashtags" }
]
}
Pipelines
List pipelines
Try it/api/v1/pipelines
List every multi-step pipeline with its id, category and number of steps.
This endpoint takes no parameters.
curl http://assisthub.xyz/api/v1/pipelines
const res = await fetch("http://assisthub.xyz/api/v1/pipelines");
const data = await res.json();
import requests
res = requests.get(
"http://assisthub.xyz/api/v1/pipelines"
)
data = res.json()
Response 200
{
"count": 22,
"pipelines": [
{ "id": "…", "name": "Blog Creation Pipeline", "description": "…", "category": "Content Marketing", "steps": 5 }
]
}
Run a pipeline
Try it/api/v1/pipelines/{id}/execute
Run every step of a pipeline on your content. Each step's output feeds the next.
Path parameters
idstring required- Pipeline id from List pipelines.
Body
contentstring required- The input for the first step.
providerstring-
AI provider for every step. Default: the workspace default.
OllamaOpenAIClaudeGeminiDeepSeekQwenAuto
Pipeline ids (22)
- Contract Analysis Pipeline
contract-analysis - Financial Summary Pipeline
financial-summary - Market Research Pipeline
market-research - RFP Response Pipeline
rfp-response - Vendor Evaluation Pipeline
vendor-evaluation - Ad Copy Optimization Pipeline
ad-copy - Blog Creation Pipeline
blog-creation - Content Repurposing Pipeline
content-repurposing - Email Campaign Pipeline
email-campaign - Social Media Campaign Pipeline
social-media-campaign - Customer Support Pipeline
customer-support - FAQ Generator Pipeline
faq-generator - Review Response Pipeline
review-response - Bug Analysis Pipeline
bug-analysis - Code Documentation Pipeline
code-documentation - Incident Response Pipeline
incident-response - System Architecture Pipeline
system-architecture - Test Case Generator Pipeline
test-case-generator - Career Coaching Pipeline
career-coaching - Interview Preparation Pipeline
interview-prep - Job Application Pipeline
job-application - Study Guide Pipeline
study-guide
curl -X POST http://assisthub.xyz/api/v1/pipelines/content-repurposing/execute \
-H "X-API-Key: $ASSISTHUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"content": "Artificial intelligence is changing how teams plan, write and publish. The best results come from pairing a clear brief with a model that knows your audience."
}'
const res = await fetch("http://assisthub.xyz/api/v1/pipelines/content-repurposing/execute", {
method: "POST",
headers: {
"X-API-Key": process.env.ASSISTHUB_API_KEY,
"Content-Type": "application/json"
},
body: JSON.stringify({
"content": "Artificial intelligence is changing how teams plan, write and publish. The best results come from pairing a clear brief with a model that knows your audience."
})
});
const data = await res.json();
import os
import requests
res = requests.post(
"http://assisthub.xyz/api/v1/pipelines/content-repurposing/execute",
headers={"X-API-Key": os.environ["ASSISTHUB_API_KEY"]},
json={
"content": "Artificial intelligence is changing how teams plan, write and publish. The best results come from pairing a clear brief with a model that knows your audience."
}
)
data = res.json()
Response 200
{
"success": true,
"pipelineId": "…",
"totalDurationMs": 18250,
"steps": [
{ "name": "Summarize", "success": true, "output": "…", "error": null, "durationMs": 3120 }
]
}
Templates
List templates
Try it/api/v1/templates
List the saved templates you can apply with Use a template.
This endpoint takes no parameters.
curl http://assisthub.xyz/api/v1/templates
const res = await fetch("http://assisthub.xyz/api/v1/templates");
const data = await res.json();
import requests
res = requests.get(
"http://assisthub.xyz/api/v1/templates"
)
data = res.json()
Response 200
{
"count": 8,
"templates": [
{ "id": "…", "name": "Meeting Notes to Email", "category": "Business", "sourceFormat": "Other", "targetFormat": "Email", "tone": "Professional" }
]
}
Use a template
Try it/api/v1/templates/{id}/use
Apply a saved template's formats, tone and instructions to your content.
Path parameters
idstring required- Template id from List templates.
Body
contentstring required- The text to transform.
curl -X POST http://assisthub.xyz/api/v1/templates/TEMPLATE_ID/use \
-H "X-API-Key: $ASSISTHUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"content": "Artificial intelligence is changing how teams plan, write and publish. The best results come from pairing a clear brief with a model that knows your audience."
}'
const res = await fetch("http://assisthub.xyz/api/v1/templates/TEMPLATE_ID/use", {
method: "POST",
headers: {
"X-API-Key": process.env.ASSISTHUB_API_KEY,
"Content-Type": "application/json"
},
body: JSON.stringify({
"content": "Artificial intelligence is changing how teams plan, write and publish. The best results come from pairing a clear brief with a model that knows your audience."
})
});
const data = await res.json();
import os
import requests
res = requests.post(
"http://assisthub.xyz/api/v1/templates/TEMPLATE_ID/use",
headers={"X-API-Key": os.environ["ASSISTHUB_API_KEY"]},
json={
"content": "Artificial intelligence is changing how teams plan, write and publish. The best results come from pairing a clear brief with a model that knows your audience."
}
)
data = res.json()
Response 200
{
"success": true,
"templateId": "…",
"templateName": "Meeting Notes to Email",
"content": "…",
"durationMs": 3900
}
Library
Search the library
Try it/api/v1/content
List saved content, newest first, with optional search and filters. Returns metadata without the full text.
Query parameters
qstring- Words to find in titles, text and tags.
originstring-
Only items from one source.
RepurposeBatchPipelineTemplateScheduledAPIAgentManual formatstring- Only items for one target format, e.g. LinkedIn.
favoriteboolean- true for favorites only.
limitinteger- 1 to 100. Default: 20.
offsetinteger- Items to skip, for paging. Default: 0.
curl http://assisthub.xyz/api/v1/content?q=onboarding&limit=10 \
-H "X-API-Key: $ASSISTHUB_API_KEY"
const res = await fetch("http://assisthub.xyz/api/v1/content?q=onboarding&limit=10", {
headers: {
"X-API-Key": process.env.ASSISTHUB_API_KEY
}
});
const data = await res.json();
import os
import requests
res = requests.get(
"http://assisthub.xyz/api/v1/content?q=onboarding&limit=10",
headers={"X-API-Key": os.environ["ASSISTHUB_API_KEY"]}
)
data = res.json()
Response 200
{
"total": 42,
"offset": 0,
"limit": 20,
"items": [
{ "id": "…", "title": "LinkedIn · How we cut onboarding time…", "origin": "API", "sourceFormat": "Blog", "targetFormat": "LinkedIn",
"tone": "Professional", "provider": "DeepSeek", "tags": ["api/generate"], "isFavorite": false,
"createdAt": "2026-10-22T09:30:00Z", "url": "/Content/Details/…" }
]
}
Get a library item
Try it/api/v1/content/{id}
Get one saved item, including the source text (input) and the generated text (output).
Path parameters
idstring required- Library item id, from a generation response (contentId) or the search results.
curl http://assisthub.xyz/api/v1/content/CONTENT_ID \
-H "X-API-Key: $ASSISTHUB_API_KEY"
const res = await fetch("http://assisthub.xyz/api/v1/content/CONTENT_ID", {
headers: {
"X-API-Key": process.env.ASSISTHUB_API_KEY
}
});
const data = await res.json();
import os
import requests
res = requests.get(
"http://assisthub.xyz/api/v1/content/CONTENT_ID",
headers={"X-API-Key": os.environ["ASSISTHUB_API_KEY"]}
)
data = res.json()
Response 200
{
"id": "…",
"title": "LinkedIn · How we cut onboarding time…",
"origin": "API",
"targetFormat": "LinkedIn",
"output": "We cut onboarding time in half. Here's what changed…",
"input": "How we cut onboarding time in half…",
"createdAt": "2026-10-22T09:30:00Z",
"url": "/Content/Details/…"
}
Delete a library item
Try it/api/v1/content/{id}
Permanently delete one saved item. Fires the content.deleted webhook.
Path parameters
idstring required- Library item id.
curl -X DELETE http://assisthub.xyz/api/v1/content/CONTENT_ID \
-H "X-API-Key: $ASSISTHUB_API_KEY"
const res = await fetch("http://assisthub.xyz/api/v1/content/CONTENT_ID", {
method: "DELETE",
headers: {
"X-API-Key": process.env.ASSISTHUB_API_KEY
}
});
const data = await res.json();
import os
import requests
res = requests.delete(
"http://assisthub.xyz/api/v1/content/CONTENT_ID",
headers={"X-API-Key": os.environ["ASSISTHUB_API_KEY"]}
)
data = res.json()
Response 200
{ "success": true, "id": "…" }
System
List providers
Try it/api/v1/providers
List the AI providers, whether each is configured, and whether it is reachable now.
This endpoint takes no parameters.
curl http://assisthub.xyz/api/v1/providers
const res = await fetch("http://assisthub.xyz/api/v1/providers");
const data = await res.json();
import requests
res = requests.get(
"http://assisthub.xyz/api/v1/providers"
)
data = res.json()
Response 200
{
"defaultProvider": "DeepSeek",
"providers": [
{ "name": "DeepSeek", "configured": true, "available": true },
{ "name": "Ollama", "configured": true, "available": false }
]
}
Health check
Try it/api/v1/health
Service status and provider reachability. Not rate limited.
This endpoint takes no parameters.
curl http://assisthub.xyz/api/v1/health
const res = await fetch("http://assisthub.xyz/api/v1/health");
const data = await res.json();
import requests
res = requests.get(
"http://assisthub.xyz/api/v1/health"
)
data = res.json()
Response 200
{
"status": "healthy",
"timestamp": "2026-10-22T09:30:00Z",
"version": "1.0.0",
"defaultProvider": "DeepSeek",
"providers": { "Ollama": false, "OpenAI": true, "DeepSeek": true }
}