curl --request GET \
--url https://app2.freyavoice.ai/api/v2/agents/{agentId}/versions \
--header 'Authorization: Bearer <token>'{
"success": true,
"data": {
"message": "<string>",
"result": {
"versions": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agentId": "<string>",
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"versionNumber": 123,
"parentVersionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"isActive": true,
"createdBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"configDiffSummary": [
{
"section": "<string>",
"count": 2
}
],
"versionType": "edit"
}
],
"total": 1,
"limit": 123,
"offset": 1
}
}
}Returns version history for an agent with pagination.
curl --request GET \
--url https://app2.freyavoice.ai/api/v2/agents/{agentId}/versions \
--header 'Authorization: Bearer <token>'{
"success": true,
"data": {
"message": "<string>",
"result": {
"versions": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agentId": "<string>",
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"versionNumber": 123,
"parentVersionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"isActive": true,
"createdBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"configDiffSummary": [
{
"section": "<string>",
"count": 2
}
],
"versionType": "edit"
}
],
"total": 1,
"limit": 123,
"offset": 1
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Agent ID
Workspace ID
Maximum number of versions to return (1-100)
x <= 100Number of versions to skip for pagination
x >= 0