User Assets
Get asset by ID
Get one asset by its ID.
https://api.sangtao.ai/v2/user-assets/{id}Authorization
X-Api-Keystring · headerrequiredYour API key, from the API keys page of your account.
Path parameters
idstringrequiredThe ID in the path.
The {id} in the path is the asset's id, e.g. ua_3kT9qPz0B. Old numeric ids are still accepted.
Response
The asset, with these fields:
idstringrequiredAsset ID, ua_ followed by 9 letters and digits (e.g. "ua_3kT9qPz0B")
urlstringrequiredPublic URL of the asset
fileNamestringrequiredOriginal file name
mimeTypestringrequiredMIME type (e.g. "video/mp4")
fileSizeBytesnumberrequiredFile size in bytes
categorystringrequiredAuto-detected
Available options:
videoimageaudiodocumentpurposestringrequiredAsset purpose
Available options:
outro_videointro_videologowatermarkbackground_musicvoiceoverthumbnailgenerallabelstringDisplay label (nullable)
thumbnailUrlstringThumbnail URL (nullable)
durationSecnumberDuration in seconds (video/audio)
aspectRatiostringAspect ratio
hasAudiobooleanWhether file has audio track (video/audio)
createdAtstringISO 8601 creation timestamp
Errors
| Status | errorCode | When |
|---|---|---|
| 404 | ASSET_NOT_FOUND | Asset not found or doesn't belong to user |
/user-assets/{id}curl "https://api.sangtao.ai/v2/user-assets/ua_3kT9qPz0B" \
-H "X-Api-Key: YOUR_API_KEY"{
"success": true,
"data": {
"id": "ua_3kT9qPz0B",
"url": "https://blob.sangtao.ai/user-assets/abc123/my-logo.png",
"fileName": "my-logo.png",
"mimeType": "image/png",
"fileSizeBytes": 245000,
"category": "image",
"purpose": "logo",
"label": "My Brand Logo",
"thumbnailUrl": null,
"durationSec": null,
"aspectRatio": null,
"hasAudio": false,
"createdAt": "2026-06-08T10:30:00Z"
}
}/user-assets/{id}curl "https://api.sangtao.ai/v2/user-assets/ua_3kT9qPz0B" \
-H "X-Api-Key: YOUR_API_KEY"{
"success": true,
"data": {
"id": "ua_3kT9qPz0B",
"url": "https://blob.sangtao.ai/user-assets/abc123/my-logo.png",
"fileName": "my-logo.png",
"mimeType": "image/png",
"fileSizeBytes": 245000,
"category": "image",
"purpose": "logo",
"label": "My Brand Logo",
"thumbnailUrl": null,
"durationSec": null,
"aspectRatio": null,
"hasAudio": false,
"createdAt": "2026-06-08T10:30:00Z"
}
}