Worlds
Get Media Asset
Retrieves a World Labs media asset prepared through TokenLab
Retrieve a World asset's name, type, and metadata. Only the Workspace that created it can access it.
Path Parameters
idstringpathrequired
World Labs media asset ID.
Response
media_asset_idstring
World Labs media asset ID.
file_namestring
Original file name, up to 64 characters.
kindstring
Media type: image or video.
metadataobject | null
Custom metadata stored with the asset.
Request
curl "https://api.tokenlab.sh/v1/worlds/media-assets/media_asset_123" \
-H "Authorization: Bearer sk-your-api-key"{ "created_at": "2019-08-24T14:15:22Z", "file_name": "string", "kind": "image", "media_asset_id": "string", "extension": "string", "metadata": {}, "updated_at": "2019-08-24T14:15:22Z"}Authorization
BearerAuth AuthorizationBearer <token>
API Key authentication. Create or manage API keys in Dashboard > API > API Keys.
In: header
Path Parameters
id*string
Media asset ID.
Response
application/json
application/json