Skip to content

Developer docs · API v1

Connect your tools to AgentHub.

Read client and workflow records, and create or retrieve change requests through the workspace API.

The API does not approve, implement, verify, or close work. Those decisions stay with the people responsible for the work.

Looking for help using AgentHub?

Open the Help Center for setup, approvals, verification, and client updates. To begin without a connector, follow your first client change.

Last reviewed November 13, 2026.

Getting started

Create a workspace API key.

  1. Sign in as a workspace owner or admin.
  2. Open Settings, then Tools and apps, then API keys.
  3. Create a key. The current v1 key grants the narrow read and change-request write permissions listed on this page.
  4. Copy the key immediately. AgentHub stores its hash and cannot show it again.
  5. A key works only while the person who created it is an owner or admin. Removing that person, or changing their role, turns their keys off for good.

Authentication

Send the key as a bearer token.

Every v1 request uses the Authorization header. Keep the key on the server and never place it in client-side code, a public workflow export, or a prompt.

Header
Authorization: Bearer ah_live_your_key
Test the connectionGET https://app.agenthub.ai/api/v1/auth/test

Endpoints

Available endpoints

MethodEndpointPurpose
GET/api/v1/clientsList workspace clients.
GET/api/v1/workflows?client_id={id}List workflows, optionally filtered by client.
GET/api/v1/change-requests?limit=25Poll the newest change requests.
POST/api/v1/change-requestsCreate a requested change for an existing client workflow.

Use an optional ISO timestamp in since when polling change requests. The maximum limit is 100. Deduplicate results using the record id.

Create a change request

Create a change request

The client must be managed, and its workflow must already exist in the same AgentHub workspace. Title, request text, client ID, and workflow ID are required.

Request
curl https://app.agenthub.ai/api/v1/change-requests \
  -H "Authorization: Bearer ah_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "client_id": "client-uuid",
    "workflow_id": "workflow-uuid",
    "title": "Update the lead routing rules",
    "request_text": "Route enterprise leads to the strategic accounts team.",
    "priority": "normal"
  }'

Allowed priorities are low, normal, high, and urgent.

Example response

Response
{
  "id": "change-request-uuid",
  "client_id": "client-uuid",
  "workflow_id": "workflow-uuid",
  "title": "Update the lead routing rules",
  "request_text": "Route enterprise leads to the strategic accounts team.",
  "status": "requested",
  "priority": "normal",
  "requested_by_name": null,
  "due_at": null,
  "source": "agenthub",
  "source_reference": "AgentHub API: Zapier production",
  "created_at": "2026-07-29T14:35:00.000Z",
  "updated_at": "2026-07-29T14:35:00.000Z",
  "client_name": "Northwind Growth",
  "workflow_name": "Inbound qualification"
}

API boundaries

What v1 does not expose.

  • No client or workflow creation.
  • No approval action.
  • No live automation mutation or workflow write-back.
  • No verification, completion, or client-brief sign-off.
  • No general-purpose outbound webhooks yet.
Need an endpoint that is not listed?

Send the use case through a product question. We will evaluate the operating need before widening write access.

Connected workflow version history

History starts with a safe baseline.

The first supported sync for an n8n, Make, or Zapier workflow records a forward-only structural baseline. AgentHub does not reconstruct versions from before that baseline was recorded.

  • Later syncs can show changes to workflow name or state, steps, connected systems, order, schedule, and routing where the provider exposes those details.
  • The level of detail differs by provider. When safe structural data cannot explain a changed fingerprint, AgentHub says the details are unavailable.
  • Credentials, parameters, field values, and execution payloads are not stored in the structural snapshot.
  • Node and step names are treated as private workspace data.
  • Public API v1 does not expose workflow-version or diff endpoints.

Claude and Claude Code

Read your clients from Claude.

AgentHub has a read-only connector for Claude and Claude Code at https://mcp.agenthub.ai/mcp. In AgentHub, open Settings, then Tools and apps, then AI apps for setup instructions. Add the connector in Claude or Claude Code, then sign in to AgentHub and choose the clients it may read.

  • It reads only the clients you tick, and only reads. It cannot approve, check, publish or send anything.
  • Owners and admins can connect. An operator needs the owner's permission; viewers cannot connect.
  • Use Disconnect in AgentHub to revoke that connection. Removing AgentHub in Claude does not revoke it in AgentHub. Claude Code can also use your Claude connection, so disconnect both connections to stop both. Anything already read is not recalled.

Claude Code

Terminal
claude mcp add --scope user --transport http agenthub https://mcp.agenthub.ai/mcp
claude mcp login agenthub

Step-by-step setup is in the Help guide Use your clients in Claude.

Get started

Build against a workspace of your own.

Keep using the tools that already run the workflow.

Start free

14 days free. Up to 3 clients. No card.

Questions first? Contact us.