Get an asset
Changed onFetches one asset and its associated metadata by ID. Use this when you already have a specific asset ID (e.g., from list_assets, search_assets, or list_album_assets) and need its full details. For bulk fetch of multiple known IDs, prefer list_assets with the ids parameter to avoid N round trips. asset_urls are signed URLs for client rendering only; to visually inspect the image pixels, call view_asset instead.
Request
- Base URLhttps://api.gumnut.ai
- Auth
- HTTP bearer
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Asset ID (with asset_ prefix) to fetch.
Query parameters
Opt-in expansion fields. Supported values: metadata (camera/EXIF/GPS and location names), faces, people, file_data (a group token populating the nested file_data object with the file/provenance scalars device_asset_id, device_id, file_created_at, file_modified_at, checksum, checksum_sha1, file_size_bytes), and variants (every asset_urls rung beyond the lean one. Without it asset_urls carries only its lean rung — thumbnail for an image, or thumbnail_image for a video — so callers that render non-thumbnail variants or download the current rendering must pass it). Accepts multiple include= query params or a single comma-delimited value (e.g. include=faces,people). Unknown values return 422. When omitted, only the lean core is returned (id, mime_type, local_datetime, dimensions, file_size_bytes, description, quality_score, thumbhash, asset_urls, kind, current_version_id) and each data field above is null/absent until you request it.
Response
Successful Response
Changes
- info
added the optional property
///to the response with the status
- info
- warning
removed the optional property
from the response with the status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the optional property
to the response with the status - info
added the required property
to the response with the status
- warning