Authorizations
Path Parameters
The ID of the agent to clone
Example:
"123"
Body
application/json
Response
Agent cloned successfully
curl --request POST \
--url https://prod.featherhq.com/api/v1/agents/{id}/clone \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"versionType": "latest",
"name": "<string>",
"description": "<string>"
}'
{
"agent": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"inboundPhoneNumbers": [
{
"id": "<string>"
}
],
"outboundPhoneNumbers": [
{
"id": "<string>"
}
],
"callObservabilityEnabled": false,
"version": {
"id": "<string>",
"version": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"mode": "FLOW",
"prompt": {
"system": "<string>",
"systemUIFormatting": "<any>",
"variables": [
{
"name": "<string>",
"required": true,
"defaultValue": "<string>"
}
],
"tools": [
"<string>"
],
"preBuiltTools": [
"<string>"
]
},
"promptPersonalityId": "<string>",
"sttConfigId": "<string>",
"ttsConfigId": "<string>",
"llmConfigId": "<string>",
"overrideSTTConfig": {
"keywords": [
{
"keyword": "<string>",
"intensifier": "INTENSIFY"
}
]
},
"overrideTTSConfig": {},
"overrideLLMConfig": {},
"voiceId": "<string>",
"postCallPrompt": "<string>",
"postCallVariables": [
{
"variableName": "<string>",
"type": "STRING",
"description": "<string>",
"required": false
}
],
"knowledgeBaseCollectionIds": [
"<string>"
],
"voicemailMessage": "<string>",
"speakFirst": false,
"firstMessage": "<string>",
"useKnowledgeBase": true,
"enableBackgroundAudio": false,
"backgroundAudio": 50,
"forwardingPhoneNumber": "<string>"
}
}
}
Clone an existing agent with either the latest or deployed version
curl --request POST \
--url https://prod.featherhq.com/api/v1/agents/{id}/clone \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"versionType": "latest",
"name": "<string>",
"description": "<string>"
}'
{
"agent": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"inboundPhoneNumbers": [
{
"id": "<string>"
}
],
"outboundPhoneNumbers": [
{
"id": "<string>"
}
],
"callObservabilityEnabled": false,
"version": {
"id": "<string>",
"version": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"mode": "FLOW",
"prompt": {
"system": "<string>",
"systemUIFormatting": "<any>",
"variables": [
{
"name": "<string>",
"required": true,
"defaultValue": "<string>"
}
],
"tools": [
"<string>"
],
"preBuiltTools": [
"<string>"
]
},
"promptPersonalityId": "<string>",
"sttConfigId": "<string>",
"ttsConfigId": "<string>",
"llmConfigId": "<string>",
"overrideSTTConfig": {
"keywords": [
{
"keyword": "<string>",
"intensifier": "INTENSIFY"
}
]
},
"overrideTTSConfig": {},
"overrideLLMConfig": {},
"voiceId": "<string>",
"postCallPrompt": "<string>",
"postCallVariables": [
{
"variableName": "<string>",
"type": "STRING",
"description": "<string>",
"required": false
}
],
"knowledgeBaseCollectionIds": [
"<string>"
],
"voicemailMessage": "<string>",
"speakFirst": false,
"firstMessage": "<string>",
"useKnowledgeBase": true,
"enableBackgroundAudio": false,
"backgroundAudio": 50,
"forwardingPhoneNumber": "<string>"
}
}
}
The ID of the agent to clone
"123"
Agent cloned successfully
Show child attributes