curl --request POST \
--url https://apix.us.amity.co/api/v4/videos \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file=@example-file \
--form files=@example-file \
--form 'preferredFilename=<string>' \
--form accessType=public
[
{
"fileId": "<string>",
"fileUrl": "<string>",
"type": "video",
"accessType": "public",
"altText": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"attributes": {
"name": "big_buck_bunny_720p_2mb.mp4",
"extension": "mp4",
"size": 2107842,
"mimeType": "video/mp4",
"metadata": {}
}
}
]
Upload video to cloud storage
Video size limit: 2,147,483,648 byte (2GB)
curl --request POST \
--url https://apix.us.amity.co/api/v4/videos \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file=@example-file \
--form files=@example-file \
--form 'preferredFilename=<string>' \
--form accessType=public
[
{
"fileId": "<string>",
"fileUrl": "<string>",
"type": "video",
"accessType": "public",
"altText": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"attributes": {
"name": "big_buck_bunny_720p_2mb.mp4",
"extension": "mp4",
"size": 2107842,
"mimeType": "video/mp4",
"metadata": {}
}
}
]
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
File Video Upload Result
The response is of type object[]
.