Skip to main content
POST
Migrate Persona

Overview

Deterministically converts a persona into a new agent, with no AI planning involved. The persona’s prompts, voice, and call settings become the agent’s settings, each attached pathway becomes a complex scenario holding a one-to-one conversion of its graph, and the persona’s skills become simple scenarios. The persona’s published version is used, falling back to its draft. The agent and its first version are always created; the response is 201. To have the planner re-architect the persona’s pathways instead, use Start Pathway Translation with the same body. Requires an admin, owner, operator, or prompter role.

Headers

string
required
Your API key for authentication.

Body Parameters

string
required
UUID of a persona in your organization. Returns 400 INVALID_PERSONA_ID if it is not a UUID, 404 PERSONA_NOT_FOUND if no such persona exists in your organization, and 422 PERSONA_HAS_NO_VERSION if the persona has neither a published nor a draft version.
string
Display name for the new agent. Whitespace is trimmed. Defaults to the persona’s name.
array
One entry per pathway attached to the persona, in the persona’s order, each one_to_one or translate. The length must match the persona’s pathway count or the request returns 400 INVALID_PATHWAY_MODES. This endpoint only performs one_to_one; any translate entry returns 400 TRANSLATE_NOT_SUPPORTED. Omit the field to convert every pathway one-to-one.

Response

Returns 201 on success. Returns 422 with INVALID_MIGRATED_SNAPSHOT or MIGRATION_LINT_FAILED when the converted agent does not validate, and 422 PERSONA_MIGRATION_FAILED when a referenced pathway cannot be loaded (for example, it was deleted or belongs to another organization).
object
The new agent record.
object
The agent’s first version, saved on the dev timeline.
array
Human-readable notes about constructs the one-to-one conversion could not carry faithfully. Review each before publishing the agent.
object
Structural checks on the saved snapshot: errors (always empty on a 201) and warnings (array of strings).
null | array
null on success, or a list of error objects if the request failed.

Docs for agents: llms.txt