---
title: "Create Human Agent Api"
method: POST
path: "/api/workspaces/{workspace_id}/human-agents"
---

# Create Human Agent Api

`POST /api/workspaces/{workspace_id}/human-agents`

## Path parameters

- `workspace_id` string, required

## Request body

- HumanAgentWriteRequest
  - `campaignId` string, required
  - `name` string, required
  - `phone` string, required
  - `agent_id` string, nullable
  - `countryCode` string, nullable

## Response `201`

Successful Response

- HumanAgentEnvelopeResponse
  - `success` boolean
  - `human_agent` HumanAgentResponse, required
    - `id` string, required
    - `campaignId` string, required
    - `name` string, required
    - `phone` string, required
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required
  - `message` string, required

## Other responses

- `422` — Validation Error

---

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