List an agent's source snapshots

GET
/v1/agents/{id}/source/snapshots

Lists the snapshots of the agent's source, newest first. A snapshot is a copy of the whole tree at a moment, kept with a manifest of every file's path, size and hash; one belongs to each hosted version that has one.

Requires an API key with the workspace:read scope.

Authorization

apiKey
headerAuthorizationBearer <token>

A secret API key from the dashboard (Developers → API keys): vl_live_…, or vl_test_… for test mode. Each operation says which scope the key needs.

Path Parameters

id*string

The agent id.

Response Body

The agent's snapshots, newest first

application/json
  1. response
snapshots*array<>
Example Request
curl "https://api.vlayers.ai/v1/agents/$AGENT_ID/source/snapshots" \  -H "Authorization: Bearer $VOICELAYER_API_KEY"
Example Response
{  "snapshots": [    {      "id": "0192f5c1-5e6f-7a8b-9c0d-1e2f3a4b5c67",      "agentId": "0192f5c2-6f7a-7b9c-8d1e-2f3a4b5c6d78",      "versionId": null,      "version": null,      "note": "Before the refund change",      "fileCount": 1,      "totalBytes": 1204,      "manifestHash": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",      "createdAt": "2026-10-20T15:04:05.000Z",      "createdBy": "user_2abc"    }  ]}