Download an agent's source as a tarball
GET
Downloads the working copy, or the snapshot you name, as one gzip-compressed tar archive (.tar.gz). Paths are relative to the project root.
Requires an API key with the workspace:read scope.
apiKeyheader
AuthorizationBearer <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.
id*stringThe agent id.
snapshotId?stringDownload this snapshot instead of the working copy.
Format
uuidThe tree as a gzip-compressed tar archive
response?stringapplication/gzipThe archive bytes
curl "https://api.vlayers.ai/v1/agents/$AGENT_ID/source/archive" \ -H "Authorization: Bearer $VOICELAYER_API_KEY"Example Response
"<binary .tar.gz>"