API Documentation
Versioned Prompts
Phone Numbers
Models
Versioned Prompts
Get versioned prompt
Gets a specific versioned prompt for a given agent.
GET
/
agents
/
{agentId}
/
versioned_prompts
/
{id}
curl --request GET \
--url https://api.vogent.ai/api/agents/{agentId}/versioned_prompts/{id}
{
"id": "<string>",
"name": "<string>",
"agentType": "STANDARD",
"prompt": "<string>",
"flowDefinition": {
"nodes": [
{
"id": "<string>",
"name": "<string>",
"type": "<string>",
"transitionRules": [
{
"conditionType": "always",
"arrayConditionType": "any",
"field": "<string>",
"value": "<string>",
"values": [
"<string>"
],
"transitionNodeId": "<string>"
}
],
"outputSchema": "<string>",
"nodeData": {}
}
],
"globalContext": "<string>",
"aiOpen": true
},
"aiModelId": "<string>",
"modelOptionValues": [
{
"optionId": "<string>",
"value": "<string>"
}
]
}
Response
200
application/json
Successful operation
The response is of type object
.
curl --request GET \
--url https://api.vogent.ai/api/agents/{agentId}/versioned_prompts/{id}
{
"id": "<string>",
"name": "<string>",
"agentType": "STANDARD",
"prompt": "<string>",
"flowDefinition": {
"nodes": [
{
"id": "<string>",
"name": "<string>",
"type": "<string>",
"transitionRules": [
{
"conditionType": "always",
"arrayConditionType": "any",
"field": "<string>",
"value": "<string>",
"values": [
"<string>"
],
"transitionNodeId": "<string>"
}
],
"outputSchema": "<string>",
"nodeData": {}
}
],
"globalContext": "<string>",
"aiOpen": true
},
"aiModelId": "<string>",
"modelOptionValues": [
{
"optionId": "<string>",
"value": "<string>"
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.