Serve a position screenshot (ownership-scoped).
GET
/api/positions/{id}/images/{imageId}
const url = 'https://api.tradr.cloud/api/positions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/images/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.tradr.cloud/api/positions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/images/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0Streams the bytes of one screenshot on a position the authenticated user owns. Object access is proxy-through-API — there are no presigned URLs and the object-storage key is resolved server-side, never appearing in the URL or any response. A missing/not-owned position, an unknown image id, an unrecoverable record, and a genuinely-absent object all return the identical 404 (no existence oracle). The bytes carry their stored Content-Type and Cache-Control: private, max-age=300. A transient object-store outage returns 503 (OBJECT_UNREACHABLE).
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
imageId
required
string format: uuid
Responses
Section titled “ Responses ”The image bytes.
string format: binary
string format: binary
string format: binary
Not found, not owned, unrecoverable, or object gone.
Object storage temporarily unreachable (OBJECT_UNREACHABLE).