-
Notifications
You must be signed in to change notification settings - Fork 8
GET Image Endpoint
goldy4719 edited this page Apr 10, 2026
·
1 revision
Retrieve metadata and a temporary download URL for a single specific image belonging to the authenticated user.
- Valid JWT token
- Image must exist for the user in DynamoDB
- Extract the authenticated user_id.
- Query DynamoDB using userId and imageId.
- Validate that the item exists.
- Ensure required fields (tags, s3Key) are present.
- Generate a presigned S3 URL for download.
- Return tags and the download URL.
- Returns only user-owned images.
- Missing items result in a 404 error.
- Presigned URLs expire (default: 1 hour).