Download an agent's source as a tarball

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

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.

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.

Query Parameters

snapshotId?string

Download this snapshot instead of the working copy.

Formatuuid

Response Body

The tree as a gzip-compressed tar archive

response?stringapplication/gzip

The archive bytes

Example Request
curl "https://api.vlayers.ai/v1/agents/$AGENT_ID/source/archive" \  -H "Authorization: Bearer $VOICELAYER_API_KEY"
Example Response
"<binary .tar.gz>"