Get media
curl --request GET \
--url https://api.rask.ai/api/library/v1/media/{media_id} \
--header 'Authorization: Bearer <token>'
{
"kind": "video",
"status": "processing",
"mime_type": "<string>",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"meta": {
"size_bytes": 123,
"original_meta": {},
"duration_seconds": 123,
"audio_rate": 123,
"audio_layout": "mono",
"audio_channels": 123,
"audio_codec_name": "<string>",
"video_codec_name": "<string>",
"video_frame_rate": 123,
"video_frame_width": 123,
"video_frame_height": 123
},
"name": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"path": "<string>",
"url": "<string>",
"preview": {
"kind": "video",
"status": "processing",
"mime_type": "<string>",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"meta": {
"size_bytes": 123,
"original_meta": {},
"duration_seconds": 123,
"audio_rate": 123,
"audio_layout": "mono",
"audio_channels": 123,
"audio_codec_name": "<string>",
"video_codec_name": "<string>",
"video_frame_rate": 123,
"video_frame_width": 123,
"video_frame_height": 123
},
"name": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"path": "<string>",
"url": "<string>"
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
ID of the media uploaded
Response
Kind of media uploaded
video
, audio
, image
Status of media uploaded
processing
, ready
, failed
Media mime type
Author ID
Media video size in bytes
Media video duration in seconds
Media audio rate
Media audio layout
mono
, stereo
Number of media audio channels
Media audio codec name
Media video codec name
Media video frame rate
Media video frame width
Media video frame height
Media original meta object
ID of media uploaded
Date and time of media creation
Date and time of the last media update
Path to the media
Name of media uploaded
Media url
1
Kind of media uploaded
video
, audio
, image
Status of media uploaded
processing
, ready
, failed
Media mime type
Author ID
Media video size in bytes
Media video duration in seconds
Media audio rate
Media audio layout
mono
, stereo
Number of media audio channels
Media audio codec name
Media video codec name
Media video frame rate
Media video frame width
Media video frame height
Media original meta object
ID of media uploaded
Date and time of media creation
Date and time of the last media update
Path to the media
Name of media uploaded
Media url
1
curl --request GET \
--url https://api.rask.ai/api/library/v1/media/{media_id} \
--header 'Authorization: Bearer <token>'
{
"kind": "video",
"status": "processing",
"mime_type": "<string>",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"meta": {
"size_bytes": 123,
"original_meta": {},
"duration_seconds": 123,
"audio_rate": 123,
"audio_layout": "mono",
"audio_channels": 123,
"audio_codec_name": "<string>",
"video_codec_name": "<string>",
"video_frame_rate": 123,
"video_frame_width": 123,
"video_frame_height": 123
},
"name": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"path": "<string>",
"url": "<string>",
"preview": {
"kind": "video",
"status": "processing",
"mime_type": "<string>",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"meta": {
"size_bytes": 123,
"original_meta": {},
"duration_seconds": 123,
"audio_rate": 123,
"audio_layout": "mono",
"audio_channels": 123,
"audio_codec_name": "<string>",
"video_codec_name": "<string>",
"video_frame_rate": 123,
"video_frame_width": 123,
"video_frame_height": 123
},
"name": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"path": "<string>",
"url": "<string>"
}
}