---
title: "Create Task For Agent Sync"
method: POST
path: "/v1/agents/{agent_id}/tasks/sync"
tags: ["v1", "protected", "agent-tasks"]
---

# Create Task For Agent Sync

`POST /v1/agents/{agent_id}/tasks/sync`

Create and execute a task for the specified agent (synchronous response).

## Path parameters

- `agent_id` string, uuid, required

## Request body

- TaskCreate
  - `attachments` string[], nullable
  - `description` string, required
  - `execution` RunExecutionConfig — Caller-requested execution ceiling; governance may only tighten it.
    - `max_model_turns` integer, required — Maximum LLM/model turns requested for this run.
  - `parameters` object
  - `project_id` string, nullable
  - `requires_human_approval` boolean, nullable
  - `task_policy` PolicyDocument — Source policy document stored per scope.
    - `approval` ApprovalPolicy — Human approval and escalation requirements.
      - `approvers` string[]
      - `approvers_by_tool` object
      - `escalation_rules` string[]
      - `requires_human_approval` boolean, nullable
    - `budget` BudgetPolicyInput — Budget-related ceilings.
      - `monthly_spend_cap_usd` union
        - number
        - string
      - `run_budget_usd` union
        - number
        - string
      - `service_budget_usd` union
        - number
        - string
    - `content_safety` ContentSafetyPolicy — Content-safety governance controls.
      - `output_sanitizer_enabled` boolean, nullable
      - `prompt_injection_detection_enabled` boolean, nullable
    - `execution` ExecutionLimitsPolicy — Ceilings for the agent loop and tool execution.
      - `max_model_turns` integer, nullable
      - `max_tool_calls_per_turn` integer, nullable
      - `max_tool_calls_total` integer, nullable
    - `tokens` TokenPolicy — Token-related ceilings.
      - `max_tokens` integer, nullable
      - `max_tokens_per_call` integer, nullable
    - `tools` ToolsPolicy — MCP tool capability restrictions.
      - `allowed` string[], nullable
      - `denied` string[]

## Response `200`

Successful Response

- TaskResponse
  - `agent_id` string, uuid, required
  - `created_at` string, required
  - `description` string, required
  - `error` string, nullable
  - `execution_id` string, nullable
  - `failure_reason` string, nullable
  - `id` string, uuid, required
  - `parameters` object, required
  - `result` union
    - object
    - string
  - `status` string, required
  - `total_cost` number, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/agentarea/apis/agentarea-api.md) · [All operations](https://skmtc.net/agentarea/apis/agentarea-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/agentarea/agentarea-api/versions/e3650e48373b/schema)
