---
title: "POST /v1/agents"
method: POST
path: "/v1/agents"
tags: ["agents"]
---

# POST /v1/agents

`POST /v1/agents`

## Request body

- CreateAgentBody
  - `agent_id` string, uuid, nullable
  - `derived_from_agent_id` string, uuid, nullable
  - `is_subagent` boolean
  - `owner_user_id` string, nullable
  - `workspace_id` string, nullable

## Response `201`

- CreateAgentResponse
  - `agent` Agent
    - `active_build_run_id` string, nullable
    - `agent_id` string, required
    - `agent_name` AgentName
      - `explanation` string, nullable
      - `name` string, required
    - `has_instruction_build` boolean, nullable
    - `has_runs` boolean, nullable
    - `icon_config` string, nullable
    - `last_activity_at` string, nullable
    - `last_chat_message` string, nullable
    - `latest_build_run_id` string, nullable
    - `latest_instruction_build_run_id` string, nullable
    - `latest_run_has_pending_input` boolean, nullable
    - `latest_run_id` string, nullable
    - `latest_run_is_finished` boolean, nullable
    - `latest_run_status` string, nullable
    - `unread` boolean, required
    - `workspace_id` string, nullable

## Other responses

- `401`

---

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