Media
Upload media by link
Media
Upload media by link
POST
/
api
/
library
/
v1
/
media
/
link
curl --request POST \
--url https://api.rask.ai/api/library/v1/media/link \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"link": "<string>",
"kind": "video",
"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.
Body
application/json
Response
200
application/json
Upload media from link
The response is of type object
.
curl --request POST \
--url https://api.rask.ai/api/library/v1/media/link \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"link": "<string>",
"kind": "video",
"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>"
}
}