Assisthub
Developers

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.

Base URL 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 toRequests per minute
Endpoints that call an AI model AI20
All requests combined600
GET /healthUnlimited

Errors

Errors return a non-2xx status and a JSON body with a human-readable message.

{ "error": "Invalid or missing API key" }
StatusMeaning
400The request is missing a required field or has an unknown value.
401The API key is missing, wrong or revoked.
404The pipeline or template id does not exist.
429Rate limit reached. Wait for Retry-After seconds.
500The AI provider or server failed. Safe to retry.

Content

Repurpose content

Try it
POST /api/v1/generate

Rewrite a piece of content for another format and tone.

API key required AI limit: 20/min

Body

content string required
The text to repurpose.
sourceFormat string
What the content is now, e.g. Blog, Article, Podcast. Default: Blog.
targetFormat string
What to turn it into, e.g. Twitter, LinkedIn, Email. Default: Twitter.
tone string
Professional, Casual, Humorous, Educational or Inspirational. Default: Professional.
provider string
AI provider for this call. Default: the workspace default. Ollama OpenAI Claude Gemini DeepSeek Qwen Auto
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"
}'

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
POST /api/v1/agent/{method}

Run a single-purpose agent such as summarize, seo or hashtags on your content.

API key required AI limit: 20/min

Path parameters

method string required
One of the agent methods listed below. summarize seo social email blog adcopy bullets title rewrite hashtags questions sentiment keywords grammar faq quiz studyguide

Body

content string required
The text to process.
provider string
AI provider for this call. Default: the workspace default. Ollama OpenAI Claude Gemini DeepSeek Qwen Auto
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."
}'

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
POST /api/v1/batch

Rewrite the same content for up to 8 target formats in one call. Each successful result is saved to the library.

API key required AI limit: 20/min

Body

content string required
The text to repurpose.
targetFormats string[] required
1 to 8 formats, e.g. ["LinkedIn", "Twitter", "Email"].
sourceFormat string
What the content is now. Default: Blog.
tone string
Default: Professional.
provider string
AI provider for every format. Default: the workspace default. Ollama OpenAI Claude Gemini DeepSeek Qwen Auto
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"
}'

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
GET /api/v1/agents

List the single-purpose agent methods you can call with Run an agent.

No key needed

This endpoint takes no parameters.

curl http://assisthub.xyz/api/v1/agents

Response 200

{
  "agents": [
    { "method": "summarize", "description": "Concise summary" },
    { "method": "hashtags", "description": "Hashtags" }
  ]
}

Pipelines

List pipelines

Try it
GET /api/v1/pipelines

List every multi-step pipeline with its id, category and number of steps.

No key needed

This endpoint takes no parameters.

curl http://assisthub.xyz/api/v1/pipelines

Response 200

{
  "count": 22,
  "pipelines": [
    { "id": "…", "name": "Blog Creation Pipeline", "description": "…", "category": "Content Marketing", "steps": 5 }
  ]
}

Run a pipeline

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

Run every step of a pipeline on your content. Each step's output feeds the next.

API key required AI limit: 20/min

Path parameters

id string required
Pipeline id from List pipelines.

Body

content string required
The input for the first step.
provider string
AI provider for every step. Default: the workspace default. Ollama OpenAI Claude Gemini DeepSeek Qwen Auto
Pipeline ids (22)
  • Contract Analysis Pipelinecontract-analysis
  • Financial Summary Pipelinefinancial-summary
  • Market Research Pipelinemarket-research
  • RFP Response Pipelinerfp-response
  • Vendor Evaluation Pipelinevendor-evaluation
  • Ad Copy Optimization Pipelinead-copy
  • Blog Creation Pipelineblog-creation
  • Content Repurposing Pipelinecontent-repurposing
  • Email Campaign Pipelineemail-campaign
  • Social Media Campaign Pipelinesocial-media-campaign
  • Customer Support Pipelinecustomer-support
  • FAQ Generator Pipelinefaq-generator
  • Review Response Pipelinereview-response
  • Bug Analysis Pipelinebug-analysis
  • Code Documentation Pipelinecode-documentation
  • Incident Response Pipelineincident-response
  • System Architecture Pipelinesystem-architecture
  • Test Case Generator Pipelinetest-case-generator
  • Career Coaching Pipelinecareer-coaching
  • Interview Preparation Pipelineinterview-prep
  • Job Application Pipelinejob-application
  • Study Guide Pipelinestudy-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."
}'

Response 200

{
  "success": true,
  "pipelineId": "…",
  "totalDurationMs": 18250,
  "steps": [
    { "name": "Summarize", "success": true, "output": "…", "error": null, "durationMs": 3120 }
  ]
}

Templates

List templates

Try it
GET /api/v1/templates

List the saved templates you can apply with Use a template.

No key needed

This endpoint takes no parameters.

curl http://assisthub.xyz/api/v1/templates

Response 200

{
  "count": 8,
  "templates": [
    { "id": "…", "name": "Meeting Notes to Email", "category": "Business", "sourceFormat": "Other", "targetFormat": "Email", "tone": "Professional" }
  ]
}

Use a template

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

Apply a saved template's formats, tone and instructions to your content.

API key required AI limit: 20/min

Path parameters

id string required
Template id from List templates.

Body

content string 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."
}'

Response 200

{
  "success": true,
  "templateId": "…",
  "templateName": "Meeting Notes to Email",
  "content": "…",
  "durationMs": 3900
}

Library

Search the library

Try it
GET /api/v1/content

List saved content, newest first, with optional search and filters. Returns metadata without the full text.

API key required

Query parameters

q string
Words to find in titles, text and tags.
origin string
Only items from one source. Repurpose Batch Pipeline Template Scheduled API Agent Manual
format string
Only items for one target format, e.g. LinkedIn.
favorite boolean
true for favorites only.
limit integer
1 to 100. Default: 20.
offset integer
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"

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
GET /api/v1/content/{id}

Get one saved item, including the source text (input) and the generated text (output).

API key required

Path parameters

id string 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"

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
DELETE /api/v1/content/{id}

Permanently delete one saved item. Fires the content.deleted webhook.

API key required

Path parameters

id string required
Library item id.
curl -X DELETE http://assisthub.xyz/api/v1/content/CONTENT_ID \
  -H "X-API-Key: $ASSISTHUB_API_KEY"

Response 200

{ "success": true, "id": "…" }

System

List providers

Try it
GET /api/v1/providers

List the AI providers, whether each is configured, and whether it is reachable now.

No key needed

This endpoint takes no parameters.

curl http://assisthub.xyz/api/v1/providers

Response 200

{
  "defaultProvider": "DeepSeek",
  "providers": [
    { "name": "DeepSeek", "configured": true, "available": true },
    { "name": "Ollama", "configured": true, "available": false }
  ]
}

Health check

Try it
GET /api/v1/health

Service status and provider reachability. Not rate limited.

No key needed

This endpoint takes no parameters.

curl http://assisthub.xyz/api/v1/health

Response 200

{
  "status": "healthy",
  "timestamp": "2026-10-22T09:30:00Z",
  "version": "1.0.0",
  "defaultProvider": "DeepSeek",
  "providers": { "Ollama": false, "OpenAI": true, "DeepSeek": true }
}