Retrieve an asset
This method retrieves details about the specified asset.
Authentication
x-api-keystring
Your API key.
<Note title="Note">
You can find your API key on the <a href="https://playground.twelvelabs.io/dashboard/api-key" target="_blank">API Key</a> page.
</Note>
Path Parameters
asset_id
The unique identifier of the asset to retrieve.
Response
The asset has been successfully retrieved.
_id
The unique identifier of the asset.
method
Indicates how you uploaded the asset.
**Values**:
- `direct`: Uploaded from your local file system
- `url`: Uploaded from a publicly accessible URL
Allowed values:
status
Indicates the current state of the asset.
**Values**:
- `waiting`: The platform is preparing to process the upload
- `processing`: The platform is processing the uploaded file
- `ready`: The asset is ready to use
Allowed values:
filename
The name of the file used to create the asset.
file_type
The MIME type of the asset file.
url
The URL where you can access the asset file. Use this URL to preview or download the asset.
<Note title="Note">
This URL expires after the time specified in the `url_expires_at` field. After expiration, you must retrieve the asset again to obtain a new URL.
</Note>
url_expires_at
The date and time, in RFC 3339 format (“YYYY-MM-DDTHH:mm:ssZ”), when the URL expires. After this time, the URL in the url field becomes invalid. Retrieve the asset again to obtain a new URL.
created_at
The date and time, in RFC 3339 format (“YYYY-MM-DDTHH:mm:ssZ”), when the asset was created.