Phonely

Phonely API operations using API key auth.

Agent → Create

AI-generated

Summary

Duplicates an existing Phonely agent, optionally renaming it, and returns the duplicated agent data.

Inputs

  • agentIdForUpdate (required) — Agent ID of the agent to duplicate.
  • agentName — Optional name for the duplicated agent.

Output shape

object

The response body from the Phonely duplicate-agent endpoint, containing the newly created agent's details.

Examples

Example 1: Create a copy of agent 'abc123' named 'Support Bot v2'

Set Agent ID to 'abc123' and Name to 'Support Bot v2'.

Discussion