Assistant API and tool reference
Everything personal AI assistants and automations need to discover, claim, update, and complete tasks in Aisenhour.
Overview
Compatible with Claude Desktop, Claude Code, Cursor, and any client speaking Model Context Protocol. Connected over Streamable HTTP at https://aisenhour.com/api/mcp.
Standard JSON REST API at https://aisenhour.com/api/v1 authenticated via Authorization: Bearer <API_KEY>. OpenAPI 3.1 spec at https://aisenhour.com/api/openapi.json.
Task ownership and board permissions
Aisenhour enforces two distinct boundaries to keep personal assistants safe while enabling human task capture and whole-board planning:
Capturing tasks: assignTo ('me' vs 'self')
When creating a task with aisenhour_create_task or POST /v1/tasks, you must provide assignTo:
- 'me': Captures a human-owned task for the user (
agentPickup: false). Enforces the user's active-task limit (25 on Free, unlimited on Pro) and returns{ id, title }. The assistant cannot read this task back unless whole-board reading is enabled. - 'self': Keeps the task for the calling assistant (
agentPickup: true, bound to that assistant's key).
Whole-board reading: canReadBoard
In Settings > My agents, users can toggle "Can read my whole board" per assistant:
- Read tools (
aisenhour_list_tasks,aisenhour_get_task,aisenhour_get_matrix_summary, andGET /v1/tasks): Include active tasks across all quadrants so the assistant can answer daily planning questions. - Strict write isolation: All write tools (
aisenhour_request_input,aisenhour_move_quadrant,aisenhour_complete_task,aisenhour_archive_task,aisenhour_add_subtask,aisenhour_report_progress, etc.) remain strictly limited to tasks assigned to that specific assistant.
Tools for assistants
The 14 tools registered for personal assistants. All tool schemas and arguments are code-generated directly from the shared codebase.
aisenhour_get_task
Retrieves one task by ID, limited to the calling assistant’s assigned tasks with pickup enabled (or an active board task when whole-board reading is enabled).
taskIdrequiredID of the single task to retrieve
aisenhour_get_matrix_summary
Provides executive summary counts of active tasks across all four quadrants (doFirst, decide, delegate, delete), upcoming deadlines, and claimable items.
aisenhour_list_tasks
Lists tasks from the Eisenhower Matrix with optional filters for assignment, claimable delegate tasks, quadrant, category, and status. Results are paged with limit and cursor.
assignedToMeoptionalIf true, filters to tasks explicitly assigned to the calling assistantclaimableoptionalIf true, filters to unassigned tasks in the Delegate quadrant enabled for agent pickupquadrantoptionalFilter by Eisenhower quadrant: doFirst, decide, delegate, deletecategoryoptionalFilter by category (Work, Personal, Health, Finance, etc.)lifecycleoptionalTask lifecycle state: active or archivedincludeScheduledoptionalIf true, includes tasks scheduled for a future start date. Defaults to false.includeCompletedoptionalIf true, includes completed-but-not-archived tasks. Defaults to false.statusoptionalFilter by completion status: "open"/"active" (default), "completed", or "all"queryoptionalCase-insensitive text search filter across title and descriptionlimitoptionalMaximum number of tasks to return (1..100, default 25)cursoroptionalPagination cursor token returned from a previous list call
aisenhour_create_task
Adds a new task to the user's Eisenhower Matrix canvas. Specify assignTo ("me" to capture for the person, or "self" for the assistant).
assignTorequiredAssign the task to the person ("me") or keep for this assistant ("self")titlerequiredTask title (concise and actionable, max 120 chars)quadrantoptionaldoFirst (critical/urgent), decide (strategic), delegate (human or agent delegation), delete (triage)categoryoptionalCategory nameassigneeoptionalText label for the assigned person or assistant (informational only; separate from task sharing invites)descriptionoptionalAdditional context or requirements (max 2000 chars)subtasksoptionalList of checklist subtasks (max 50 subtasks, each max 500 chars)dueDateoptionalISO date string or deadlinescheduledForoptionalStart date (YYYY-MM-DD); future tasks still count toward the active-task limitrecurringoptionalDaily, weekly or monthly habit; next due date is initialized in your timezonelifecycleoptionalTask lifecycle state (active, archived)doneWhenoptionalWhat a finished result looks like (max 500 chars)constraintsoptionalWhat not to do (max 500 chars)orderoptionalOptional fractional order position
aisenhour_add_subtask
Adds a new actionable checklist step to an existing task in the Eisenhower Matrix.
taskIdrequiredID of the tasktextrequiredChecklist step text (max 500 chars)assignedToAgentoptionalWhether this step is delegated to the assistant
aisenhour_complete_subtask
Marks a specific subtask as completed by the assistant on behalf of the user.
taskIdrequiredID of the parent tasksubtaskIdrequiredID of the subtask to check offnoteoptionalBrief note on what the assistant accomplished (max 1000 chars)
aisenhour_request_input
Asks the user a clarifying question about an assigned task, optionally offering quick-choice answer options.
taskIdrequiredID of the taskquestionrequiredClarifying question for the task owner (1..1000 chars)optionsoptionalOptional quick-choice answer options (up to 5 options, each max 120 chars)
aisenhour_report_progress
Logs an agent execution report and deliverable directly into the user's real-time Aisenhour drawer. Status must be "in_progress" or "delivered".
taskIdrequiredID of the taskstatusrequiredReport status: "in_progress" for interim updates or "delivered" for a completed result ready for user reviewthoughtoptionalSummary of what the assistant investigated or resolved (max 2000 chars)summaryoptionalFormatted summary or deliverable note (max 4000 chars)deliverableoptionalFormatted final text, summary, email draft, or links (max 10000 chars)completedSubtaskIdsoptionalIDs of any subtasks to mark completed
aisenhour_move_quadrant
Moves a task to another quadrant (e.g. from Delegate to Do First or Delete).
taskIdrequiredTask IDnewQuadrantrequiredTarget quadrant (doFirst, decide, delegate, delete)
aisenhour_complete_task
Marks a non-recurring or recurring task completed. For non-recurring tasks, sets completedAt without archiving.
taskIdrequiredID of the task to complete
aisenhour_archive_task
Archives a task by setting lifecycle to "archived". The task is removed from active matrix views into the Archive.
taskIdrequiredID of the task to archive
aisenhour_list_comments
Lists comments on a task enabled for AI agent pickup. Can specify target "private" or "shared".
taskIdrequiredID of the tasktargetoptionalTarget comments thread: "private" or "shared"
aisenhour_add_comment
Adds a comment on a task enabled for AI agent pickup. Defaults to private comments. Posting to a share thread requires a write key.
taskIdrequiredID of the tasktextrequiredComment text (max 2000 chars)targetoptionalTarget comments thread: "private" or "shared"
aisenhour_claim_task
Atomically claims a claimable unassigned task (claimable: true) from the Delegate queue for the calling agent (requires canClaim enabled on the agent key). Must be called before reading subtasks or mutating a claimable task.
taskIdrequiredID of the task to claim for this agent
Browser sign-in and authorization
For personal assistants connecting via remote URL. Compatible clients discover these OAuth 2.1 endpoints automatically to authenticate via the browser with PKCE (S256).
/.well-known/oauth-protected-resource
{
"resource": "https://aisenhour.com/api/mcp",
"authorization_servers": [
"https://aisenhour.com"
],
"bearer_methods_supported": [
"header"
],
"scopes_supported": [
"read",
"write"
]
}/.well-known/oauth-authorization-server
{
"issuer": "https://aisenhour.com",
"authorization_endpoint": "https://aisenhour.com/oauth/consent",
"token_endpoint": "https://aisenhour.com/api/oauth/token",
"registration_endpoint": "https://aisenhour.com/api/oauth/register",
"revocation_endpoint": "https://aisenhour.com/api/oauth/revoke",
"response_types_supported": [
"code"
],
"grant_types_supported": [
"authorization_code",
"refresh_token"
],
"code_challenge_methods_supported": [
"S256"
],
"token_endpoint_auth_methods_supported": [
"none",
"client_secret_post"
]
}/api/oauth/register
{
"client_name": "Cursor MCP",
"redirect_uris": [
"cursor://anysphere.cursor-mcp/oauth/callback"
]
}{
"client_id": "cli_0123456789abcdef",
"client_name": "Cursor MCP",
"redirect_uris": [
"cursor://anysphere.cursor-mcp/oauth/callback"
]
}/api/oauth/authorize
HTTP 302 Redirect to redirect_uri?code=ah_code_xxx&state=xyz
/api/oauth/token
{
"grant_type": "authorization_code",
"code": "ah_code_sample",
"code_verifier": "dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk",
"client_id": "cli_0123456789abcdef",
"redirect_uri": "cursor://anysphere.cursor-mcp/oauth/callback",
"resource": "https://aisenhour.com/api/mcp"
}{
"access_token": "ah_mcp_at_sample_token",
"token_type": "Bearer",
"expires_in": 3600,
"refresh_token": "ah_mcp_rt_sample_refresh",
"scope": "read write"
}/api/oauth/revoke
{
"token": "ah_mcp_rt_sample_refresh",
"token_type_hint": "refresh_token",
"client_id": "cli_0123456789abcdef"
}{
"success": true
}Direct web requests
For scripts, webhooks, and custom assistants. Every request requires an Authorization: Bearer <API_KEY> header. Unauthenticated OpenAPI 3.1 spec: https://aisenhour.com/api/openapi.json.
/v1/summary
curl -H "Authorization: Bearer YOUR_AH_LIVE_KEY" \ https://aisenhour.com/api/v1/summary
{
"success": true,
"totalActiveTasks": 11,
"upcomingTasksCount": 1,
"quadrantCounts": {
"doFirst": 3,
"decide": 5,
"delegate": 2,
"delete": 1
},
"doFirstTasks": [
{
"id": "tsk_101",
"title": "Finalize Q4 forecast",
"dueDate": "2026-11-15"
}
],
"delegateTasks": [
{
"id": "tsk_123456789",
"title": "Audit third-party dependencies",
"pendingSubtasks": 1
}
]
}/v1/agent-tasks
curl -H "Authorization: Bearer YOUR_AH_LIVE_KEY" \ https://aisenhour.com/api/v1/agent-tasks?quadrant=delegate
{
"success": true,
"count": 1,
"tasks": [
{
"id": "tsk_123456789",
"title": "Audit third-party dependencies",
"quadrant": "delegate",
"category": "Work",
"agentPickup": true,
"subtasks": [
{
"id": "sub_1",
"text": "Run license scanner",
"checked": false
}
]
}
]
}/v1/delegate-queue
curl -H "Authorization: Bearer YOUR_AH_LIVE_KEY" \ https://aisenhour.com/api/v1/delegate-queue
{
"success": true,
"queueCount": 1,
"tasks": [
{
"id": "tsk_123456789",
"title": "Audit third-party dependencies",
"category": "Work",
"description": "Check package.json for outdated licenses",
"subtasks": [
{
"id": "sub_1",
"text": "Run license scanner",
"checked": false
}
],
"agentPickup": true,
"claimable": false
}
]
}/v1/tasks
curl -H "Authorization: Bearer YOUR_AH_LIVE_KEY" \ https://aisenhour.com/api/v1/tasks?status=open
{
"success": true,
"count": 1,
"tasks": [
{
"id": "tsk_123456789",
"title": "Draft quarterly report outline",
"quadrant": "delegate",
"category": "Work",
"lifecycle": "active"
}
]
}/v1/tasks
{
"assignTo": "me",
"title": "Review supplier contract",
"quadrant": "delegate",
"category": "Work",
"description": "Check renewal terms and notice periods",
"subtasks": [
"Compare 2026 rates",
"Draft counter-offer email"
]
}curl -X POST -H "Authorization: Bearer YOUR_AH_LIVE_KEY" \
-H "Content-Type: application/json" \
-d '{"assignTo": "me", "title": "Review supplier contract", "quadrant": "delegate", "subtasks": ["Compare 2026 rates", "Draft counter-offer email"]}' \
https://aisenhour.com/api/v1/tasks{
"id": "tsk_987654321",
"title": "Review supplier contract"
}/v1/tasks/:taskId
curl -H "Authorization: Bearer YOUR_AH_LIVE_KEY" \ https://aisenhour.com/api/v1/tasks/tsk_123456789
{
"success": true,
"task": {
"id": "tsk_123456789",
"title": "Draft quarterly report outline",
"quadrant": "delegate",
"category": "Work",
"subtasks": [
{
"id": "sub_1",
"text": "Outline key highlights",
"checked": true
}
]
}
}/v1/tasks/:taskId
{
"quadrant": "doFirst",
"subtasks": [
{
"id": "sub_1",
"text": "Outline key highlights",
"checked": true
}
]
}curl -X PATCH -H "Authorization: Bearer YOUR_AH_LIVE_KEY" \
-H "Content-Type: application/json" \
-d '{"quadrant": "doFirst"}' \
https://aisenhour.com/api/v1/tasks/tsk_123456789{
"success": true,
"task": {
"id": "tsk_123456789",
"title": "Draft quarterly report outline",
"quadrant": "doFirst",
"externallyModified": true
}
}/v1/tasks/:taskId
curl -X DELETE -H "Authorization: Bearer YOUR_AH_LIVE_KEY" \ https://aisenhour.com/api/v1/tasks/tsk_123456789
{
"success": true,
"message": "Task tsk_123456789 deleted"
}/v1/tasks/:taskId/request-input
{
"question": "Should I focus on enterprise or self-serve accounts?",
"options": [
"Enterprise",
"Self-serve"
]
}curl -X POST -H "Authorization: Bearer YOUR_AH_LIVE_KEY" \
-H "Content-Type: application/json" \
-d '{"question": "Should I focus on enterprise or self-serve accounts?", "options": ["Enterprise", "Self-serve"]}' \
https://aisenhour.com/api/v1/tasks/tsk_123456789/request-input{
"success": true,
"question": "Should I focus on enterprise or self-serve accounts?",
"options": [
"Enterprise",
"Self-serve"
],
"assistantQuestion": {
"question": "Should I focus on enterprise or self-serve accounts?",
"options": [
"Enterprise",
"Self-serve"
],
"askedAt": "2026-11-12T05:00:00.000Z"
}
}/v1/tasks/:taskId/progress
{
"status": "delivered",
"summary": "Finished analysis with full report.",
"thought": "Analyzed vendor terms and identified 2 clauses to renegotiate.",
"deliverable": "Drafted counter-offer with recommended redlines.",
"completedSubtaskIds": [
"sub_1"
]
}curl -X POST -H "Authorization: Bearer YOUR_AH_LIVE_KEY" \
-H "Content-Type: application/json" \
-d '{"status": "delivered", "summary": "Finished analysis with full report."}' \
https://aisenhour.com/api/v1/tasks/tsk_123456789/progress{
"success": true,
"taskId": "tsk_123456789",
"runId": "agent-run-1762776000000"
}/v1/tasks/:taskId/report
{
"status": "delivered",
"summary": "Finished analysis with full report.",
"thought": "Analyzed vendor terms and identified 2 clauses to renegotiate.",
"deliverable": "Drafted counter-offer with recommended redlines.",
"completedSubtaskIds": [
"sub_1"
]
}curl -X POST -H "Authorization: Bearer YOUR_AH_LIVE_KEY" \
-H "Content-Type: application/json" \
-d '{"status": "delivered", "summary": "Finished analysis with full report."}' \
https://aisenhour.com/api/v1/tasks/tsk_123456789/report{
"success": true,
"taskId": "tsk_123456789",
"runId": "agent-run-1762776000000"
}/v1/tasks/:taskId/complete
curl -X POST -H "Authorization: Bearer YOUR_AH_LIVE_KEY" \ https://aisenhour.com/api/v1/tasks/tsk_123456789/complete
{
"success": true,
"recurring": false,
"task": {
"id": "tsk_123456789",
"lifecycle": "active",
"completedAt": "2026-11-10T12:00:00.000Z"
}
}/v1/tasks/:taskId/archive
curl -X POST -H "Authorization: Bearer YOUR_AH_LIVE_KEY" \ https://aisenhour.com/api/v1/tasks/tsk_123456789/archive
{
"success": true,
"task": {
"id": "tsk_123456789",
"lifecycle": "archived"
}
}/v1/tasks/:taskId/comments
curl -H "Authorization: Bearer YOUR_AH_LIVE_KEY" \ https://aisenhour.com/api/v1/tasks/tsk_123456789/comments
{
"success": true,
"comments": [
{
"id": "cmt_1",
"text": "Need this done before Thursday meeting.",
"createdAt": "2026-11-10T12:00:00Z"
}
]
}/v1/tasks/:taskId/comments
{
"text": "Initial research completed. Preparing options outline.",
"target": "private"
}curl -X POST -H "Authorization: Bearer YOUR_AH_LIVE_KEY" \
-H "Content-Type: application/json" \
-d '{"text": "Initial research completed", "target": "private"}' \
https://aisenhour.com/api/v1/tasks/tsk_123456789/comments{
"success": true,
"comment": {
"id": "cmt_2",
"text": "Initial research completed. Preparing options outline.",
"authorKind": "agent"
}
}Matrix quadrants
The four Eisenhower Matrix quadrants supported across all tasks and tools:
Do First
Critical deadlines, crises, and pressing emergencies that demand immediate focus.
Decide (Schedule)
Strategic planning, high-leverage projects, learning, and proactive growth.
Delegate
Tasks to assign to coworkers or hand off to personal AI assistants.
Delete (Eliminate)
Low-value tasks, distractions, and clutter that should be eliminated.
Task categories
Valid category values for task filtering and creation:
Limits and rules
Validated schema constraints enforced across MCP tools and REST endpoints:
Plan access and pricing
External assistant connections (via MCP or REST API) are free on all plans (Free and Pro). External assistants execute tasks using your own assistant provider tokens.
• External assistant connection included
• 3 Built-in Task Planner run / day
• 3 Built-in Next Hour Focus run / day
• 1 Built-in Delegate Agent runs / day
• External assistant connection included
• 15 Built-in Task Planner runs / day
• 10 Built-in Next Hour Focus runs / day
• 3 Built-in Delegate Agent runs / day