curl --request POST \
--url https://apix.us.amity.co/api/v4/images/from-url \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: <content-type>' \
--data '
{
"fileUrl": "<string>",
"preferredFilename": "<string>",
"accessType": "public",
"altText": "<string>"
}
'[
{
"fileId": "<string>",
"fileUrl": "<string>",
"type": "image",
"accessType": "public",
"altText": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"attributes": {
"name": "test.jpeg",
"extension": "jpeg",
"size": 2107842,
"mimeType": "image/jpeg",
"metadata": {
"height": 123,
"width": 123,
"isFull": true
}
}
}
]This endpoint allows you to upload an image 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/images/from-url \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: <content-type>' \
--data '
{
"fileUrl": "<string>",
"preferredFilename": "<string>",
"accessType": "public",
"altText": "<string>"
}
'[
{
"fileId": "<string>",
"fileUrl": "<string>",
"type": "image",
"accessType": "public",
"altText": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"attributes": {
"name": "test.jpeg",
"extension": "jpeg",
"size": 2107842,
"mimeType": "image/jpeg",
"metadata": {
"height": 123,
"width": 123,
"isFull": true
}
}
}
]Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
A file URL to upload
1024File access type. network type requires authentication to download.
public, network Alternative text for the file.
180Image Upload Result
Root file key on cloud storage.
url to download the file
File type.
image, file, video "image"
File access type. network type requires authentication to download.
public, network Alternative text for the file.
The date/time when a file is uploaded.
The date/time when a file is updated.
Show child attributes