latestOpenAPI 3.1.02026-08-21724493743.3 KB

2a1adc380310

public

Create use case with agent

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

post/api/v1/public/usecases/with-agent

Headers

Idempotency-Keystring required

Request body

namestring required
descriptionstring nullable
purposestring nullable
direction'OUTBOUND' | 'INBOUND' | 'ONE_WAY'
agentNamestring required
agentGender'MALE' | 'FEMALE'
voiceIdstring nullable
knowledgeBaseIdstring nullable
integrationsstring[]
scheduleEnabledboolean

Response

Successful Response

useCaseIdstring required
useCaseNamestring required
agentIdstring required
agentNamestring required
appUrlstring required