# Download important files
curl -X GET "https://api.gravixlayer.com/v1/agents/sandboxes/550e8400-e29b-41d4-a716-446655440000/download?path=/home/user/results.csv" \
-H "Authorization: Bearer YOUR_API_KEY" \
-o results.csv
# Save application state
curl -X POST https://api.gravixlayer.com/v1/agents/sandboxes/550e8400-e29b-41d4-a716-446655440000/code/run \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"code": "import json\nstate = {\"status\": \"completed\", \"timestamp\": \"2025-01-27T10:30:00Z\"}\nwith open(\"/home/user/state.json\", \"w\") as f: json.dump(state, f)",
"language": "python"
}'