---
title: "Get details for a media retrieval request"
method: GET
path: "/cameras/media/retrieval"
tags: ["Media"]
---

# Get details for a media retrieval request

`GET /cameras/media/retrieval`

## Request

- Base URL: `https://api.samsara.com`
- URL: `https://api.samsara.com/cameras/media/retrieval`
- Auth: HTTP bearer

This endpoint returns media information corresponding to a retrieval ID. Retrieval IDs are associated to prior [media retrieval requests](https://developers.samsara.com/reference/postmediaretrieval). Urls provided by this endpoint expire in 8 hours.

 <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).

To use this endpoint, select **Read Media Retrieval** under the Safety & Cameras category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
 

 **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href="https://forms.gle/zkD4NCH7HjKb7mm69" target="_blank">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href="https://www.samsara.com/help" target="_blank">submit a case</a> to our support team.

## Query parameters

- `retrievalId` string, required

## Response `200`

OK response.

- MediaRetrievalGetMediaRetrievalResponseBody
  - `data` GetMediaRetrievalObjectResponseBody, required
    - `media` MediaObjectResponseBody[], required: List of media retrieval objects.
      - `auxcamSerial` string: Serial number of the auxiliary camera (e.g. AI multicam) that captured this media. Only present for analog inputs. Examples: CSS6-23A-HJF
      - `availableAtTime` string: Timestamp, in RFC 3339 format, at which the media item was made available. Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00
      - `cameraRole` 'leftMirrorMount' | 'leftSide' | 'rightMirrorMount' | 'rightSide' | 'rearHigh' | 'rearBumper' | 'inCab' | 'front' | 'hopper' | 'other1' | 'other2' | 'other3' | 'other4' | 'leftBev' | 'rightBev' | 'rearBev' | 'frontBev' | 'otherBev' | 'bevNotUsed': Camera role for this media. Valid values: `leftMirrorMount`, `leftSide`, `rightMirrorMount`, `rightSide`, `rearHigh`, `rearBumper`, `inCab`, `front`, `hopper`, `other1`, `other2`, `other3`, `other4`, `leftBev`, `rightBev`, `rearBev`, `frontBev`, `otherBev`, `bevNotUsed`
      - `endTime` string, required: An end time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).
      - `input` 'dashcamDriverFacing' | 'dashcamRoadFacing' | 'analog1' | 'analog2' | 'analog3' | 'analog4', required: Input type for this media. Valid values: `dashcamDriverFacing`, `dashcamRoadFacing`, `analog1`, `analog2`, `analog3`, `analog4`
      - `mediaType` 'image' | 'videoHighRes' | 'videoLowRes' | 'hyperlapse', required: Type of media. Valid values: `image`, `videoHighRes`, `videoLowRes`, `hyperlapse`
      - `startTime` string, required: A start time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).
      - `status` 'available' | 'invalid' | 'pending' | 'failed' | 'unavailable', required: Status of the media. Valid values: `available`, `invalid`, `pending`, `failed`, `unavailable`
      - `urlInfo` UrlInfoObjectResponseBody: URL info for this piece of media. This field is only populated when the 'status' response field is 'available'
        - `url` string, required: Signed URL for this piece of media. The URL expires in 8 hours (after which you must make another GET request). Examples: https://sample.s3.url.com/image.jpeg
        - `urlExpiryTime` string, required: Timestamp, in RFC 3339 format, at which the URL expires. Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00
      - `vehicleId` string, required: Vehicle ID for which this media was captured. Examples: 1234

## Other responses

- `401`: Unauthorized response.
- `404`: Not Found response.
- `405`: Method Not Allowed response.
- `413`: Content Too Large response.
- `429`: Too Many Requests response.
- `500`: Internal Server Error response.
- `501`: Not Implemented response.
- `502`: Bad Gateway response.
- `503`: Service Unavailable response.
- `504`: Gateway Timeout response.
- `default`: Bad Request response.

---

[API](https://skmtc.dev/samsara/apis/samsara-api.md) - [All operations](https://skmtc.dev/samsara/apis/samsara-api/llms.txt) - [OpenAPI document](https://skmtc.dev/samsara/apis/samsara-api/revisions/a9e35d4999be?raw)
