Space Docs
Domain Model

Agent Task

Fields

FieldTypeRequiredDefaultDescription
idstring.uuidYes—Id
createdAtstring.date-timeYes—Created at
updatedAtstring.date-timeYes—Updated at
taskTypestringYes—Task type
sourceTypeenum(event, conversation, schedule, operator, workflow, automation_rule)Yes—Source type
sourceRefIdstring,nullYes—ID of the associated source ref
entityTypestring,nullYes—Entity type
entityIdstring,nullYes—ID of the associated entity
titlestringYes—Title
descriptionstring,nullYes—Description
prioritynumberYes—Priority
statusenum(queued, planning, awaiting_approval, executing, blocked, completed, failed, canceled)Yes—Status
assignedAgentRolestring,nullYes—Assigned agent role
assignedAgentIdstring,nullYes—ID of the associated assigned agent
executionModeenum(deterministic, agentic, hybrid)Yes—Execution mode
approvalPolicyenum(auto_execute, draft_for_review, agent_review, restricted)Yes—Approval policy
dueAtunknownYes—Due at
startedAtunknownYes—Started at
completedAtunknownYes—Completed at
failedAtunknownYes—Failed at
lastErrorstring,nullYes—Last error
workspaceVisiblebooleanYes—Workspace visible
createdByUserIdstring,nullYes—ID of the associated created by user
workspaceIdstringYes—ID of the associated workspace
metadataunknownYes—Metadata

Create Schema

Fields accepted when creating a new record:

FieldTypeRequiredDefaultDescription
taskTypestringYes—Task type
sourceTypeenum(event, conversation, schedule, operator, workflow, automation_rule)Yes—Source type
sourceRefIdstringNo—ID of the associated source ref
entityTypestringNo—Entity type
entityIdstringNo—ID of the associated entity
titlestringYes—Title
descriptionstringNo—Description
priorityintegerYes100Priority
assignedAgentRoleunknownNo—Assigned agent role
assignedAgentIdunknownNo—ID of the associated assigned agent
executionModeenum(deterministic, agentic, hybrid)Yes"agentic"Execution mode
approvalPolicyenum(auto_execute, draft_for_review, agent_review, restricted)Yes"draft_for_review"Approval policy
dueAtstring.date-timeNo—Due at
workspaceVisiblebooleanYestrueWorkspace visible
createdByUserIdstringNo—ID of the associated created by user
workspaceIdstringNo—ID of the associated workspace
metadataobjectNo—Metadata

Update Schema

All fields are optional when updating:

FieldTypeRequiredDefaultDescription
taskTypestringNo—Task type
entityTypestringNo—Entity type
entityIdstringNo—ID of the associated entity
titlestringNo—Title
descriptionstringNo—Description
priorityintegerNo—Priority
assignedAgentRoleunknownNo—Assigned agent role
assignedAgentIdunknownNo—ID of the associated assigned agent
executionModeenum(deterministic, agentic, hybrid)No—Execution mode
approvalPolicyenum(auto_execute, draft_for_review, agent_review, restricted)No—Approval policy
dueAtstring.date-timeNo—Due at
workspaceVisiblebooleanNo—Workspace visible
metadataobjectNo—Metadata

On this page