--- title: "List attempt media metadata" slug: "v1attemptsidmedia-1" updated: 2026-04-24T06:45:52Z published: 2026-04-24T06:45:52Z canonical: "devdocs.veriff.com/v1attemptsidmedia-1" --- > ## Documentation Index > Fetch the complete documentation index at: https://devdocs.veriff.com/llms.txt > Use this file to discover all available pages before exploring further. # List attempt media metadata Get/v1/attempts/{id}/media ### Returns a list of metadata objects of an attempt-specific media file #### When to use this endpoint - Use this endpoint to retrieve metadata about media files captured during a specific attempt inside the verification process. - Common use cases include: - Accessing attempt-specific media when a session has multiple attempts - Getting attempt-specific media file's metadata (IDs, URLs, file types) - Identifying which images and videos are available before downloading them - Building media lists for internal review systems #### Response data - The response includes two arrays containing metadata objects for all media associated with the attempt: - `images` array: Contains metadata objects for image files (document photos, selfies, etc.) - `videos` array: Contains metadata objects for video files - Each metadata object includes: - Unique media ID - Context identifier (what the media shows, e.g., document-front, face) - File metadata (size in bytes, mimetype) - Associated session ID - For videos: duration in seconds - **Sorting:** The objects in both arrays are sorted by the automation system based on accuracy (does the image match the required type) and quality. Higher quality and more accurate media appears first. - **Finding attempt IDs:** To find a specific `attemptId`, call [GET /v1/sessions//attempts](https://devdocs.veriff.com/apidocs/v1sessionsidattempts-1) to get the list of all attempts for a session. - If the attempt has no media, the corresponding array will be empty. #### Implementation notes - This endpoint requires session-level [HMAC signature](https://devdocs.veriff.com/docs/hmac-authentication-and-endpoint-security#public-api-v1) authentication - The `timestamp` field is deprecated and always returns `null` - Always ensure that you use the correct API URL to send requests. See the [API URL section](https://devdocs.veriff.com/apidocs/veriff-public-api-guides#api-url) for more info. - The order of parameters in the real API response can differ from the order you see in this documentation. This is expected and part of the [Backwards compatible changes](https://devdocs.veriff.com/apidocs/veriff-public-api-guides#backwards-compatible-changes) requirements. Header parametersX-HMAC-SIGNATUREstringRequired Attempt ID signed with the shared secret key. Required to authenticate the request sender. Example7bb142b882e92642c97d9b23285a35ccd457eb5dab0bedab720b1046795e3f57 X-AUTH-CLIENTstringRequired Your integration's API key (occasionally referred to as the "Token", "API public key" or "Publishable key"). Required for all API requests. You can find your API key in the Veriff Customer Portal > Settings > API keys. Exampleyour-api-key Path parametersidstring (uuid) Required Verification attempt ID. Examplea1c68aea-7f4d-478d-80ab-ca9356074f69 Responses200 Successfully retrieved attempt-specific media's metadata objects HeadersContent-TypestringResponse content type.Exampleapplication/json X-AUTH-CLIENTstringAPI key echoed back in response.Exampleyour-api-key X-HMAC-SIGNATUREstringResponse body signed with the shared secret key. Required to authenticate the response sender. Example9c4fa8c72cdf233df0c7e8e0a1c12e15d4aa5b58f19f35b6e5d64f2e3a1b0c9d standard_attempt_with_images Standard attempt with document and face image metadata Typical response containing metadata for document images and a selfie ```json { "status": "success", "images": [ { "id": "d69a07cf-4434-4d36-be6c-d22af7dc01fb", "name": "document-front", "context": "document-front", "timestamp": null, "size": 245678, "mimetype": "image/jpeg", "url": "https://exampleURL.com/v1/media/d69a07cf-4434-4d36-be6c-d22af7dc01fb", "sessionId": "f04bdb47-d3be-4b28-b028-a652feb060b5" }, { "id": "e7ab18d1-5545-5e47-af7b-e23gb6247f80", "name": "document-back", "context": "document-back", "timestamp": null, "size": 238956, "mimetype": "image/jpeg", "url": "https://exampleURL.com/v1/media/e7ab18d1-5545-5e47-af7b-e23gb6247f80", "sessionId": "f04bdb47-d3be-4b28-b028-a652feb060b5" }, { "id": "a2cd45e3-6656-6f58-bg8c-f34hc7358g91", "name": "face", "context": "face", "timestamp": null, "size": 198432, "mimetype": "image/jpeg", "url": "https://exampleURL.com/v1/media/a2cd45e3-6656-6f58-bg8c-f34hc7358g91", "sessionId": "f04bdb47-d3be-4b28-b028-a652feb060b5" } ], "videos": [] } ``` attempt_with_video Response containing metadata of a verification video ```json { "status": "success", "videos": [ { "id": "b3de56f4-7767-7g69-ch9d-g45id8469h02", "name": "selfid_video", "context": "selfid_video", "timestamp": null, "size": 1456789, "mimetype": "video/mp4", "url": "https://exampleURL.com/v1/media/b3de56f4-7767-7g69-ch9d-g45id8469h02", "sessionId": "f04bdb47-d3be-4b28-b028-a652feb060b5", "duration": 8 } ] } ``` attempt_no_media Attempt with no media metadata Response when an attempt exists but has no associated media ```json { "status": "success", "images": [], "videos": [] } ``` Expand Allobject statusstring API request status. Examplesuccess images Array of object (VerificationSessionImageUpload) Array of metadata objects for image files associated with the attempt. Sorted by accuracy and quality. object idstring (uuid) UUID v4 which identifies the uploaded media. Exampled69a07cf-4434-4d36-be6c-d22af7dc01fb namestring Name which identifies the uploaded media. Valid values[ "address-front", "document-and-face", "document-and-face-pre", "document-back", "document-back-barcode", "document-back-barcode-pre", "document-back-pre", "document-back-qrcode", "document-back-qrcode-pre", "document-front", "document-front-face-cropped", "document-front-pre", "document-front-qrcode", "document-front-qrcode-pre", "face", "face-cropped", "face-nfc", "face-pre", "face-reference", "registry-face" ]Exampledocument-front contextstring Context type of the uploaded media. See [Context types](https://veriff-dev-documentation.document360.io/docs/context-types-image-video-1) article for more info. Valid values[ "address-front", "document-and-face", "document-and-face-pre", "document-back", "document-back-barcode", "document-back-barcode-pre", "document-back-pre", "document-back-qrcode", "document-back-qrcode-pre", "document-front", "document-front-face-cropped", "document-front-pre", "document-front-qrcode", "document-front-qrcode-pre", "face", "face-cropped", "face-nfc", "face-pre", "face-reference", "registry-face" ]Exampledocument-front timestampstring | null Deprecated Always returns `null`. Example sizeinteger Size of the uploaded media, in bytes. Example12345 mimetypestring File type of the uploaded media. See [Media file mimetypes](https://devdocs.veriff.com/docs/media-file-mimetypes) article for more info. Valid values[ "image/jpeg", "image/jpg", "image/png", "image/heif", "image/heic", "image/webp", "application/pdf" ]Exampleimage/jpeg urlstring Download URL of the media. Examplehttps://exmpleURL.com/v1/media/d69a07cf-4434-4d36-be6c-d22af7dc01fb sessionIdstring UUID v4 of the verification session the uploaded media belongs to. Exampled69a07cf-4434-4d36-be6c-d22af7dc01fb videos Array of object (VerificationSessionVideoUpload) Array of metadata objects for video files associated with the attempt. Sorted by accuracy and quality. object Metadata object describing a video file uploaded during verification. idstring (uuid) UUID v4 which identifies the uploaded media. Use with [GET /v1/media/](https://devdocs.veriff.com/apidocs/v1mediaid-1) to download the actual file. Exampled69a07cf-4434-4d36-be6c-d22af7dc01fb namestring Name which identifies the uploaded media. Valid values[ "document-front-pre-video", "document-back-pre-video", "document-and-face-pre-video", "documet-back-barcode-pre-video", "face-pre-video", "selfid_video" ]Exampleselfid_video contextstring Context type of the uploaded media. See [Context types](https://devdocs.veriff.com/docs/context-types-image-video-1) article for more info. Valid values[ "document-front-pre-video", "document-back-pre-video", "document-and-face-pre-video", "documet-back-barcode-pre-video", "face-pre-video", "selfid_video" ]Exampleselfid_video timestampstring | null Deprecated Always returns `null`. Example sizeinteger Size of the uploaded media, in bytes. Example12345 mimetypestring File type of the uploaded media. Examplevideo/mp4 urlstring Download URL for the actual media file. Examplehttps://exampleURL.com/v1/media/d69a07cf-4434-4d36-be6c-d22af7dc01fb sessionIdstring UUID v4 of the verification session the uploaded media belongs to. Exampled69a07cf-4434-4d36-be6c-d22af7dc01fb durationinteger Duration of the uploaded media, in seconds. Example12345 400 Bad request HeadersContent-TypestringExampleapplication/json X-AUTH-CLIENTstringAPI key echoed back in response.Exampleyour-api-key X-HMAC-SIGNATUREstringResponse body signed with the shared secret key. Required to authenticate the response sender. Example9c4fa8c72cdf233df0c7e8e0a1c12e15d4aa5b58f19f35b6e5d64f2e3a1b0c9d object statusstring Valid values[ "fail" ]Examplefail codestring Example1101 messagestring ExampleValidation failed 401 Unauthorized - Invalid or missing authentication HeadersContent-TypestringExampleapplication/json X-AUTH-CLIENTstringAPI key echoed back in response.Exampleyour-api-key object statusstring Valid values[ "fail" ]Examplefail codestring Example1101 messagestring ExampleMandatory X-AUTH-CLIENT header containing the API key is missing from the request. 404 Attempt not found HeadersContent-TypestringExampleapplication/json X-AUTH-CLIENTstringAPI key echoed back in response.Exampleyour-api-key X-HMAC-SIGNATUREstringResponse body signed with the shared secret key. Required to authenticate the response sender. Example9c4fa8c72cdf233df0c7e8e0a1c12e15d4aa5b58f19f35b6e5d64f2e3a1b0c9d object statusstring Valid values[ "fail" ]Examplefail codestring Example1101 messagestring ExampleResource not found 500 Internal server error HeadersContent-TypestringExampleapplication/json X-AUTH-CLIENTstringAPI key echoed back in response.Exampleyour-api-key X-HMAC-SIGNATUREstringResponse body signed with the shared secret key. Required to authenticate the response sender. Example9c4fa8c72cdf233df0c7e8e0a1c12e15d4aa5b58f19f35b6e5d64f2e3a1b0c9d object statusstring Valid values[ "fail" ]Examplefail codestring Example1101 messagestring ExampleSomething went wrong