Skip to main content
GET
/
api
/
v2
/
sessions
/
{id}
/
resources
/
{bucket}
/
{key}
Get resource
curl --request GET \
  --url https://agp.eu.hcompany.ai/api/v2/sessions/{id}/resources/{bucket}/{key} \
  --header 'Authorization: Bearer <token>'
Returns a redirect to a presigned S3 URL for a session-owned resource (screenshots, downloaded files, etc.). Auth is optional: supports public shares. Returns 302 Redirect to the presigned URL.

Path parameters

id
string
required
The session ID.
bucket
string
required
The resource bucket (e.g., screenshots, files).
key
string
required
The resource key (path within the bucket).

Examples

curl -L https://agp.eu.hcompany.ai/api/v2/sessions/$SESSION_ID/resources/screenshots/step-5.png \
  -H "Authorization: Bearer $H_API_KEY" \
  -o screenshot.png
The cURL -L flag follows the 302 redirect to download the file from S3.