Docs
Snapshots and forks ›

Get snapshot file

GET/v1/snapshots/{id}/files

Get snapshot file.

Requestcurl
  1. curl https://agental.io/v1/snapshots/sbx_2a9a47e50daec64a/files \
  2. -H "Authorization: Bearer $AGENTAL_API_KEY"
Answer200 OK

No JSON body.

Raw bytes of one file in a snapshot that is browsable.

Path

idrequired
string

Query

pathrequired
string

Headers

Authorizationrequired
Bearer key
An API key that may make this call.

Returns

200 Raw bytes of one file in a snapshot that is browsable.

Errors and other answers

404 Not found.
501snapshot_files_unavailable this snapshot is of a whole machine, and its files are reached by rolling back to it.

Every error answers { "error": { "code", "message" } }; a key without the action a call needs answers 403 key_action_forbidden, naming it.