Snapshots and forks ›
Get snapshot file
GET
/v1/snapshots/{id}/filesGet snapshot file.
Requestcurl
- curl https://agental.io/v1/snapshots/sbx_2a9a47e50daec64a/files \
- -H "Authorization: Bearer $AGENTAL_API_KEY"
Answer200 OK
No JSON body.
Raw bytes of one file in a snapshot that is browsable.
Path
idrequiredstring |
Query
pathrequiredstring |
Headers
AuthorizationrequiredBearer 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. |
| 501 | snapshot_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.