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:
imagesarray: Contains metadata objects for image files (document photos, selfies, etc.)videosarray: 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 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 authentication
- The
timestampfield is deprecated and always returnsnull - Always ensure that you use the correct API URL to send requests. See the API URL section 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 requirements.
Attempt ID signed with the shared secret key. Required to authenticate the request sender.
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.
Verification attempt ID.
Successfully retrieved attempt-specific media's metadata objects
Standard attempt with document and face image metadata
Typical response containing metadata for document images and a selfie
{
"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": []
}Response containing metadata of a verification video
{
"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 with no media metadata
Response when an attempt exists but has no associated media
{
"status": "success",
"images": [],
"videos": []
}API request status.
Array of metadata objects for image files associated with the attempt. Sorted by accuracy and quality.
UUID v4 which identifies the uploaded media.
Name which identifies the uploaded media.
Context type of the uploaded media.
See Context types article for more info.
Always returns None/null.
Size of the uploaded media, in bytes.
File type of the uploaded media.
See Media file mimetypes article for more info.
Download URL of the media.
UUID v4 of the verification session the uploaded media belongs to.
Array of metadata objects for video files associated with the attempt. Sorted by accuracy and quality.
Metadata object describing a video file uploaded during verification.
UUID v4 which identifies the uploaded media.
Use with GET /v1/media/ to download the actual file.
Name which identifies the uploaded media.
Context type of the uploaded media.
See Context types article for more info.
Always returns null.
Size of the uploaded media, in bytes.
File type of the uploaded media.
Download URL for the actual media file.
UUID v4 of the verification session the uploaded media belongs to.
Duration of the uploaded media, in seconds.
Bad request
Unauthorized - Invalid or missing authentication
Attempt not found
Internal server error
Changelog
Date | Description |
|---|---|
Mar 9, 2026 | Documentation updated: parent categories rearranged, intro section expanded, request and response examples added |
Oct 2, 2025 |
|
Aug 6, 2025 | Response headers added |
Mar 12, 2025 | Documentation published |