Integrations
Let AI agents use Assisthub as a set of tools, keep other applications in sync with webhooks, and call everything over a REST API.
AI agents with MCP
Assisthub runs a Model Context Protocol server, so agents can repurpose content, run pipelines and templates, and search your library as tools. It uses the Streamable HTTP transport and authenticates with an Assisthub API key.
http://assisthub.xyz/mcp
Send the key as Authorization: Bearer ak_… (or X-API-Key). Create one in your account. Each tool call that generates text counts toward the AI limit of 20 per minute, and results are saved to the library with the origin Agent.
Connect a client
claude mcp add --transport http assisthub http://assisthub.xyz/mcp \
--header "Authorization: Bearer $ASSISTHUB_API_KEY"
{
"mcpServers": {
"assisthub": {
"command": "npx",
"args": ["-y", "mcp-remote", "http://assisthub.xyz/mcp", "--header", "Authorization:${AUTH}"],
"env": { "AUTH": "Bearer ak_your_key_here" }
}
}
}
{
"mcpServers": {
"assisthub": {
"url": "http://assisthub.xyz/mcp",
"headers": { "Authorization": "Bearer ak_your_key_here" }
}
}
}
{
"inputs": [
{ "type": "promptString", "id": "assisthub-key", "description": "Assisthub API key", "password": true }
],
"servers": {
"assisthub": {
"type": "http",
"url": "http://assisthub.xyz/mcp",
"headers": { "Authorization": "Bearer ${input:assisthub-key}" }
}
}
}
curl -X POST http://assisthub.xyz/mcp \
-H "Authorization: Bearer $ASSISTHUB_API_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{
"jsonrpc": "2.0", "id": 1, "method": "tools/call",
"params": {
"name": "repurpose_content",
"arguments": { "content": "How we cut onboarding time in half…", "target_format": "LinkedIn" }
}
}'
Claude Desktop: add to claude_desktop_config.json (or add the server URL under Settings › Connectors). Cursor: .cursor/mcp.json. VS Code: .vscode/mcp.json.
Tools
| Tool | What it does | Type |
|---|---|---|
repurpose_content |
Rewrite content for one target channel and tone (for example a blog post as a LinkedIn post). Returns the new text and saves it to the library. | Generates |
batch_repurpose |
Rewrite the same content for up to 8 channels in one call. Each result is saved to the library. | Generates |
run_agent |
Run one focused task on the content: summarize (concise summary), seo (seo-optimized rewrite), social (social media post), email (email), blog (blog post), adcopy (ad copy), bullets (bullet points), title (title ideas), rewrite (rewrite for clarity), hashtags (hashtags), questions (engagement questions), sentiment (sentiment analysis), keywords (keywords), grammar (grammar check), faq (faq), quiz (quiz), studyguide (study guide). | Generates |
list_pipelines |
List the multi-step pipelines available to run, with their ids, categories and step names. | Read-only |
run_pipeline |
Run every step of a pipeline on the content; each step feeds the next. Get ids from list_pipelines. Can take a minute or more. | Generates |
list_templates |
List saved templates (preset formats, tone and instructions) with their ids. | Read-only |
use_template |
Apply a saved template to the content. Get ids from list_templates. | Generates |
search_library |
Find previously generated content. Returns titles, formats and ids without the full text; use get_library_item for the text. | Read-only |
get_library_item |
Get one library item with its full source and generated text. | Read-only |
delete_library_item |
Permanently delete one item from the library. Cannot be undone. | Destructive |
list_providers |
Show which AI providers are configured and reachable, and which is the default. | Read-only |
Webhooks
Add an HTTPS endpoint in Settings › Webhooks and Assisthub will POST a JSON event to it whenever library content changes, whether it came from the app, the API, a schedule or an AI agent.
| Event | Sent when |
|---|---|
content.created | A result was saved to the library (any feature, API or agent). |
content.updated | A library item was edited or favorited. |
content.deleted | A library item was deleted. |
content.shared | A library item was posted to a channel, or its post link or numbers were updated (Engagement). |
ping | You choose Send test in Settings. |
Request
POST /webhooks/assisthub HTTP/1.1
Content-Type: application/json
User-Agent: Assisthub-Webhooks/1.0
X-Assisthub-Event: content.created
X-Assisthub-Delivery: 8f1c…
X-Assisthub-Signature: t=1792680000,v1=5d41402abc4b2a76b9719d911017c592…
{
"id": "evt_9b2f6c0e1d4a4f7c8e21",
"type": "content.created",
"created": "2026-10-22T09:30:00Z",
"data": {
"id": "3f6c1e2a-…",
"title": "LinkedIn · How we cut onboarding time…",
"origin": "Agent",
"sourceFormat": "Blog",
"targetFormat": "LinkedIn",
"tone": "Professional",
"provider": "DeepSeek",
"tags": ["mcp/generate"],
"isFavorite": false,
"createdAt": "2026-10-22T09:30:00Z",
"url": "/Content/Details/3f6c1e2a-…",
"output": "We cut onboarding time in half. Here's what changed…",
"input": "How we cut onboarding time in half…"
}
}
Verify the signature
X-Assisthub-Signature is t=<unix seconds>,v1=<hex>, where v1 is HMAC-SHA256 of "{t}.{raw body}" using your endpoint's signing secret. Reject requests whose signature doesn't match or whose timestamp is more than five minutes old.
import crypto from "node:crypto";
// Use the raw request body, exactly as received.
export function verifyAssisthub(rawBody, header, secret, toleranceSec = 300) {
const parts = Object.fromEntries(header.split(",").map(p => p.split("=")));
const t = Number(parts.t);
if (!t || Math.abs(Date.now() / 1000 - t) > toleranceSec) return false;
const expected = crypto.createHmac("sha256", secret).update(`${t}.${rawBody}`).digest("hex");
const given = Buffer.from(parts.v1 ?? "");
return given.length === expected.length && crypto.timingSafeEqual(Buffer.from(expected), given);
}
import hashlib, hmac, time
def verify_assisthub(raw_body: bytes, header: str, secret: str, tolerance: int = 300) -> bool:
parts = dict(p.split("=", 1) for p in header.split(","))
t = int(parts.get("t", 0))
if abs(time.time() - t) > tolerance:
return False
expected = hmac.new(secret.encode(), f"{t}.".encode() + raw_body, hashlib.sha256).hexdigest()
return hmac.compare_digest(expected, parts.get("v1", ""))
using System.Security.Cryptography;
using System.Text;
static bool VerifyAssisthub(string rawBody, string header, string secret, int toleranceSec = 300)
{
var parts = header.Split(',').Select(p => p.Split('=', 2)).ToDictionary(p => p[0], p => p[1]);
if (!long.TryParse(parts.GetValueOrDefault("t"), out var t)
|| Math.Abs(DateTimeOffset.UtcNow.ToUnixTimeSeconds() - t) > toleranceSec) return false;
using var hmac = new HMACSHA256(Encoding.UTF8.GetBytes(secret));
var expected = Convert.ToHexString(hmac.ComputeHash(Encoding.UTF8.GetBytes($"{t}.{rawBody}"))).ToLowerInvariant();
return CryptographicOperations.FixedTimeEquals(Encoding.UTF8.GetBytes(expected), Encoding.UTF8.GetBytes(parts.GetValueOrDefault("v1") ?? ""));
}
Delivery
- Respond with any 2xx within 10 seconds. Do slow work after responding.
- Failed deliveries are retried after 10 seconds, 1 minute and 5 minutes. A 4xx response (other than 408 and 429) is not retried.
- An endpoint is disabled after 25 failed deliveries in a row; resume it from Settings.
- Use the event
idto ignore duplicates. Events can arrive more than once or out of order. - Endpoints must use HTTPS and a public address. Private, loopback and link-local addresses are rejected.
Calling from a browser app
Server-to-server calls work from anywhere. To call /api/v1 directly from a web page on another domain, an administrator adds that origin to the configuration:
"Integrations": {
"AllowedOrigins": [ "https://app.example.com" ]
}
Avoid putting long-lived API keys in public front-end code. Prefer calling Assisthub from your own backend.
Machine-readable descriptions
- /openapi/v1.json: OpenAPI 3 description of the REST API, for client generators and agent frameworks that import OpenAPI tools.
- /llms.txt and /llms-full.txt: Markdown summaries of the product and the complete API for language models.