Assisthub
Developers

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 (MCP)Claude, Cursor, VS Code and any MCP client WebhooksSigned events when content changes REST APIJSON endpoints with API keys OpenAPI 3Generate clients and agent tools

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.

Server URL 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"

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

ToolWhat it doesType
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.

EventSent when
content.createdA result was saved to the library (any feature, API or agent).
content.updatedA library item was edited or favorited.
content.deletedA library item was deleted.
content.sharedA library item was posted to a channel, or its post link or numbers were updated (Engagement).
pingYou 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);
}

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 id to 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.