logo
Development
Search
Query Agent Version List

Query Agent Version List

Supports querying the version history list of a target Agent.

This endpoint authenticates with the target Agent's own API Key, and can only be called by an Agent that has version management permission enabled.

Request Method

GET

Request URL

https://api.${endpoint}/v1/agent/version/list

Request Authentication

For details, see the authentication description in the API Overview. Please use the target Agent's API Key as the token.

Request

Request Example

curl -X GET 'https://api.${endpoint}/v1/agent/version/list' \ -H 'Authorization: Bearer ${token}'
                      
                      curl -X GET 'https://api.${endpoint}/v1/agent/version/list' \
  -H 'Authorization: Bearer ${token}'

                    
This code block in the floating window

Request Headers

Field Type Description
Authorization Bearer ${token} Use the target Agent's API Key for call authentication.

Request Parameters

None.

Response

Response Body

{ "code": 0, "message": "OK", "data": [ { "id": "bv-xxxx", "bot_id": "bot-xxxx", "create_time": 1786327712000, "release_time": 1786327812000, "version": "v2", "version_desc": "Update prompt and tools", "version_status": "PUBLISHED", "creator_email": "owner@example.com" } ] }
                      
                      {
  "code": 0,
  "message": "OK",
  "data": [
    {
      "id": "bv-xxxx",
      "bot_id": "bot-xxxx",
      "create_time": 1786327712000,
      "release_time": 1786327812000,
      "version": "v2",
      "version_desc": "Update prompt and tools",
      "version_status": "PUBLISHED",
      "creator_email": "owner@example.com"
    }
  ]
}

                    
This code block in the floating window

Success Response

Field Type Description
id String Version record ID.
bot_id String Agent ID.
create_time Long Version creation time, millisecond timestamp.
release_time Long Publish time, millisecond timestamp; empty if not published.
version String Version number.
version_desc String Version description.
version_status String Version status.
creator_email String Creator's email.

Failure Response

Field Type Description
code int Error code.
message string Error message.

Status Codes

Status Code Description
200 Success
401 Unauthorized
403 Insufficient permissions, or the API Key does not have version management permission enabled
429 Too many requests
500 Server error