API Documentation
Versioned Prompts
Phone Numbers
Models
Versioned Prompts
List versioned prompts
Lists versioned prompts for a given agent.
GET
/
agents
/
{agentId}
/
versioned_prompts
curl --request GET \
--url https://api.vogent.ai/api/agents/{agentId}/versioned_prompts
{
"data": [
{
"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>"
}
]
}
],
"cursor": "<string>"
}
Path Parameters
ID of the agent.
Query Parameters
The maximum number of prompts to list.
The pagination cursor returned by the previous request. Feed the result provided by vogent verbatim.
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
{
"data": [
{
"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>"
}
]
}
],
"cursor": "<string>"
}
Assistant
Responses are generated using AI and may contain mistakes.