Run governed AI work from your own systems
The same governed pipeline the dashboard uses is available over a public API. Keys are scoped, act with their creator's current permissions, and webhooks tell your systems when work finishes or a guardrail fires.
Updated · by the ThreadPool team
The problem
Teams want AI work triggered from their own tools, not another tab. But handing a script an API key must not become a way around approvals, policies or roles.
API keys that cannot outrun their owner
- Scopes: tasks:create, tasks:view, tasks:estimate, approvals:decide and gateway:run (for connecting agents you run yourself).
- A key acts as its creator: a request needs both the key's scope and the creator's current role and active membership, re-checked on every call. Demote or remove the person and the key loses power immediately.
- Only a hash and a public prefix are stored; the raw key is shown once. Unknown, revoked, expired and orphaned keys return the same 401.
- Task creation supports an Idempotency-Key header, so a retried request does not create a second task.
- No separate business logic: the API calls the same task service as the dashboard, so approval gates, policies and the Circuit Breaker apply identically.
Webhooks
- Events: task completed, partial and failed; approval requested, granted, rejected and expired; policy violations; Circuit Breaker triggered; and, for connected agents, gateway runs opened, steps reported and runs closed.
- Signed: HMAC-SHA256 over the timestamp and body. Secret rotation keeps the old secret valid for a 24-hour grace period.
- Reliable: failed deliveries are retried on a backoff schedule, up to six attempts, and every attempt is itself recorded as an event.
- Safe by design: delivery refuses private and internal network targets, does not follow redirects, and times out after 10 seconds.
- Quiet when unused: with no subscribed endpoint, nothing is created, sent or logged.
Limitations and trade-offs
- Webhook delivery is retried until it succeeds or attempts run out, so a receiver may see the same event more than once; make your handler idempotent.
Related
Already run your own agents?
Keep them. Plug them into ThreadPool.
Connect over MCP, the SDK or the API. ThreadPool authorizes every step, verifies the result with independent QA and records who did what. It never runs your agents or sees their model traffic.
Try it: give ThreadPool a task and a quality bar, and watch the workforce form.
Get started