Skip to content

API Overview

Agent HQ exposes a REST API for programmatic access to tasks, conversations, projects, and workspaces. All endpoints are under the /api prefix.

All API requests require authentication via session cookies. When you’re logged in to Agent HQ, your browser session automatically authenticates API requests.

For programmatic access, use the authentication endpoints to obtain a session. See Authentication for details.

https://your-instance.workers.dev/api

Replace your-instance.workers.dev with your Agent HQ deployment URL.

  • Content-Type: application/json for request bodies
  • Method: Standard HTTP methods (GET, POST, PUT, DELETE)
  • Response: JSON with appropriate HTTP status codes
{
"id": "abc123",
"title": "Fix login bug",
"status": "done"
}
{
"error": "Task not found"
}
[
{ "id": "abc123", "title": "Task 1" },
{ "id": "def456", "title": "Task 2" }
]

API requests are subject to Cloudflare Workers’ built-in limits. For most deployments, this is 1,000 requests per minute.

ResourceEndpoints
AuthenticationLogin, logout, OAuth flows
TasksCRUD, execute, interrupt, logs, files, annotations
ConversationsCRUD, messages, suggestions
ProjectsCRUD, files, merge
WorkspacesSettings, members, invitations