Tasks
Core task API — create, assign, update, and monitor tasks across the swarm
/api/link-previewAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Query Parameters
1 <= length <= 2048Response Body
application/json
application/json
curl -X GET "http://localhost:3013/api/link-preview?url=string"{
"url": "string",
"ok": true,
"title": "string",
"description": "string",
"image": "string",
"siteName": "string"
}{
"error": "string",
"property1": null,
"property2": null
}/api/paused-tasksAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Response Body
application/json
curl -X GET "http://localhost:3013/api/paused-tasks"{
"tasks": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"key": "string",
"agentId": "string",
"creatorAgentId": "string",
"task": "string",
"title": "string",
"status": "draft",
"source": "mcp",
"routingReason": "skill",
"routingSource": "declared",
"routingNote": "string",
"poolWakeAt": "string",
"taskType": "string",
"tags": [],
"priority": 50,
"dependsOn": [],
"offeredTo": "string",
"offeredAt": "2019-08-24T14:15:22Z",
"acceptedAt": "2019-08-24T14:15:22Z",
"rejectionReason": "string",
"createdAt": "2019-08-24T14:15:22Z",
"lastUpdatedAt": "2019-08-24T14:15:22Z",
"finishedAt": "2019-08-24T14:15:22Z",
"notifiedAt": "2019-08-24T14:15:22Z",
"statusKind": "agent",
"failureReason": "string",
"output": "string",
"progress": "string",
"slackChannelId": "string",
"slackThreadTs": "string",
"slackTriggerMessageTs": "string",
"slackUserId": "string",
"slackParticipants": {
"people": [
{
"slackUserId": "string",
"userId": "string",
"trust": "internal",
"starter": true,
"newest": true,
"asked": true
}
],
"more": 0
},
"slackReplySent": false,
"slackProgressMessageTs": "string",
"slackTreeRootMessageTs": "string",
"vcsProvider": "github",
"vcsRepo": "string",
"vcsEventType": "string",
"vcsNumber": 0,
"vcsCommentId": 0,
"vcsAuthor": "string",
"vcsUrl": "string",
"vcsInstallationId": 0,
"vcsNodeId": "string",
"agentmailInboxId": "string",
"agentmailMessageId": "string",
"agentmailThreadId": "string",
"mentionMessageId": "string",
"mentionChannelId": "string",
"dir": "string",
"parentTaskId": "string",
"dispatchedByTaskId": "string",
"claudeSessionId": "string",
"model": "string",
"modelTier": "smol",
"effort": "off",
"resolvedModel": "string",
"modelSource": "string",
"modelAlias": "string",
"resolvedEffort": "off",
"profile": "string",
"resolvedProfile": "string",
"modelGroup": "string",
"fallbackHops": [
{
"from": "string",
"profile": "string",
"errorClass": "rate_limit",
"at": "string",
"skipped": [
{
"profile": "string",
"reason": "string"
}
]
}
],
"scheduleId": "string",
"workflowRunId": "5ca99e95-15bc-4b23-a2d2-f5f4060373ab",
"workflowRunStepId": "87990b6e-ec5d-4b37-8b4e-9ef25c331b99",
"contextKey": "string",
"outputSchema": {
"property1": null,
"property2": null
},
"followUpConfig": {
"disabled": true,
"onCompleted": "string",
"onFailed": "string"
},
"wasPaused": false,
"deferredAt": "2019-08-24T14:15:22Z",
"deferredUntil": "2019-08-24T14:15:22Z",
"compactionCount": 0,
"peakContextPercent": 100,
"peakContextTokens": 0,
"contextWindowSize": 0,
"credentialKeySuffix": "string",
"credentialKeyType": "string",
"requestedByUserId": "string",
"swarmVersion": "string",
"provider": "claude",
"providerMeta": {
"property1": null,
"property2": null
},
"harnessVariant": "string",
"harnessVariantMeta": {
"property1": null,
"property2": null
},
"totalCostUsd": 0,
"routingAffinity": {
"sourceAgentId": "string",
"role": "string",
"harnessProvider": "claude",
"capabilities": [],
"leadOnly": true
},
"routingAffinityInvalid": true,
"attachments": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"taskId": "e6e9d88a-9b63-468a-aec3-b7a11de27af8",
"agentId": "string",
"name": "string",
"kind": "agent-fs",
"url": "string",
"path": "string",
"pageId": "string",
"providerId": "string",
"providerKey": "string",
"capabilities": {
"property1": null,
"property2": null
},
"orgId": "string",
"driveId": "string",
"mimeType": "string",
"sizeBytes": 0,
"sha256": "string",
"intent": "string",
"description": "string",
"isPrimary": false,
"createdAt": "2019-08-24T14:15:22Z",
"createdBy": "string",
"updatedBy": "string"
}
],
"requestedBy": {
"id": "string",
"name": "string",
"email": "string",
"title": "string",
"role": "string",
"notes": "string",
"comms": {
"tone": "string",
"language": "string",
"verbosity": "string"
}
},
"threadParticipants": {
"total": 0,
"more": 0,
"people": [
{
"label": "string",
"trust": "internal",
"starter": true,
"newest": true,
"asked": true,
"language": "string",
"verbosity": "string"
}
],
"starterProfile": {
"id": "string",
"name": "string",
"email": "string",
"title": "string",
"role": "string",
"notes": "string",
"comms": {
"tone": "string",
"language": "string",
"verbosity": "string"
}
}
},
"credentialAllowlist": {
"property1": [
"strin"
],
"property2": [
"strin"
]
}
}
]
}/api/steering-messagesAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Query Parameters
Response Body
application/json
application/json
application/json
curl -X GET "http://localhost:3013/api/steering-messages"{
"messages": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"taskId": "e6e9d88a-9b63-468a-aec3-b7a11de27af8",
"body": "string",
"mode": "steer",
"status": "pending",
"deliveredMode": "steer",
"source": "ui",
"senderLabel": "string",
"createdByKind": "user",
"createdByUserId": "string",
"createdByAgentId": "string",
"promotedTaskId": "eccfaabc-92d6-4fa5-818c-c7d655a8e358",
"createdAt": "2019-08-24T14:15:22Z",
"deliveredAt": "2019-08-24T14:15:22Z",
"handledAt": "2019-08-24T14:15:22Z",
"handledNote": "string",
"attachments": [
{
"id": "string",
"taskId": "string",
"name": "string",
"mimeType": "string",
"sizeBytes": 0
}
]
}
]
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}/api/steering-messages/{id}/deliveredAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:3013/api/steering-messages/string/delivered" \ -H "Content-Type: application/json" \ -d '{ "mode": "steer" }'{
"message": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"taskId": "e6e9d88a-9b63-468a-aec3-b7a11de27af8",
"body": "string",
"mode": "steer",
"status": "pending",
"deliveredMode": "steer",
"source": "ui",
"senderLabel": "string",
"createdByKind": "user",
"createdByUserId": "string",
"createdByAgentId": "string",
"promotedTaskId": "eccfaabc-92d6-4fa5-818c-c7d655a8e358",
"createdAt": "2019-08-24T14:15:22Z",
"deliveredAt": "2019-08-24T14:15:22Z",
"handledAt": "2019-08-24T14:15:22Z",
"handledNote": "string",
"attachments": [
{
"id": "string",
"taskId": "string",
"name": "string",
"mimeType": "string",
"sizeBytes": 0
}
]
}
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}/api/steering-messages/{id}/handledAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:3013/api/steering-messages/string/handled"{
"message": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"taskId": "e6e9d88a-9b63-468a-aec3-b7a11de27af8",
"body": "string",
"mode": "steer",
"status": "pending",
"deliveredMode": "steer",
"source": "ui",
"senderLabel": "string",
"createdByKind": "user",
"createdByUserId": "string",
"createdByAgentId": "string",
"promotedTaskId": "eccfaabc-92d6-4fa5-818c-c7d655a8e358",
"createdAt": "2019-08-24T14:15:22Z",
"deliveredAt": "2019-08-24T14:15:22Z",
"handledAt": "2019-08-24T14:15:22Z",
"handledNote": "string",
"attachments": [
{
"id": "string",
"taskId": "string",
"name": "string",
"mimeType": "string",
"sizeBytes": 0
}
]
}
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}/api/steering-messages/{id}/undeliverableAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:3013/api/steering-messages/string/undeliverable" \ -H "Content-Type: application/json" \ -d '{ "reason": "string" }'{
"message": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"taskId": "e6e9d88a-9b63-468a-aec3-b7a11de27af8",
"body": "string",
"mode": "steer",
"status": "pending",
"deliveredMode": "steer",
"source": "ui",
"senderLabel": "string",
"createdByKind": "user",
"createdByUserId": "string",
"createdByAgentId": "string",
"promotedTaskId": "eccfaabc-92d6-4fa5-818c-c7d655a8e358",
"createdAt": "2019-08-24T14:15:22Z",
"deliveredAt": "2019-08-24T14:15:22Z",
"handledAt": "2019-08-24T14:15:22Z",
"handledNote": "string",
"attachments": [
{
"id": "string",
"taskId": "string",
"name": "string",
"mimeType": "string",
"sizeBytes": 0
}
]
},
"promotedTaskId": "string"
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}/api/task-templatesAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Query Parameters
"task" | "workflow" | "schedule"Response Body
application/json
application/json
curl -X GET "http://localhost:3013/api/task-templates"{
"templates": [
{
"id": "string",
"title": "string",
"description": "string",
"prompt": "string",
"kind": "task",
"payload": {},
"category": "string",
"tags": [],
"createdAt": "string"
}
]
}{
"error": "string",
"property1": null,
"property2": null
}/api/tasksAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Query Parameters
Why the task ended, e.g. status=failed&statusKind=error (crash, rate limit, exit code) vs statusKind=agent (the agent chose to fail). Valid kinds per status: TASK_STATUS_KINDS in src/types.ts.
"agent" | "runner" | "deferred" | "error" | "cascade" | "external" | "user" | "workflow" | "system" | "graceful_shutdown" | "context_limits" | "manual_supersede" | "crash_recovery" | "provider_fallback" | "workflow_retry"uuidNon-unique asset directory namespace (for example shared/ or personal//drafts/). Runtime write boundaries normalize and validate the canonical form.
1 <= length <= 255Non-unique asset directory namespace (for example shared/ or personal//drafts/). Runtime write boundaries normalize and validate the canonical form.
1 <= length <= 255Search task text and title by word or phrase, with a prefix match on the last word, or a task id by prefix. Not a substring match: '2443' does not find '12443', and '%' and '_' are not wildcards.
"true" | "false"date-timedate-timeComma-separated tags (e.g. alert:abc123,obs-lite). Returns tasks that carry any of them, matched case-insensitively. Omit to include all.
1 <= length"lastUpdatedAt" | "createdAt"0 <= value <= 12000 <= value"full" | "slim" | "timeline""true" | "false"all: every user's tasks, read-only, for a user whose role lists session.read.all (the built-in auditor role; the grant-all admin role alone does not count); ignored for anyone else. The X-Swarm-Session-Scope: all header opts in the same way.
"all"Response Body
application/json
application/json
curl -X GET "http://localhost:3013/api/tasks"{
"tasks": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"key": "string",
"agentId": "string",
"creatorAgentId": "string",
"task": "string",
"title": "string",
"status": "draft",
"source": "mcp",
"routingReason": "skill",
"routingSource": "declared",
"routingNote": "string",
"poolWakeAt": "string",
"taskType": "string",
"tags": [],
"priority": 50,
"dependsOn": [],
"offeredTo": "string",
"offeredAt": "2019-08-24T14:15:22Z",
"acceptedAt": "2019-08-24T14:15:22Z",
"rejectionReason": "string",
"createdAt": "2019-08-24T14:15:22Z",
"lastUpdatedAt": "2019-08-24T14:15:22Z",
"finishedAt": "2019-08-24T14:15:22Z",
"notifiedAt": "2019-08-24T14:15:22Z",
"statusKind": "agent",
"failureReason": "string",
"output": "string",
"progress": "string",
"slackChannelId": "string",
"slackThreadTs": "string",
"slackTriggerMessageTs": "string",
"slackUserId": "string",
"slackParticipants": {
"people": [
{
"slackUserId": "string",
"userId": "string",
"trust": "internal",
"starter": true,
"newest": true,
"asked": true
}
],
"more": 0
},
"slackReplySent": false,
"slackProgressMessageTs": "string",
"slackTreeRootMessageTs": "string",
"vcsProvider": "github",
"vcsRepo": "string",
"vcsEventType": "string",
"vcsNumber": 0,
"vcsCommentId": 0,
"vcsAuthor": "string",
"vcsUrl": "string",
"vcsInstallationId": 0,
"vcsNodeId": "string",
"agentmailInboxId": "string",
"agentmailMessageId": "string",
"agentmailThreadId": "string",
"mentionMessageId": "string",
"mentionChannelId": "string",
"dir": "string",
"parentTaskId": "string",
"dispatchedByTaskId": "string",
"claudeSessionId": "string",
"model": "string",
"modelTier": "smol",
"effort": "off",
"resolvedModel": "string",
"modelSource": "string",
"modelAlias": "string",
"resolvedEffort": "off",
"profile": "string",
"resolvedProfile": "string",
"modelGroup": "string",
"fallbackHops": [
{
"from": "string",
"profile": "string",
"errorClass": "rate_limit",
"at": "string",
"skipped": [
{
"profile": "string",
"reason": "string"
}
]
}
],
"scheduleId": "string",
"workflowRunId": "5ca99e95-15bc-4b23-a2d2-f5f4060373ab",
"workflowRunStepId": "87990b6e-ec5d-4b37-8b4e-9ef25c331b99",
"contextKey": "string",
"outputSchema": {
"property1": null,
"property2": null
},
"followUpConfig": {
"disabled": true,
"onCompleted": "string",
"onFailed": "string"
},
"wasPaused": false,
"deferredAt": "2019-08-24T14:15:22Z",
"deferredUntil": "2019-08-24T14:15:22Z",
"compactionCount": 0,
"peakContextPercent": 100,
"peakContextTokens": 0,
"contextWindowSize": 0,
"credentialKeySuffix": "string",
"credentialKeyType": "string",
"requestedByUserId": "string",
"swarmVersion": "string",
"provider": "claude",
"providerMeta": {
"property1": null,
"property2": null
},
"harnessVariant": "string",
"harnessVariantMeta": {
"property1": null,
"property2": null
},
"totalCostUsd": 0,
"routingAffinity": {
"sourceAgentId": "string",
"role": "string",
"harnessProvider": "claude",
"capabilities": [],
"leadOnly": true
},
"routingAffinityInvalid": true
}
],
"total": 0
}{
"error": "string",
"property1": null,
"property2": null
}/api/tasksAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Header Parameters
Optional client-generated key, 1-255 visible ASCII characters (a UUID works). The first request the server accepts under a key creates one task (a replay returns that task as it is now); a retry with the same key and an equivalent body gets that request's status and body back (with Idempotent-Replayed: true) and changes nothing. The key is scoped to the caller's identity and this operation; it is not a credential. The same key with a different body is a 409. A request rejected before it is accepted (validation, auth, not found, disabled) does not use up the key. Accepted keys do not expire.
^[\x21-\x7E]{1,255}$Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:3013/api/tasks" \ -H "Content-Type: application/json" \ -d '{ "task": "string" }'{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"key": "string",
"agentId": "string",
"creatorAgentId": "string",
"task": "string",
"title": "string",
"status": "draft",
"source": "mcp",
"routingReason": "skill",
"routingSource": "declared",
"routingNote": "string",
"poolWakeAt": "string",
"taskType": "string",
"tags": [],
"priority": 50,
"dependsOn": [],
"offeredTo": "string",
"offeredAt": "2019-08-24T14:15:22Z",
"acceptedAt": "2019-08-24T14:15:22Z",
"rejectionReason": "string",
"createdAt": "2019-08-24T14:15:22Z",
"lastUpdatedAt": "2019-08-24T14:15:22Z",
"finishedAt": "2019-08-24T14:15:22Z",
"notifiedAt": "2019-08-24T14:15:22Z",
"statusKind": "agent",
"failureReason": "string",
"output": "string",
"progress": "string",
"slackChannelId": "string",
"slackThreadTs": "string",
"slackTriggerMessageTs": "string",
"slackUserId": "string",
"slackParticipants": {
"people": [
{
"slackUserId": "string",
"userId": "string",
"trust": "internal",
"starter": true,
"newest": true,
"asked": true
}
],
"more": 0
},
"slackReplySent": false,
"slackProgressMessageTs": "string",
"slackTreeRootMessageTs": "string",
"vcsProvider": "github",
"vcsRepo": "string",
"vcsEventType": "string",
"vcsNumber": 0,
"vcsCommentId": 0,
"vcsAuthor": "string",
"vcsUrl": "string",
"vcsInstallationId": 0,
"vcsNodeId": "string",
"agentmailInboxId": "string",
"agentmailMessageId": "string",
"agentmailThreadId": "string",
"mentionMessageId": "string",
"mentionChannelId": "string",
"dir": "string",
"parentTaskId": "string",
"dispatchedByTaskId": "string",
"claudeSessionId": "string",
"model": "string",
"modelTier": "smol",
"effort": "off",
"resolvedModel": "string",
"modelSource": "string",
"modelAlias": "string",
"resolvedEffort": "off",
"profile": "string",
"resolvedProfile": "string",
"modelGroup": "string",
"fallbackHops": [
{
"from": "string",
"profile": "string",
"errorClass": "rate_limit",
"at": "string",
"skipped": [
{
"profile": "string",
"reason": "string"
}
]
}
],
"scheduleId": "string",
"workflowRunId": "5ca99e95-15bc-4b23-a2d2-f5f4060373ab",
"workflowRunStepId": "87990b6e-ec5d-4b37-8b4e-9ef25c331b99",
"contextKey": "string",
"outputSchema": {
"property1": null,
"property2": null
},
"followUpConfig": {
"disabled": true,
"onCompleted": "string",
"onFailed": "string"
},
"wasPaused": false,
"deferredAt": "2019-08-24T14:15:22Z",
"deferredUntil": "2019-08-24T14:15:22Z",
"compactionCount": 0,
"peakContextPercent": 100,
"peakContextTokens": 0,
"contextWindowSize": 0,
"credentialKeySuffix": "string",
"credentialKeyType": "string",
"requestedByUserId": "string",
"swarmVersion": "string",
"provider": "claude",
"providerMeta": {
"property1": null,
"property2": null
},
"harnessVariant": "string",
"harnessVariantMeta": {
"property1": null,
"property2": null
},
"totalCostUsd": 0,
"routingAffinity": {
"sourceAgentId": "string",
"role": "string",
"harnessProvider": "claude",
"capabilities": [],
"leadOnly": true
},
"routingAffinityInvalid": true
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"extension": {
"id": "string",
"name": "string"
}
}/api/tasks/{id}Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
Query Parameters
1 <= value <= 1000Response Body
application/json
application/json
application/json
curl -X GET "http://localhost:3013/api/tasks/string"{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"key": "string",
"agentId": "string",
"creatorAgentId": "string",
"task": "string",
"title": "string",
"status": "draft",
"source": "mcp",
"routingReason": "skill",
"routingSource": "declared",
"routingNote": "string",
"poolWakeAt": "string",
"taskType": "string",
"tags": [],
"priority": 50,
"dependsOn": [],
"offeredTo": "string",
"offeredAt": "2019-08-24T14:15:22Z",
"acceptedAt": "2019-08-24T14:15:22Z",
"rejectionReason": "string",
"createdAt": "2019-08-24T14:15:22Z",
"lastUpdatedAt": "2019-08-24T14:15:22Z",
"finishedAt": "2019-08-24T14:15:22Z",
"notifiedAt": "2019-08-24T14:15:22Z",
"statusKind": "agent",
"failureReason": "string",
"output": "string",
"progress": "string",
"slackChannelId": "string",
"slackThreadTs": "string",
"slackTriggerMessageTs": "string",
"slackUserId": "string",
"slackParticipants": {
"people": [
{
"slackUserId": "string",
"userId": "string",
"trust": "internal",
"starter": true,
"newest": true,
"asked": true
}
],
"more": 0
},
"slackReplySent": false,
"slackProgressMessageTs": "string",
"slackTreeRootMessageTs": "string",
"vcsProvider": "github",
"vcsRepo": "string",
"vcsEventType": "string",
"vcsNumber": 0,
"vcsCommentId": 0,
"vcsAuthor": "string",
"vcsUrl": "string",
"vcsInstallationId": 0,
"vcsNodeId": "string",
"agentmailInboxId": "string",
"agentmailMessageId": "string",
"agentmailThreadId": "string",
"mentionMessageId": "string",
"mentionChannelId": "string",
"dir": "string",
"parentTaskId": "string",
"dispatchedByTaskId": "string",
"claudeSessionId": "string",
"model": "string",
"modelTier": "smol",
"effort": "off",
"resolvedModel": "string",
"modelSource": "string",
"modelAlias": "string",
"resolvedEffort": "off",
"profile": "string",
"resolvedProfile": "string",
"modelGroup": "string",
"fallbackHops": [
{
"from": "string",
"profile": "string",
"errorClass": "rate_limit",
"at": "string",
"skipped": [
{
"profile": "string",
"reason": "string"
}
]
}
],
"scheduleId": "string",
"workflowRunId": "5ca99e95-15bc-4b23-a2d2-f5f4060373ab",
"workflowRunStepId": "87990b6e-ec5d-4b37-8b4e-9ef25c331b99",
"contextKey": "string",
"outputSchema": {
"property1": null,
"property2": null
},
"followUpConfig": {
"disabled": true,
"onCompleted": "string",
"onFailed": "string"
},
"wasPaused": false,
"deferredAt": "2019-08-24T14:15:22Z",
"deferredUntil": "2019-08-24T14:15:22Z",
"compactionCount": 0,
"peakContextPercent": 100,
"peakContextTokens": 0,
"contextWindowSize": 0,
"credentialKeySuffix": "string",
"credentialKeyType": "string",
"requestedByUserId": "string",
"swarmVersion": "string",
"provider": "claude",
"providerMeta": {
"property1": null,
"property2": null
},
"harnessVariant": "string",
"harnessVariantMeta": {
"property1": null,
"property2": null
},
"totalCostUsd": 0,
"routingAffinity": {
"sourceAgentId": "string",
"role": "string",
"harnessProvider": "claude",
"capabilities": [],
"leadOnly": true
},
"routingAffinityInvalid": true,
"isLeadTask": true,
"supportedSteerModes": [
"steer"
],
"logs": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"eventType": "agent_joined",
"agentId": "string",
"taskId": "string",
"oldValue": "string",
"newValue": "string",
"metadata": "string",
"createdAt": "2019-08-24T14:15:22Z"
}
],
"attachments": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"taskId": "e6e9d88a-9b63-468a-aec3-b7a11de27af8",
"agentId": "string",
"name": "string",
"kind": "agent-fs",
"url": "string",
"path": "string",
"pageId": "string",
"providerId": "string",
"providerKey": "string",
"capabilities": {
"property1": null,
"property2": null
},
"orgId": "string",
"driveId": "string",
"mimeType": "string",
"sizeBytes": 0,
"sha256": "string",
"intent": "string",
"description": "string",
"isPrimary": false,
"createdAt": "2019-08-24T14:15:22Z",
"createdBy": "string",
"updatedBy": "string"
}
],
"citations": [
{
"index": 1,
"kind": "task",
"ref": "string",
"label": "string",
"quote": "string",
"general": true,
"resolvedUrl": "string",
"verified": "true"
}
],
"uiSpec": {
"spec": {
"root": "string",
"elements": {
"property1": null,
"property2": null
},
"state": {
"property1": null,
"property2": null
}
},
"actions": {
"property1": {
"kind": "follow_up",
"prompt": "string"
},
"property2": {
"kind": "follow_up",
"prompt": "string"
}
},
"fallbackText": "string"
}
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}/api/tasks/{id}/cancelAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:3013/api/tasks/string/cancel"{
"success": true,
"task": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"key": "string",
"agentId": "string",
"creatorAgentId": "string",
"task": "string",
"title": "string",
"status": "draft",
"source": "mcp",
"routingReason": "skill",
"routingSource": "declared",
"routingNote": "string",
"poolWakeAt": "string",
"taskType": "string",
"tags": [],
"priority": 50,
"dependsOn": [],
"offeredTo": "string",
"offeredAt": "2019-08-24T14:15:22Z",
"acceptedAt": "2019-08-24T14:15:22Z",
"rejectionReason": "string",
"createdAt": "2019-08-24T14:15:22Z",
"lastUpdatedAt": "2019-08-24T14:15:22Z",
"finishedAt": "2019-08-24T14:15:22Z",
"notifiedAt": "2019-08-24T14:15:22Z",
"statusKind": "agent",
"failureReason": "string",
"output": "string",
"progress": "string",
"slackChannelId": "string",
"slackThreadTs": "string",
"slackTriggerMessageTs": "string",
"slackUserId": "string",
"slackParticipants": {
"people": [
{
"slackUserId": "string",
"userId": "string",
"trust": "internal",
"starter": true,
"newest": true,
"asked": true
}
],
"more": 0
},
"slackReplySent": false,
"slackProgressMessageTs": "string",
"slackTreeRootMessageTs": "string",
"vcsProvider": "github",
"vcsRepo": "string",
"vcsEventType": "string",
"vcsNumber": 0,
"vcsCommentId": 0,
"vcsAuthor": "string",
"vcsUrl": "string",
"vcsInstallationId": 0,
"vcsNodeId": "string",
"agentmailInboxId": "string",
"agentmailMessageId": "string",
"agentmailThreadId": "string",
"mentionMessageId": "string",
"mentionChannelId": "string",
"dir": "string",
"parentTaskId": "string",
"dispatchedByTaskId": "string",
"claudeSessionId": "string",
"model": "string",
"modelTier": "smol",
"effort": "off",
"resolvedModel": "string",
"modelSource": "string",
"modelAlias": "string",
"resolvedEffort": "off",
"profile": "string",
"resolvedProfile": "string",
"modelGroup": "string",
"fallbackHops": [
{
"from": "string",
"profile": "string",
"errorClass": "rate_limit",
"at": "string",
"skipped": [
{
"profile": "string",
"reason": "string"
}
]
}
],
"scheduleId": "string",
"workflowRunId": "5ca99e95-15bc-4b23-a2d2-f5f4060373ab",
"workflowRunStepId": "87990b6e-ec5d-4b37-8b4e-9ef25c331b99",
"contextKey": "string",
"outputSchema": {
"property1": null,
"property2": null
},
"followUpConfig": {
"disabled": true,
"onCompleted": "string",
"onFailed": "string"
},
"wasPaused": false,
"deferredAt": "2019-08-24T14:15:22Z",
"deferredUntil": "2019-08-24T14:15:22Z",
"compactionCount": 0,
"peakContextPercent": 100,
"peakContextTokens": 0,
"contextWindowSize": 0,
"credentialKeySuffix": "string",
"credentialKeyType": "string",
"requestedByUserId": "string",
"swarmVersion": "string",
"provider": "claude",
"providerMeta": {
"property1": null,
"property2": null
},
"harnessVariant": "string",
"harnessVariantMeta": {
"property1": null,
"property2": null
},
"totalCostUsd": 0,
"routingAffinity": {
"sourceAgentId": "string",
"role": "string",
"harnessProvider": "claude",
"capabilities": [],
"leadOnly": true
},
"routingAffinityInvalid": true
}
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}/api/tasks/{id}/contextAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
Query Parameters
1001 <= value <= 500Response Body
application/json
application/json
curl -X GET "http://localhost:3013/api/tasks/string/context"{
"snapshots": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"taskId": "e6e9d88a-9b63-468a-aec3-b7a11de27af8",
"agentId": "string",
"sessionId": "string",
"contextUsedTokens": 0,
"contextTotalTokens": 0,
"contextPercent": 100,
"eventType": "progress",
"compactTrigger": "auto",
"preCompactTokens": 0,
"cumulativeInputTokens": 0,
"cumulativeOutputTokens": 0,
"contextFormula": "input-cache-output",
"createdAt": "2019-08-24T14:15:22Z"
}
],
"summary": {
"compactionCount": 0,
"peakContextPercent": 100,
"peakContextTokens": 0,
"contextWindowSize": 0,
"snapshotCount": 0
}
}{
"error": "string",
"property1": null,
"property2": null
}/api/tasks/{id}/contextAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "http://localhost:3013/api/tasks/string/context" \ -H "Content-Type: application/json" \ -d '{ "eventType": "progress", "sessionId": "string" }'{
"ok": true,
"snapshotId": "09520abc-01e6-4da1-8fa5-f10e3883c861"
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}/api/tasks/{id}/finishAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:3013/api/tasks/string/finish" \ -H "Content-Type: application/json" \ -d '{ "status": "completed" }'{
"success": true,
"alreadyFinished": true,
"task": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"key": "string",
"agentId": "string",
"creatorAgentId": "string",
"task": "string",
"title": "string",
"status": "draft",
"source": "mcp",
"routingReason": "skill",
"routingSource": "declared",
"routingNote": "string",
"poolWakeAt": "string",
"taskType": "string",
"tags": [],
"priority": 50,
"dependsOn": [],
"offeredTo": "string",
"offeredAt": "2019-08-24T14:15:22Z",
"acceptedAt": "2019-08-24T14:15:22Z",
"rejectionReason": "string",
"createdAt": "2019-08-24T14:15:22Z",
"lastUpdatedAt": "2019-08-24T14:15:22Z",
"finishedAt": "2019-08-24T14:15:22Z",
"notifiedAt": "2019-08-24T14:15:22Z",
"statusKind": "agent",
"failureReason": "string",
"output": "string",
"progress": "string",
"slackChannelId": "string",
"slackThreadTs": "string",
"slackTriggerMessageTs": "string",
"slackUserId": "string",
"slackParticipants": {
"people": [
{
"slackUserId": "string",
"userId": "string",
"trust": "internal",
"starter": true,
"newest": true,
"asked": true
}
],
"more": 0
},
"slackReplySent": false,
"slackProgressMessageTs": "string",
"slackTreeRootMessageTs": "string",
"vcsProvider": "github",
"vcsRepo": "string",
"vcsEventType": "string",
"vcsNumber": 0,
"vcsCommentId": 0,
"vcsAuthor": "string",
"vcsUrl": "string",
"vcsInstallationId": 0,
"vcsNodeId": "string",
"agentmailInboxId": "string",
"agentmailMessageId": "string",
"agentmailThreadId": "string",
"mentionMessageId": "string",
"mentionChannelId": "string",
"dir": "string",
"parentTaskId": "string",
"dispatchedByTaskId": "string",
"claudeSessionId": "string",
"model": "string",
"modelTier": "smol",
"effort": "off",
"resolvedModel": "string",
"modelSource": "string",
"modelAlias": "string",
"resolvedEffort": "off",
"profile": "string",
"resolvedProfile": "string",
"modelGroup": "string",
"fallbackHops": [
{
"from": "string",
"profile": "string",
"errorClass": "rate_limit",
"at": "string",
"skipped": [
{
"profile": "string",
"reason": "string"
}
]
}
],
"scheduleId": "string",
"workflowRunId": "5ca99e95-15bc-4b23-a2d2-f5f4060373ab",
"workflowRunStepId": "87990b6e-ec5d-4b37-8b4e-9ef25c331b99",
"contextKey": "string",
"outputSchema": {
"property1": null,
"property2": null
},
"followUpConfig": {
"disabled": true,
"onCompleted": "string",
"onFailed": "string"
},
"wasPaused": false,
"deferredAt": "2019-08-24T14:15:22Z",
"deferredUntil": "2019-08-24T14:15:22Z",
"compactionCount": 0,
"peakContextPercent": 100,
"peakContextTokens": 0,
"contextWindowSize": 0,
"credentialKeySuffix": "string",
"credentialKeyType": "string",
"requestedByUserId": "string",
"swarmVersion": "string",
"provider": "claude",
"providerMeta": {
"property1": null,
"property2": null
},
"harnessVariant": "string",
"harnessVariantMeta": {
"property1": null,
"property2": null
},
"totalCostUsd": 0,
"routingAffinity": {
"sourceAgentId": "string",
"role": "string",
"harnessProvider": "claude",
"capabilities": [],
"leadOnly": true
},
"routingAffinityInvalid": true
},
"message": "string",
"wasNoOp": true,
"wasForcedOverwrite": true
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"success": false,
"message": "string",
"task": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"key": "string",
"agentId": "string",
"creatorAgentId": "string",
"task": "string",
"title": "string",
"status": "draft",
"source": "mcp",
"routingReason": "skill",
"routingSource": "declared",
"routingNote": "string",
"poolWakeAt": "string",
"taskType": "string",
"tags": [],
"priority": 50,
"dependsOn": [],
"offeredTo": "string",
"offeredAt": "2019-08-24T14:15:22Z",
"acceptedAt": "2019-08-24T14:15:22Z",
"rejectionReason": "string",
"createdAt": "2019-08-24T14:15:22Z",
"lastUpdatedAt": "2019-08-24T14:15:22Z",
"finishedAt": "2019-08-24T14:15:22Z",
"notifiedAt": "2019-08-24T14:15:22Z",
"statusKind": "agent",
"failureReason": "string",
"output": "string",
"progress": "string",
"slackChannelId": "string",
"slackThreadTs": "string",
"slackTriggerMessageTs": "string",
"slackUserId": "string",
"slackParticipants": {
"people": [
{
"slackUserId": "string",
"userId": "string",
"trust": "internal",
"starter": true,
"newest": true,
"asked": true
}
],
"more": 0
},
"slackReplySent": false,
"slackProgressMessageTs": "string",
"slackTreeRootMessageTs": "string",
"vcsProvider": "github",
"vcsRepo": "string",
"vcsEventType": "string",
"vcsNumber": 0,
"vcsCommentId": 0,
"vcsAuthor": "string",
"vcsUrl": "string",
"vcsInstallationId": 0,
"vcsNodeId": "string",
"agentmailInboxId": "string",
"agentmailMessageId": "string",
"agentmailThreadId": "string",
"mentionMessageId": "string",
"mentionChannelId": "string",
"dir": "string",
"parentTaskId": "string",
"dispatchedByTaskId": "string",
"claudeSessionId": "string",
"model": "string",
"modelTier": "smol",
"effort": "off",
"resolvedModel": "string",
"modelSource": "string",
"modelAlias": "string",
"resolvedEffort": "off",
"profile": "string",
"resolvedProfile": "string",
"modelGroup": "string",
"fallbackHops": [
{
"from": "string",
"profile": "string",
"errorClass": "rate_limit",
"at": "string",
"skipped": [
{
"profile": "string",
"reason": "string"
}
]
}
],
"scheduleId": "string",
"workflowRunId": "5ca99e95-15bc-4b23-a2d2-f5f4060373ab",
"workflowRunStepId": "87990b6e-ec5d-4b37-8b4e-9ef25c331b99",
"contextKey": "string",
"outputSchema": {
"property1": null,
"property2": null
},
"followUpConfig": {
"disabled": true,
"onCompleted": "string",
"onFailed": "string"
},
"wasPaused": false,
"deferredAt": "2019-08-24T14:15:22Z",
"deferredUntil": "2019-08-24T14:15:22Z",
"compactionCount": 0,
"peakContextPercent": 100,
"peakContextTokens": 0,
"contextWindowSize": 0,
"credentialKeySuffix": "string",
"credentialKeyType": "string",
"requestedByUserId": "string",
"swarmVersion": "string",
"provider": "claude",
"providerMeta": {
"property1": null,
"property2": null
},
"harnessVariant": "string",
"harnessVariantMeta": {
"property1": null,
"property2": null
},
"totalCostUsd": 0,
"routingAffinity": {
"sourceAgentId": "string",
"role": "string",
"harnessProvider": "claude",
"capabilities": [],
"leadOnly": true
},
"routingAffinityInvalid": true
},
"alreadyFinished": true,
"error": "string"
}/api/tasks/{id}/lineageAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
Query Parameters
1 <= value <= 5001 <= value <= 30Response Body
application/json
application/json
application/json
curl -X GET "http://localhost:3013/api/tasks/string/lineage"{
"rootTaskId": "string",
"tasks": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"key": "string",
"agentId": "string",
"creatorAgentId": "string",
"task": "string",
"title": "string",
"status": "draft",
"source": "mcp",
"taskType": "string",
"tags": [],
"priority": 50,
"dependsOn": [],
"offeredTo": "string",
"acceptedAt": "2019-08-24T14:15:22Z",
"parentTaskId": "string",
"scheduleId": "string",
"model": "string",
"modelTier": "smol",
"resolvedModel": "string",
"modelSource": "string",
"modelAlias": "string",
"effort": "off",
"resolvedEffort": "off",
"profile": "string",
"resolvedProfile": "string",
"modelGroup": "string",
"provider": "claude",
"requestedByUserId": "string",
"progress": "string",
"createdAt": "2019-08-24T14:15:22Z",
"lastUpdatedAt": "2019-08-24T14:15:22Z",
"finishedAt": "2019-08-24T14:15:22Z",
"statusKind": "agent",
"peakContextPercent": 100,
"totalCostUsd": 0,
"workflowRunId": "string"
}
],
"truncated": true
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}/api/tasks/{id}/pauseAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:3013/api/tasks/string/pause"{
"success": true,
"task": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"key": "string",
"agentId": "string",
"creatorAgentId": "string",
"task": "string",
"title": "string",
"status": "draft",
"source": "mcp",
"routingReason": "skill",
"routingSource": "declared",
"routingNote": "string",
"poolWakeAt": "string",
"taskType": "string",
"tags": [],
"priority": 50,
"dependsOn": [],
"offeredTo": "string",
"offeredAt": "2019-08-24T14:15:22Z",
"acceptedAt": "2019-08-24T14:15:22Z",
"rejectionReason": "string",
"createdAt": "2019-08-24T14:15:22Z",
"lastUpdatedAt": "2019-08-24T14:15:22Z",
"finishedAt": "2019-08-24T14:15:22Z",
"notifiedAt": "2019-08-24T14:15:22Z",
"statusKind": "agent",
"failureReason": "string",
"output": "string",
"progress": "string",
"slackChannelId": "string",
"slackThreadTs": "string",
"slackTriggerMessageTs": "string",
"slackUserId": "string",
"slackParticipants": {
"people": [
{
"slackUserId": "string",
"userId": "string",
"trust": "internal",
"starter": true,
"newest": true,
"asked": true
}
],
"more": 0
},
"slackReplySent": false,
"slackProgressMessageTs": "string",
"slackTreeRootMessageTs": "string",
"vcsProvider": "github",
"vcsRepo": "string",
"vcsEventType": "string",
"vcsNumber": 0,
"vcsCommentId": 0,
"vcsAuthor": "string",
"vcsUrl": "string",
"vcsInstallationId": 0,
"vcsNodeId": "string",
"agentmailInboxId": "string",
"agentmailMessageId": "string",
"agentmailThreadId": "string",
"mentionMessageId": "string",
"mentionChannelId": "string",
"dir": "string",
"parentTaskId": "string",
"dispatchedByTaskId": "string",
"claudeSessionId": "string",
"model": "string",
"modelTier": "smol",
"effort": "off",
"resolvedModel": "string",
"modelSource": "string",
"modelAlias": "string",
"resolvedEffort": "off",
"profile": "string",
"resolvedProfile": "string",
"modelGroup": "string",
"fallbackHops": [
{
"from": "string",
"profile": "string",
"errorClass": "rate_limit",
"at": "string",
"skipped": [
{
"profile": "string",
"reason": "string"
}
]
}
],
"scheduleId": "string",
"workflowRunId": "5ca99e95-15bc-4b23-a2d2-f5f4060373ab",
"workflowRunStepId": "87990b6e-ec5d-4b37-8b4e-9ef25c331b99",
"contextKey": "string",
"outputSchema": {
"property1": null,
"property2": null
},
"followUpConfig": {
"disabled": true,
"onCompleted": "string",
"onFailed": "string"
},
"wasPaused": false,
"deferredAt": "2019-08-24T14:15:22Z",
"deferredUntil": "2019-08-24T14:15:22Z",
"compactionCount": 0,
"peakContextPercent": 100,
"peakContextTokens": 0,
"contextWindowSize": 0,
"credentialKeySuffix": "string",
"credentialKeyType": "string",
"requestedByUserId": "string",
"swarmVersion": "string",
"provider": "claude",
"providerMeta": {
"property1": null,
"property2": null
},
"harnessVariant": "string",
"harnessVariantMeta": {
"property1": null,
"property2": null
},
"totalCostUsd": 0,
"routingAffinity": {
"sourceAgentId": "string",
"role": "string",
"harnessProvider": "claude",
"capabilities": [],
"leadOnly": true
},
"routingAffinityInvalid": true
}
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}/api/tasks/{id}/progressAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "http://localhost:3013/api/tasks/string/progress" \ -H "Content-Type: application/json" \ -d '{ "progress": "string" }'{
"success": true
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}/api/tasks/{id}/promote-draftAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
Response Body
application/json
application/json
application/json
curl -X POST "http://localhost:3013/api/tasks/string/promote-draft"{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"key": "string",
"agentId": "string",
"creatorAgentId": "string",
"task": "string",
"title": "string",
"status": "draft",
"source": "mcp",
"routingReason": "skill",
"routingSource": "declared",
"routingNote": "string",
"poolWakeAt": "string",
"taskType": "string",
"tags": [],
"priority": 50,
"dependsOn": [],
"offeredTo": "string",
"offeredAt": "2019-08-24T14:15:22Z",
"acceptedAt": "2019-08-24T14:15:22Z",
"rejectionReason": "string",
"createdAt": "2019-08-24T14:15:22Z",
"lastUpdatedAt": "2019-08-24T14:15:22Z",
"finishedAt": "2019-08-24T14:15:22Z",
"notifiedAt": "2019-08-24T14:15:22Z",
"statusKind": "agent",
"failureReason": "string",
"output": "string",
"progress": "string",
"slackChannelId": "string",
"slackThreadTs": "string",
"slackTriggerMessageTs": "string",
"slackUserId": "string",
"slackParticipants": {
"people": [
{
"slackUserId": "string",
"userId": "string",
"trust": "internal",
"starter": true,
"newest": true,
"asked": true
}
],
"more": 0
},
"slackReplySent": false,
"slackProgressMessageTs": "string",
"slackTreeRootMessageTs": "string",
"vcsProvider": "github",
"vcsRepo": "string",
"vcsEventType": "string",
"vcsNumber": 0,
"vcsCommentId": 0,
"vcsAuthor": "string",
"vcsUrl": "string",
"vcsInstallationId": 0,
"vcsNodeId": "string",
"agentmailInboxId": "string",
"agentmailMessageId": "string",
"agentmailThreadId": "string",
"mentionMessageId": "string",
"mentionChannelId": "string",
"dir": "string",
"parentTaskId": "string",
"dispatchedByTaskId": "string",
"claudeSessionId": "string",
"model": "string",
"modelTier": "smol",
"effort": "off",
"resolvedModel": "string",
"modelSource": "string",
"modelAlias": "string",
"resolvedEffort": "off",
"profile": "string",
"resolvedProfile": "string",
"modelGroup": "string",
"fallbackHops": [
{
"from": "string",
"profile": "string",
"errorClass": "rate_limit",
"at": "string",
"skipped": [
{
"profile": "string",
"reason": "string"
}
]
}
],
"scheduleId": "string",
"workflowRunId": "5ca99e95-15bc-4b23-a2d2-f5f4060373ab",
"workflowRunStepId": "87990b6e-ec5d-4b37-8b4e-9ef25c331b99",
"contextKey": "string",
"outputSchema": {
"property1": null,
"property2": null
},
"followUpConfig": {
"disabled": true,
"onCompleted": "string",
"onFailed": "string"
},
"wasPaused": false,
"deferredAt": "2019-08-24T14:15:22Z",
"deferredUntil": "2019-08-24T14:15:22Z",
"compactionCount": 0,
"peakContextPercent": 100,
"peakContextTokens": 0,
"contextWindowSize": 0,
"credentialKeySuffix": "string",
"credentialKeyType": "string",
"requestedByUserId": "string",
"swarmVersion": "string",
"provider": "claude",
"providerMeta": {
"property1": null,
"property2": null
},
"harnessVariant": "string",
"harnessVariantMeta": {
"property1": null,
"property2": null
},
"totalCostUsd": 0,
"routingAffinity": {
"sourceAgentId": "string",
"role": "string",
"harnessProvider": "claude",
"capabilities": [],
"leadOnly": true
},
"routingAffinityInvalid": true
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}/api/tasks/{id}/request-compositionAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
Query Parameters
1001 <= value <= 100Response Body
application/json
application/json
curl -X GET "http://localhost:3013/api/tasks/string/request-composition"{
"manifests": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"taskId": "string",
"agentId": "string",
"sessionId": "string",
"seq": 0,
"provider": "string",
"model": "string",
"source": "worker",
"parts": [
{
"kind": "system_section",
"id": "string",
"label": "string",
"chars": 0,
"fidelity": "exact",
"estTokens": 0
}
],
"staticEstTokens": 0,
"tokenRatio": 0,
"createdAt": "2019-08-24T14:15:22Z"
}
]
}{
"error": "string",
"property1": null,
"property2": null
}/api/tasks/{id}/request-compositionAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:3013/api/tasks/string/request-composition" \ -H "Content-Type: application/json" \ -d '{ "sessionId": "string", "provider": "string", "toolLoading": "all", "parts": [ { "kind": "system_section", "id": "string", "label": "string", "chars": 0 } ] }'{
"ok": true,
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"seq": 0
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}/api/tasks/{id}/resumeAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:3013/api/tasks/string/resume"{
"success": true,
"task": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"key": "string",
"agentId": "string",
"creatorAgentId": "string",
"task": "string",
"title": "string",
"status": "draft",
"source": "mcp",
"routingReason": "skill",
"routingSource": "declared",
"routingNote": "string",
"poolWakeAt": "string",
"taskType": "string",
"tags": [],
"priority": 50,
"dependsOn": [],
"offeredTo": "string",
"offeredAt": "2019-08-24T14:15:22Z",
"acceptedAt": "2019-08-24T14:15:22Z",
"rejectionReason": "string",
"createdAt": "2019-08-24T14:15:22Z",
"lastUpdatedAt": "2019-08-24T14:15:22Z",
"finishedAt": "2019-08-24T14:15:22Z",
"notifiedAt": "2019-08-24T14:15:22Z",
"statusKind": "agent",
"failureReason": "string",
"output": "string",
"progress": "string",
"slackChannelId": "string",
"slackThreadTs": "string",
"slackTriggerMessageTs": "string",
"slackUserId": "string",
"slackParticipants": {
"people": [
{
"slackUserId": "string",
"userId": "string",
"trust": "internal",
"starter": true,
"newest": true,
"asked": true
}
],
"more": 0
},
"slackReplySent": false,
"slackProgressMessageTs": "string",
"slackTreeRootMessageTs": "string",
"vcsProvider": "github",
"vcsRepo": "string",
"vcsEventType": "string",
"vcsNumber": 0,
"vcsCommentId": 0,
"vcsAuthor": "string",
"vcsUrl": "string",
"vcsInstallationId": 0,
"vcsNodeId": "string",
"agentmailInboxId": "string",
"agentmailMessageId": "string",
"agentmailThreadId": "string",
"mentionMessageId": "string",
"mentionChannelId": "string",
"dir": "string",
"parentTaskId": "string",
"dispatchedByTaskId": "string",
"claudeSessionId": "string",
"model": "string",
"modelTier": "smol",
"effort": "off",
"resolvedModel": "string",
"modelSource": "string",
"modelAlias": "string",
"resolvedEffort": "off",
"profile": "string",
"resolvedProfile": "string",
"modelGroup": "string",
"fallbackHops": [
{
"from": "string",
"profile": "string",
"errorClass": "rate_limit",
"at": "string",
"skipped": [
{
"profile": "string",
"reason": "string"
}
]
}
],
"scheduleId": "string",
"workflowRunId": "5ca99e95-15bc-4b23-a2d2-f5f4060373ab",
"workflowRunStepId": "87990b6e-ec5d-4b37-8b4e-9ef25c331b99",
"contextKey": "string",
"outputSchema": {
"property1": null,
"property2": null
},
"followUpConfig": {
"disabled": true,
"onCompleted": "string",
"onFailed": "string"
},
"wasPaused": false,
"deferredAt": "2019-08-24T14:15:22Z",
"deferredUntil": "2019-08-24T14:15:22Z",
"compactionCount": 0,
"peakContextPercent": 100,
"peakContextTokens": 0,
"contextWindowSize": 0,
"credentialKeySuffix": "string",
"credentialKeyType": "string",
"requestedByUserId": "string",
"swarmVersion": "string",
"provider": "claude",
"providerMeta": {
"property1": null,
"property2": null
},
"harnessVariant": "string",
"harnessVariantMeta": {
"property1": null,
"property2": null
},
"totalCostUsd": 0,
"routingAffinity": {
"sourceAgentId": "string",
"role": "string",
"harnessProvider": "claude",
"capabilities": [],
"leadOnly": true
},
"routingAffinityInvalid": true
}
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}/api/tasks/{id}/sessionAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X PUT "http://localhost:3013/api/tasks/string/session" \ -H "Content-Type: application/json" \ -d '{ "claudeSessionId": "string", "provider": "devin", "providerMeta": { "sessionUrl": "string" } }'{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"key": "string",
"agentId": "string",
"creatorAgentId": "string",
"task": "string",
"title": "string",
"status": "draft",
"source": "mcp",
"routingReason": "skill",
"routingSource": "declared",
"routingNote": "string",
"poolWakeAt": "string",
"taskType": "string",
"tags": [],
"priority": 50,
"dependsOn": [],
"offeredTo": "string",
"offeredAt": "2019-08-24T14:15:22Z",
"acceptedAt": "2019-08-24T14:15:22Z",
"rejectionReason": "string",
"createdAt": "2019-08-24T14:15:22Z",
"lastUpdatedAt": "2019-08-24T14:15:22Z",
"finishedAt": "2019-08-24T14:15:22Z",
"notifiedAt": "2019-08-24T14:15:22Z",
"statusKind": "agent",
"failureReason": "string",
"output": "string",
"progress": "string",
"slackChannelId": "string",
"slackThreadTs": "string",
"slackTriggerMessageTs": "string",
"slackUserId": "string",
"slackParticipants": {
"people": [
{
"slackUserId": "string",
"userId": "string",
"trust": "internal",
"starter": true,
"newest": true,
"asked": true
}
],
"more": 0
},
"slackReplySent": false,
"slackProgressMessageTs": "string",
"slackTreeRootMessageTs": "string",
"vcsProvider": "github",
"vcsRepo": "string",
"vcsEventType": "string",
"vcsNumber": 0,
"vcsCommentId": 0,
"vcsAuthor": "string",
"vcsUrl": "string",
"vcsInstallationId": 0,
"vcsNodeId": "string",
"agentmailInboxId": "string",
"agentmailMessageId": "string",
"agentmailThreadId": "string",
"mentionMessageId": "string",
"mentionChannelId": "string",
"dir": "string",
"parentTaskId": "string",
"dispatchedByTaskId": "string",
"claudeSessionId": "string",
"model": "string",
"modelTier": "smol",
"effort": "off",
"resolvedModel": "string",
"modelSource": "string",
"modelAlias": "string",
"resolvedEffort": "off",
"profile": "string",
"resolvedProfile": "string",
"modelGroup": "string",
"fallbackHops": [
{
"from": "string",
"profile": "string",
"errorClass": "rate_limit",
"at": "string",
"skipped": [
{
"profile": "string",
"reason": "string"
}
]
}
],
"scheduleId": "string",
"workflowRunId": "5ca99e95-15bc-4b23-a2d2-f5f4060373ab",
"workflowRunStepId": "87990b6e-ec5d-4b37-8b4e-9ef25c331b99",
"contextKey": "string",
"outputSchema": {
"property1": null,
"property2": null
},
"followUpConfig": {
"disabled": true,
"onCompleted": "string",
"onFailed": "string"
},
"wasPaused": false,
"deferredAt": "2019-08-24T14:15:22Z",
"deferredUntil": "2019-08-24T14:15:22Z",
"compactionCount": 0,
"peakContextPercent": 100,
"peakContextTokens": 0,
"contextWindowSize": 0,
"credentialKeySuffix": "string",
"credentialKeyType": "string",
"requestedByUserId": "string",
"swarmVersion": "string",
"provider": "claude",
"providerMeta": {
"property1": null,
"property2": null
},
"harnessVariant": "string",
"harnessVariantMeta": {
"property1": null,
"property2": null
},
"totalCostUsd": 0,
"routingAffinity": {
"sourceAgentId": "string",
"role": "string",
"harnessProvider": "claude",
"capabilities": [],
"leadOnly": true
},
"routingAffinityInvalid": true
}{
"error": "string",
"property1": null,
"property2": null
}/api/tasks/{id}/steerAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:3013/api/tasks/string/steer" \ -H "Content-Type: application/json" \ -d '{ "message": "string" }'{
"outcome": "steered",
"steeringMessageId": "099d6cee-5ee4-4398-bb77-b2066e45efe3",
"promotedTaskId": "eccfaabc-92d6-4fa5-818c-c7d655a8e358",
"effectiveMode": "steer",
"degradedFrom": "steer"
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}/api/tasks/{id}/steering-messagesAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
Response Body
application/json
application/json
curl -X GET "http://localhost:3013/api/tasks/string/steering-messages"{
"messages": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"taskId": "e6e9d88a-9b63-468a-aec3-b7a11de27af8",
"body": "string",
"mode": "steer",
"status": "pending",
"deliveredMode": "steer",
"source": "ui",
"senderLabel": "string",
"createdByKind": "user",
"createdByUserId": "string",
"createdByAgentId": "string",
"promotedTaskId": "eccfaabc-92d6-4fa5-818c-c7d655a8e358",
"createdAt": "2019-08-24T14:15:22Z",
"deliveredAt": "2019-08-24T14:15:22Z",
"handledAt": "2019-08-24T14:15:22Z",
"handledNote": "string",
"attachments": [
{
"id": "string",
"taskId": "string",
"name": "string",
"mimeType": "string",
"sizeBytes": 0
}
]
}
]
}{
"error": "string",
"property1": null,
"property2": null
}/api/tasks/{id}/supersedeAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:3013/api/tasks/string/supersede" \ -H "Content-Type: application/json" \ -d '{ "reason": "graceful_shutdown" }'{
"success": true,
"kind": "alreadyFinished",
"task": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"key": "string",
"agentId": "string",
"creatorAgentId": "string",
"task": "string",
"title": "string",
"status": "draft",
"source": "mcp",
"routingReason": "skill",
"routingSource": "declared",
"routingNote": "string",
"poolWakeAt": "string",
"taskType": "string",
"tags": [],
"priority": 50,
"dependsOn": [],
"offeredTo": "string",
"offeredAt": "2019-08-24T14:15:22Z",
"acceptedAt": "2019-08-24T14:15:22Z",
"rejectionReason": "string",
"createdAt": "2019-08-24T14:15:22Z",
"lastUpdatedAt": "2019-08-24T14:15:22Z",
"finishedAt": "2019-08-24T14:15:22Z",
"notifiedAt": "2019-08-24T14:15:22Z",
"statusKind": "agent",
"failureReason": "string",
"output": "string",
"progress": "string",
"slackChannelId": "string",
"slackThreadTs": "string",
"slackTriggerMessageTs": "string",
"slackUserId": "string",
"slackParticipants": {
"people": [
{
"slackUserId": "string",
"userId": "string",
"trust": "internal",
"starter": true,
"newest": true,
"asked": true
}
],
"more": 0
},
"slackReplySent": false,
"slackProgressMessageTs": "string",
"slackTreeRootMessageTs": "string",
"vcsProvider": "github",
"vcsRepo": "string",
"vcsEventType": "string",
"vcsNumber": 0,
"vcsCommentId": 0,
"vcsAuthor": "string",
"vcsUrl": "string",
"vcsInstallationId": 0,
"vcsNodeId": "string",
"agentmailInboxId": "string",
"agentmailMessageId": "string",
"agentmailThreadId": "string",
"mentionMessageId": "string",
"mentionChannelId": "string",
"dir": "string",
"parentTaskId": "string",
"dispatchedByTaskId": "string",
"claudeSessionId": "string",
"model": "string",
"modelTier": "smol",
"effort": "off",
"resolvedModel": "string",
"modelSource": "string",
"modelAlias": "string",
"resolvedEffort": "off",
"profile": "string",
"resolvedProfile": "string",
"modelGroup": "string",
"fallbackHops": [
{
"from": "string",
"profile": "string",
"errorClass": "rate_limit",
"at": "string",
"skipped": [
{
"profile": "string",
"reason": "string"
}
]
}
],
"scheduleId": "string",
"workflowRunId": "5ca99e95-15bc-4b23-a2d2-f5f4060373ab",
"workflowRunStepId": "87990b6e-ec5d-4b37-8b4e-9ef25c331b99",
"contextKey": "string",
"outputSchema": {
"property1": null,
"property2": null
},
"followUpConfig": {
"disabled": true,
"onCompleted": "string",
"onFailed": "string"
},
"wasPaused": false,
"deferredAt": "2019-08-24T14:15:22Z",
"deferredUntil": "2019-08-24T14:15:22Z",
"compactionCount": 0,
"peakContextPercent": 100,
"peakContextTokens": 0,
"contextWindowSize": 0,
"credentialKeySuffix": "string",
"credentialKeyType": "string",
"requestedByUserId": "string",
"swarmVersion": "string",
"provider": "claude",
"providerMeta": {
"property1": null,
"property2": null
},
"harnessVariant": "string",
"harnessVariantMeta": {
"property1": null,
"property2": null
},
"totalCostUsd": 0,
"routingAffinity": {
"sourceAgentId": "string",
"role": "string",
"harnessProvider": "claude",
"capabilities": [],
"leadOnly": true
},
"routingAffinityInvalid": true
},
"resumeTaskId": "string",
"resumeTaskStatus": "draft",
"failureReason": "string"
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}/api/tasks/{id}/tagsAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X PATCH "http://localhost:3013/api/tasks/string/tags" \ -H "Content-Type: application/json" \ -d '{}'{
"task": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"key": "string",
"agentId": "string",
"creatorAgentId": "string",
"task": "string",
"title": "string",
"status": "draft",
"source": "mcp",
"routingReason": "skill",
"routingSource": "declared",
"routingNote": "string",
"poolWakeAt": "string",
"taskType": "string",
"tags": [],
"priority": 50,
"dependsOn": [],
"offeredTo": "string",
"offeredAt": "2019-08-24T14:15:22Z",
"acceptedAt": "2019-08-24T14:15:22Z",
"rejectionReason": "string",
"createdAt": "2019-08-24T14:15:22Z",
"lastUpdatedAt": "2019-08-24T14:15:22Z",
"finishedAt": "2019-08-24T14:15:22Z",
"notifiedAt": "2019-08-24T14:15:22Z",
"statusKind": "agent",
"failureReason": "string",
"output": "string",
"progress": "string",
"slackChannelId": "string",
"slackThreadTs": "string",
"slackTriggerMessageTs": "string",
"slackUserId": "string",
"slackParticipants": {
"people": [
{
"slackUserId": "string",
"userId": "string",
"trust": "internal",
"starter": true,
"newest": true,
"asked": true
}
],
"more": 0
},
"slackReplySent": false,
"slackProgressMessageTs": "string",
"slackTreeRootMessageTs": "string",
"vcsProvider": "github",
"vcsRepo": "string",
"vcsEventType": "string",
"vcsNumber": 0,
"vcsCommentId": 0,
"vcsAuthor": "string",
"vcsUrl": "string",
"vcsInstallationId": 0,
"vcsNodeId": "string",
"agentmailInboxId": "string",
"agentmailMessageId": "string",
"agentmailThreadId": "string",
"mentionMessageId": "string",
"mentionChannelId": "string",
"dir": "string",
"parentTaskId": "string",
"dispatchedByTaskId": "string",
"claudeSessionId": "string",
"model": "string",
"modelTier": "smol",
"effort": "off",
"resolvedModel": "string",
"modelSource": "string",
"modelAlias": "string",
"resolvedEffort": "off",
"profile": "string",
"resolvedProfile": "string",
"modelGroup": "string",
"fallbackHops": [
{
"from": "string",
"profile": "string",
"errorClass": "rate_limit",
"at": "string",
"skipped": [
{
"profile": "string",
"reason": "string"
}
]
}
],
"scheduleId": "string",
"workflowRunId": "5ca99e95-15bc-4b23-a2d2-f5f4060373ab",
"workflowRunStepId": "87990b6e-ec5d-4b37-8b4e-9ef25c331b99",
"contextKey": "string",
"outputSchema": {
"property1": null,
"property2": null
},
"followUpConfig": {
"disabled": true,
"onCompleted": "string",
"onFailed": "string"
},
"wasPaused": false,
"deferredAt": "2019-08-24T14:15:22Z",
"deferredUntil": "2019-08-24T14:15:22Z",
"compactionCount": 0,
"peakContextPercent": 100,
"peakContextTokens": 0,
"contextWindowSize": 0,
"credentialKeySuffix": "string",
"credentialKeyType": "string",
"requestedByUserId": "string",
"swarmVersion": "string",
"provider": "claude",
"providerMeta": {
"property1": null,
"property2": null
},
"harnessVariant": "string",
"harnessVariantMeta": {
"property1": null,
"property2": null
},
"totalCostUsd": 0,
"routingAffinity": {
"sourceAgentId": "string",
"role": "string",
"harnessProvider": "claude",
"capabilities": [],
"leadOnly": true
},
"routingAffinityInvalid": true
}
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}/api/tasks/{id}/titleAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X PATCH "http://localhost:3013/api/tasks/string/title" \ -H "Content-Type: application/json" \ -d '{ "title": "string" }'{
"task": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"key": "string",
"agentId": "string",
"creatorAgentId": "string",
"task": "string",
"title": "string",
"status": "draft",
"source": "mcp",
"routingReason": "skill",
"routingSource": "declared",
"routingNote": "string",
"poolWakeAt": "string",
"taskType": "string",
"tags": [],
"priority": 50,
"dependsOn": [],
"offeredTo": "string",
"offeredAt": "2019-08-24T14:15:22Z",
"acceptedAt": "2019-08-24T14:15:22Z",
"rejectionReason": "string",
"createdAt": "2019-08-24T14:15:22Z",
"lastUpdatedAt": "2019-08-24T14:15:22Z",
"finishedAt": "2019-08-24T14:15:22Z",
"notifiedAt": "2019-08-24T14:15:22Z",
"statusKind": "agent",
"failureReason": "string",
"output": "string",
"progress": "string",
"slackChannelId": "string",
"slackThreadTs": "string",
"slackTriggerMessageTs": "string",
"slackUserId": "string",
"slackParticipants": {
"people": [
{
"slackUserId": "string",
"userId": "string",
"trust": "internal",
"starter": true,
"newest": true,
"asked": true
}
],
"more": 0
},
"slackReplySent": false,
"slackProgressMessageTs": "string",
"slackTreeRootMessageTs": "string",
"vcsProvider": "github",
"vcsRepo": "string",
"vcsEventType": "string",
"vcsNumber": 0,
"vcsCommentId": 0,
"vcsAuthor": "string",
"vcsUrl": "string",
"vcsInstallationId": 0,
"vcsNodeId": "string",
"agentmailInboxId": "string",
"agentmailMessageId": "string",
"agentmailThreadId": "string",
"mentionMessageId": "string",
"mentionChannelId": "string",
"dir": "string",
"parentTaskId": "string",
"dispatchedByTaskId": "string",
"claudeSessionId": "string",
"model": "string",
"modelTier": "smol",
"effort": "off",
"resolvedModel": "string",
"modelSource": "string",
"modelAlias": "string",
"resolvedEffort": "off",
"profile": "string",
"resolvedProfile": "string",
"modelGroup": "string",
"fallbackHops": [
{
"from": "string",
"profile": "string",
"errorClass": "rate_limit",
"at": "string",
"skipped": [
{
"profile": "string",
"reason": "string"
}
]
}
],
"scheduleId": "string",
"workflowRunId": "5ca99e95-15bc-4b23-a2d2-f5f4060373ab",
"workflowRunStepId": "87990b6e-ec5d-4b37-8b4e-9ef25c331b99",
"contextKey": "string",
"outputSchema": {
"property1": null,
"property2": null
},
"followUpConfig": {
"disabled": true,
"onCompleted": "string",
"onFailed": "string"
},
"wasPaused": false,
"deferredAt": "2019-08-24T14:15:22Z",
"deferredUntil": "2019-08-24T14:15:22Z",
"compactionCount": 0,
"peakContextPercent": 100,
"peakContextTokens": 0,
"contextWindowSize": 0,
"credentialKeySuffix": "string",
"credentialKeyType": "string",
"requestedByUserId": "string",
"swarmVersion": "string",
"provider": "claude",
"providerMeta": {
"property1": null,
"property2": null
},
"harnessVariant": "string",
"harnessVariantMeta": {
"property1": null,
"property2": null
},
"totalCostUsd": 0,
"routingAffinity": {
"sourceAgentId": "string",
"role": "string",
"harnessProvider": "claude",
"capabilities": [],
"leadOnly": true
},
"routingAffinityInvalid": true
}
}{
"error": "string",
"property1": null,
"property2": null
}/api/tasks/{id}/ui-actions/{actionId}Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:3013/api/tasks/string/ui-actions/string"{
"status": "started",
"taskId": "string",
"uiSpec": {
"spec": {
"root": "string",
"elements": {
"property1": null,
"property2": null
},
"state": {
"property1": null,
"property2": null
}
},
"actions": {
"property1": {
"kind": "follow_up",
"prompt": "string"
},
"property2": {
"kind": "follow_up",
"prompt": "string"
}
},
"fallbackText": "string"
}
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}/api/tasks/{id}/vcsAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X PATCH "http://localhost:3013/api/tasks/string/vcs" \ -H "Content-Type: application/json" \ -d '{ "vcsProvider": "github", "vcsRepo": "string", "vcsNumber": 0, "vcsUrl": "http://example.com" }'{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"key": "string",
"agentId": "string",
"creatorAgentId": "string",
"task": "string",
"title": "string",
"status": "draft",
"source": "mcp",
"routingReason": "skill",
"routingSource": "declared",
"routingNote": "string",
"poolWakeAt": "string",
"taskType": "string",
"tags": [],
"priority": 50,
"dependsOn": [],
"offeredTo": "string",
"offeredAt": "2019-08-24T14:15:22Z",
"acceptedAt": "2019-08-24T14:15:22Z",
"rejectionReason": "string",
"createdAt": "2019-08-24T14:15:22Z",
"lastUpdatedAt": "2019-08-24T14:15:22Z",
"finishedAt": "2019-08-24T14:15:22Z",
"notifiedAt": "2019-08-24T14:15:22Z",
"statusKind": "agent",
"failureReason": "string",
"output": "string",
"progress": "string",
"slackChannelId": "string",
"slackThreadTs": "string",
"slackTriggerMessageTs": "string",
"slackUserId": "string",
"slackParticipants": {
"people": [
{
"slackUserId": "string",
"userId": "string",
"trust": "internal",
"starter": true,
"newest": true,
"asked": true
}
],
"more": 0
},
"slackReplySent": false,
"slackProgressMessageTs": "string",
"slackTreeRootMessageTs": "string",
"vcsProvider": "github",
"vcsRepo": "string",
"vcsEventType": "string",
"vcsNumber": 0,
"vcsCommentId": 0,
"vcsAuthor": "string",
"vcsUrl": "string",
"vcsInstallationId": 0,
"vcsNodeId": "string",
"agentmailInboxId": "string",
"agentmailMessageId": "string",
"agentmailThreadId": "string",
"mentionMessageId": "string",
"mentionChannelId": "string",
"dir": "string",
"parentTaskId": "string",
"dispatchedByTaskId": "string",
"claudeSessionId": "string",
"model": "string",
"modelTier": "smol",
"effort": "off",
"resolvedModel": "string",
"modelSource": "string",
"modelAlias": "string",
"resolvedEffort": "off",
"profile": "string",
"resolvedProfile": "string",
"modelGroup": "string",
"fallbackHops": [
{
"from": "string",
"profile": "string",
"errorClass": "rate_limit",
"at": "string",
"skipped": [
{
"profile": "string",
"reason": "string"
}
]
}
],
"scheduleId": "string",
"workflowRunId": "5ca99e95-15bc-4b23-a2d2-f5f4060373ab",
"workflowRunStepId": "87990b6e-ec5d-4b37-8b4e-9ef25c331b99",
"contextKey": "string",
"outputSchema": {
"property1": null,
"property2": null
},
"followUpConfig": {
"disabled": true,
"onCompleted": "string",
"onFailed": "string"
},
"wasPaused": false,
"deferredAt": "2019-08-24T14:15:22Z",
"deferredUntil": "2019-08-24T14:15:22Z",
"compactionCount": 0,
"peakContextPercent": 100,
"peakContextTokens": 0,
"contextWindowSize": 0,
"credentialKeySuffix": "string",
"credentialKeyType": "string",
"requestedByUserId": "string",
"swarmVersion": "string",
"provider": "claude",
"providerMeta": {
"property1": null,
"property2": null
},
"harnessVariant": "string",
"harnessVariantMeta": {
"property1": null,
"property2": null
},
"totalCostUsd": 0,
"routingAffinity": {
"sourceAgentId": "string",
"role": "string",
"harnessProvider": "claude",
"capabilities": [],
"leadOnly": true
},
"routingAffinityInvalid": true
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}