---
title: "Create use case with agent"
method: POST
path: "/api/v1/public/usecases/with-agent"
tags: ["public"]
---

# Create use case with agent

`POST /api/v1/public/usecases/with-agent`

## Request

- Base URL: `https://api.outcallerai.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.outcallerai.com/api/v1/public/usecases/with-agent`
- Auth: none declared. Required headers: `Idempotency-Key`

Atomically create a workspace-owned use case and its voice agent as one idempotent operation.

## Headers

- `Idempotency-Key` string, required

## Request body

- CompoundUseCaseRequest
  - `name` string, required
  - `description` string, nullable
  - `purpose` string, nullable
  - `direction` 'OUTBOUND' | 'INBOUND' | 'ONE_WAY'
  - `agentName` string, required
  - `agentGender` 'MALE' | 'FEMALE'
  - `voiceId` string, nullable
  - `knowledgeBaseId` string, nullable
  - `integrations` string[]
  - `scheduleEnabled` boolean

## Response `201`

Successful Response

- CompoundUseCaseResult
  - `useCaseId` string, required
  - `useCaseName` string, required
  - `agentId` string, required
  - `agentName` string, required
  - `appUrl` string, required

## Other responses

- `422`: Validation Error

## Changes

- **2026-08-21** `2a1adc380310`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/outcallerai/apis/outcallerai-api/changes/api/v1/public/usecases/with-agent/post.md)

---

[API](https://skmtc.dev/outcallerai/apis/outcallerai-api.md) - [All operations](https://skmtc.dev/outcallerai/apis/outcallerai-api/llms.txt) - [OpenAPI document](https://skmtc.dev/outcallerai/apis/outcallerai-api/revisions/40736cf433b4?raw)
