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",
                "field": "<string>",
                "value": "<string>",
                "values": [
                  "<string>"
                ],
                "transitionNodeId": "<string>"
              }
            ],
            "outputSchema": "<string>",
            "nodeData": {}
          }
        ]
      },
      "modelOptionValues": [
        {
          "optionId": "<string>",
          "value": "<string>"
        }
      ]
    }
  ],
  "cursor": "<string>"
}

Path Parameters

agentId
string
required

ID of the agent.

Query Parameters

limit
integer
default:100

The maximum number of prompts to list.

cursor
string

The pagination cursor returned by the previous request. Feed the result provided by vogent verbatim.

Response

200
application/json
Successful operation
data
object[]
required
cursor
string | null
required

A cursor you can pass to fetch the next page. If no next page exists, the cursor will be null.