curl --request PUT \
--url https://app2.freyavoice.ai/api/v2/agents/{agentId}/versions/{versionId} \
--header 'Authorization: Bearer <token>'{
"success": true,
"data": {
"message": "<string>",
"result": {
"version": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agentId": "<string>",
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"versionNumber": 123,
"parentVersionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"isActive": true,
"configSnapshot": {
"llmConfig": {
"provider": "<string>",
"model": "<string>",
"systemPrompt": "<string>",
"firstMessage": "<string>",
"firstMessageMode": "assistant-waits-for-user",
"disableInterruptionsDuringFirstMessage": false,
"maxTokens": 1000,
"temperature": 0.7,
"thinkingBudgetEnabled": false,
"thinkingBudget": 10000,
"tools": [],
"additionalSettings": {}
},
"ttsConfig": {
"provider": "<string>",
"model": "<string>",
"voiceId": "<string>",
"stability": 0.5,
"similarityBoost": 0.5,
"language": "multi",
"speed": 1,
"additionalSettings": {},
"startSpeakingPlan": {
"waitSeconds": 0.4
},
"stopSpeakingPlan": {
"numberOfWords": 1,
"voiceSeconds": 0.4,
"backOffSeconds": 0.4
}
},
"sstConfig": {
"provider": "<string>",
"model": "<string>",
"temperature": 0.5,
"language": "multi",
"punctuate": true,
"diarize": false,
"additionalSettings": {}
},
"complianceConfig": {
"pciDss": false,
"mifidIi": false,
"euAiAct": false,
"soc2": false
},
"callTimeoutSettings": {
"silenceTimeout": 0,
"maximumDuration": 600
},
"voicemailDetection": {
"enabled": false,
"messageMode": "none",
"staticMessage": null,
"voicemailResponseDelay": 2
},
"postConversationAnalysis": {
"generateSummary": false,
"summaryPrompt": null,
"generateStructuredData": false,
"structuredDataPrompt": null,
"autoDetectProblems": false,
"structuredDataSchema": []
},
"privacyConfig": {
"enableRecording": false,
"getRecordingConsent": false,
"recordingConsentText": null,
"stopSecs": 1,
"preSpeechMs": 1,
"maxDurationSecs": 1
},
"turnAnalyzerConfig": {
"provider": "local",
"url": "<string>",
"modelPath": "<string>"
}
},
"configDiff": {},
"createdBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"versionType": "edit"
}
}
}
}Sets the specified version as the active version for the agent.
curl --request PUT \
--url https://app2.freyavoice.ai/api/v2/agents/{agentId}/versions/{versionId} \
--header 'Authorization: Bearer <token>'{
"success": true,
"data": {
"message": "<string>",
"result": {
"version": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agentId": "<string>",
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"versionNumber": 123,
"parentVersionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"isActive": true,
"configSnapshot": {
"llmConfig": {
"provider": "<string>",
"model": "<string>",
"systemPrompt": "<string>",
"firstMessage": "<string>",
"firstMessageMode": "assistant-waits-for-user",
"disableInterruptionsDuringFirstMessage": false,
"maxTokens": 1000,
"temperature": 0.7,
"thinkingBudgetEnabled": false,
"thinkingBudget": 10000,
"tools": [],
"additionalSettings": {}
},
"ttsConfig": {
"provider": "<string>",
"model": "<string>",
"voiceId": "<string>",
"stability": 0.5,
"similarityBoost": 0.5,
"language": "multi",
"speed": 1,
"additionalSettings": {},
"startSpeakingPlan": {
"waitSeconds": 0.4
},
"stopSpeakingPlan": {
"numberOfWords": 1,
"voiceSeconds": 0.4,
"backOffSeconds": 0.4
}
},
"sstConfig": {
"provider": "<string>",
"model": "<string>",
"temperature": 0.5,
"language": "multi",
"punctuate": true,
"diarize": false,
"additionalSettings": {}
},
"complianceConfig": {
"pciDss": false,
"mifidIi": false,
"euAiAct": false,
"soc2": false
},
"callTimeoutSettings": {
"silenceTimeout": 0,
"maximumDuration": 600
},
"voicemailDetection": {
"enabled": false,
"messageMode": "none",
"staticMessage": null,
"voicemailResponseDelay": 2
},
"postConversationAnalysis": {
"generateSummary": false,
"summaryPrompt": null,
"generateStructuredData": false,
"structuredDataPrompt": null,
"autoDetectProblems": false,
"structuredDataSchema": []
},
"privacyConfig": {
"enableRecording": false,
"getRecordingConsent": false,
"recordingConsentText": null,
"stopSecs": 1,
"preSpeechMs": 1,
"maxDurationSecs": 1
},
"turnAnalyzerConfig": {
"provider": "local",
"url": "<string>",
"modelPath": "<string>"
}
},
"configDiff": {},
"createdBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"versionType": "edit"
}
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Workspace ID