Skip to main content
GET
/
versions
/
{entityType}
/
{entityId}
List versions
curl --request GET \
  --url https://app.freyavoice.ai/api/v2/versions/{entityType}/{entityId} \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "message": "<string>",
    "result": {
      "versions": [
        {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "entityType": "<string>",
          "entityId": "<string>",
          "workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "versionNumber": 123,
          "parentVersionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "isPublished": true,
          "createdBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "createdAt": "2023-11-07T05:31:56Z",
          "configDiffSummary": [
            {
              "section": "<string>",
              "count": 2
            }
          ],
          "publishedAt": "2023-11-07T05:31:56Z",
          "publishedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
        }
      ],
      "total": 1,
      "limit": 123,
      "offset": 1
    }
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

entityType
enum<string>
required

Entity type: 'agent' or 'workflow'

Available options:
agent,
workflow
entityId
string<uuid>
required

Query Parameters

entityId
string
required
Minimum string length: 1
workspaceId
string<uuid>
required
limit
integer
default:50
Required range: x <= 100
offset
integer
default:0
Required range: x >= 0

Response

Versions with pagination

success
enum<boolean>
required
Available options:
true
data
object
required