---
title: "Create Task Execution"
method: POST
path: "/tasks/{task_id}/executions"
tags: ["executions"]
---

# Create Task Execution

`POST /tasks/{task_id}/executions`

## Path parameters

- `task_id` string, uuid, required

## Request body

- CreateExecutionRequest — Payload for creating an execution
  - `input` object, required
  - `output` unknown
  - `error` string, nullable
  - `transition_count` integer, nullable
  - `metadata` object, nullable

## Response `201`

Successful Response

- Execution
  - `task_id` string, uuid, required
  - `status` 'queued' | 'starting' | 'running' | 'awaiting_input' | 'succeeded' | 'failed' | 'cancelled', required
  - `input` object, required
  - `output` unknown
  - `error` string, nullable
  - `transition_count` integer, nullable
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `metadata` object, nullable
  - `id` string, uuid, required

## Other responses

- `422` — Validation Error

## Changes

- **2025-03-18** `09b958f5a876` — 2 info
  - added the new optional request property `transition_count`
  - added the optional property `transition_count` to the response with the `201` status
- **2025-01-27** `f87931a479bd` — 1 warning, 8 info
  - removed the optional property `jobs` from the response with the `201` status
  - added the optional property `error` to the response with the `201` status
  - added the optional property `metadata` to the response with the `201` status
  - added the optional property `output` to the response with the `201` status
  - …5 more

[Change history](https://skmtc.dev/julep-ai/apis/julep-agents-api/changes/tasks/:task_id/executions/post.md)

---

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