POST
/
api
/
v4
/
videos
/
from-url
Upload video from URL.
curl --request POST \
  --url https://apix.us.amity.co/api/v4/videos/from-url \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: <content-type>' \
  --data '{
  "fileUrl": "<string>",
  "preferredFilename": "<string>",
  "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": {}
    }
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Content-Type
string
required

Body

application/json

Response

200
application/json

File Video Upload Result

The response is of type object[].