Skip to main content
The REST API covers the full task loop: create tasks, poll status, stream history, approve plans, send follow-ups, and cancel runs. Anything you can do from the web app’s composer, you can script.

Authentication

Create a key in workspace Settings → API Keys (it’s shown once — store it safely; you can set an expiration). Keys are workspace-scoped and start with twill_.

Basics

  • Base URL: https://twill.ai/api/v1
  • Rate limits: 100 requests/minute, 1000/hour per key
  • Errors: JSON envelope { "error": { "code", "message", "details?" } }
  • Pagination: list endpoints take limit and cursor, and return nextCursor while older entries exist

Quick example

Endpoint reference

Interactive playground with request/response schemas for every endpoint.
Prefer a terminal? The CLI wraps this API — tasks, automations, teleport, and sandbox SSH included.