# List an agent's source snapshots

Source: https://docs.vlayers.ai/reference/hosting/list-agent-source-snapshots

`GET /v1/agents/{id}/source/snapshots` · scope `workspace:read`

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.

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `id` | path | string | yes | The agent id. Example: `"0192f5c2-6f7a-7b9c-8d1e-2f3a4b5c6d78"` |

## Request

cURL:

```bash
curl "https://api.vlayers.ai/v1/agents/$AGENT_ID/source/snapshots" \
  -H "Authorization: Bearer $VOICELAYER_API_KEY"
```

TypeScript:

```ts
import { VoiceLayer } from '@voicelayer/api';

const voicelayer = new VoiceLayer();

const { snapshots } = await voicelayer.hosting.listAgentSourceSnapshots('<agent-id>');
console.log(snapshots);
```

Python:

```python
from voicelayer import VoiceLayer

vl = VoiceLayer()

result = vl.hosting.list_agent_source_snapshots("<agent-id>")
print(result.snapshots)
```

## Response `200`

```json
{
  "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"
    }
  ]
}
```
