Skip to Content
ArteloAPI
UploadsFiles

Upload an image

POST
/uploads/files/create

Start uploading an image from a public URL. The initial status is Pending. Poll /uploads/files/get-by-id for the result.

Authorization

apiKey
headerAuthorizationBearer <token>

Your API key, sent as a bearer token.

Request body

application/json
  1. body
imageUrl*string

URL of the image to upload.

Formaturi
name?string

Name for the upload.

Lengthlength <= 255
parentFolderId?string

id of the folder to put the upload in. Omit for the root folder.

Formatuuid

Response body

The new upload's id and status.

application/json
  1. response
id*string

Unique identifier of the upload.

status*string

Status of the upload. A new upload is Pending.

ValueMeaning
DeletedDeleted, or the image couldn't be processed.
PendingStill uploading.
SuccessUploaded successfully.
Value in"Pending""Success""Deleted"
Example request
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"}'
Example response
{  "id": "88600d9d-18ed-48df-86dd-c0a827c5ebf8",  "status": "Pending"}