UploadsFiles
Start uploading an image from a public URL. The initial status is Pending. Poll /uploads/files/get-by-id for the result.
apiKeyAuthorizationBearer <token>Your API key, sent as a bearer token.
application/jsonimageUrl*stringURL of the image to upload.
uriname?stringName for the upload.
length <= 255parentFolderId?stringid of the folder to put the upload in. Omit for the root folder.
uuidThe new upload's id and status.
application/jsonid*stringUnique identifier of the upload.
status*stringStatus of the upload. A new upload is Pending.
| Value | Meaning |
|---|---|
Deleted | Deleted, or the image couldn't be processed. |
Pending | Still uploading. |
Success | Uploaded successfully. |
"Pending""Success""Deleted"curl -X POST 'https://www.artelo.com/api/open/uploads/files/create' \ -H 'Authorization: Bearer <your token>' \ -H 'Content-Type: application/json' \ -d '{ "imageUrl": "https://images.example.com/harbor-at-dawn.jpg", "name": "Harbor at dawn", "parentFolderId": "a15d97c1-11bc-49d9-8d90-2d956d320351"}'{ "id": "88600d9d-18ed-48df-86dd-c0a827c5ebf8", "status": "Pending"}