---
title: "Create Share Task"
method: POST
path: "/api/share/chat/task/create"
tags: ["share"]
---

# Create Share Task

`POST /api/share/chat/task/create`

## Request body

- TaskCreateRequest — Create task request
  - `title` string, required
  - `description` string, nullable
  - `agent_id` integer, nullable
  - `files` string[], nullable
  - `llm_ids` string[], nullable
  - `memory_similarity_threshold` number, nullable
  - `agent_type` string, nullable
  - `agent_config` object, nullable
  - `is_preview` boolean
  - `is_visible` boolean
  - `execution_mode` string, nullable
  - `process_description` string, nullable
  - `examples` ExampleItem[], nullable
    - `input` string, required
    - `output` string, required

## Response `200`

Successful Response

- TaskCreateResponse — Create task response
  - `task_id` integer, required
  - `title` string, required
  - `status` string, required
  - `created_at` string, required
  - `model_id` string, nullable
  - `small_fast_model_id` string, nullable
  - `visual_model_id` string, nullable
  - `compact_model_id` string, nullable
  - `model_name` string, nullable
  - `small_fast_model_name` string, nullable
  - `visual_model_name` string, nullable
  - `compact_model_name` string, nullable
  - `execution_mode` string, nullable
  - `channel_id` integer, nullable
  - `channel_name` string, nullable
  - `agent_id` integer, nullable
  - `agent_name` string, nullable
  - `agent_logo_url` string, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/xorbitsai/apis/xagent.md) · [All operations](https://skmtc.net/xorbitsai/apis/xagent/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/xorbitsai/xagent/revisions/33e4ba4936ad/schema)
