Commands and files ›
Download artifact
GET
/v1/sandboxes/{id}/artifactsDownload artifact.
Requestcurl
- curl https://agental.io/v1/sandboxes/sbx_2a9a47e50daec64a/artifacts \
- -H "Authorization: Bearer $AGENTAL_API_KEY"
Answer200 OK
No JSON body.
Raw file bytes from the sandbox directory.
Path
idrequiredstring | e.g. "sbx_0123456789abcdef" |
Query
pathrequiredstring |
Headers
AuthorizationrequiredBearer key | An API key that may make this call. |
Returns
200 Raw file bytes from the sandbox directory.
Errors and other answers
| 404 | Not found. |
Every error answers { "error": { "code", "message" } }; a key without the action a call needs answers 403 key_action_forbidden, naming it.