---
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
  - `description` string, required
  - `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[]
      - `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
    - `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, date-time, required
  - `description` string, required
  - `execution_id` 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

## Changes

- **2026-06-18** `dad98bb65260` — 1 info
  - added the new optional request property `task_policy`
- **2026-04-29** `e1a530c0a2d5` — 1 warning, 1 info
  - removed the request property `enable_agent_communication`
  - added the optional property `total_cost` to the response with the `200` status
- **2026-03-30** `e9c153221160` — 2 warning, 1 info
  - removed the request property `task_policy`
  - removed the optional property `total_cost` from the response with the `200` status
  - added the new optional request property `enable_agent_communication`

[Change history](https://skmtc.dev/agentarea/apis/agentarea-api/changes/v1/agents/:agent_id/tasks/sync/post.md)

---

[API](https://skmtc.dev/agentarea/apis/agentarea-api.md) · [All operations](https://skmtc.dev/agentarea/apis/agentarea-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/agentarea/agentarea-api/revisions/dad98bb65260/schema)
