Delete a source snapshot

DELETE
/v1/agents/{id}/source/snapshots/{snapshotId}

Deletes a snapshot and its files from storage. Deleting one that is not there succeeds with deleted: false.

Requires an API key with the workspace:write 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.

snapshotId*string

The snapshot id.

Response Body

Whether a snapshot was deleted

application/json
  1. response
deleted*boolean
Example Request
curl -X DELETE "https://api.vlayers.ai/v1/agents/$AGENT_ID/source/snapshots/$SNAPSHOT_ID" \  -H "Authorization: Bearer $VOICELAYER_API_KEY"
Example Response
{  "deleted": true}