GET
/
v1
/
agents
/
{agent_id}
/
versions
/
curl --request GET \
  --url https://api.roe-ai.com/v1/agents/{agent_id}/versions/ \
  --header 'Authorization: Bearer <token>'
{
  "count": 123,
  "next": "http://api.example.org/accounts/?page=4",
  "previous": "http://api.example.org/accounts/?page=2",
  "results": [
    [
      {
        "id": "456e7890-e89b-12d3-a456-426614174001",
        "version_name": "version 1",
        "description": "Initial version",
        "input_definitions": [
          {
            "key": "input_text",
            "description": "Text to process",
            "data_type": "text/plain"
          }
        ],
        "engine_config": {
          "model": "gpt-4",
          "temperature": "0.7"
        },
        "created_at": "2024-01-15T10:30:00Z",
        "readonly": false
      }
    ]
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

agent_id
string
required

A UUID string identifying the base agent.

Query Parameters

page
integer

A page number within the paginated result set.

page_size
integer

Number of results to return per page.

Response

200
application/json

Successfully retrieved list of agent versions.

The response is of type object.