curl --request POST \
--url https://apix.us.amity.co/api/v4/files/from-url \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: <content-type>' \
--data '{
"fileUrl": "<string>",
"preferredFilename": "<string>",
"accessType": "public"
}'
[
{
"fileId": "<string>",
"fileUrl": "<string>",
"type": "file",
"accessType": "public",
"altText": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"attributes": {
"name": "test.pdf",
"extension": "pdf",
"size": 2107842,
"mimeType": "application/pdf",
"metadata": {}
}
}
]
This endpoint allows you to upload a file from a URL to Social+ cloud storage.
File size limit: 1,073,741,824 byte
curl --request POST \
--url https://apix.us.amity.co/api/v4/files/from-url \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: <content-type>' \
--data '{
"fileUrl": "<string>",
"preferredFilename": "<string>",
"accessType": "public"
}'
[
{
"fileId": "<string>",
"fileUrl": "<string>",
"type": "file",
"accessType": "public",
"altText": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"attributes": {
"name": "test.pdf",
"extension": "pdf",
"size": 2107842,
"mimeType": "application/pdf",
"metadata": {}
}
}
]
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
File Upload Result
The response is of type object[]
.