Docs
Commands and files ›

Download artifact

GET/v1/sandboxes/{id}/artifacts

Download artifact.

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

No JSON body.

Raw file bytes from the sandbox directory.

Path

idrequired
string
e.g. "sbx_0123456789abcdef"

Query

pathrequired
string

Headers

Authorizationrequired
Bearer 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.