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>' \
--form data=@example-file
{
"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>"
}
}
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>' \
--form data=@example-file
{
"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>"
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Kind of media uploaded
video
, audio
, image
Create media upload
The response is of type object
.