Media
Upload media by file
Media
Upload media by file
POST
/
api
/
library
/
v1
/
media
curl --request POST \
--url https://api.rask.ai/api/library/v1/media \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'name=<string>'
{
"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.
Query Parameters
Kind of media uploaded
Available options:
video
, audio
, image
Body
multipart/form-data
Response
200
application/json
Create media upload
The response is of type object
.
curl --request POST \
--url https://api.rask.ai/api/library/v1/media \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'name=<string>'
{
"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>"
}
}