Skip to main content
POST
JavaScript

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

flowId
string<uuid>
required

Body

application/json

Options for duplicating a customer flow. Every field is optional.

title
string

Title for the copy. Defaults to "Copy of" the source flow.

Minimum string length: 1
Example:

"Reschedule an appointment (v2)"

agentIds
string<uuid>[]

Agents to link on the copy. Omit to carry the source flow's agents over. Required when the source is a Roark-managed flow with no agents of its own.

Response

The duplicated customer flow

data
Scripted · object
required

The conversation a simulated customer has with the agent under test.