Skip to Content
ArteloAPI
UploadsFiles

Get an upload

GET
/uploads/files/get-by-id

Get an upload by its id.

Authorization

apiKey
headerAuthorizationBearer <token>

Your API key, sent as a bearer token.

Query parameters

id*string

id of the upload.

Formatuuid

Response body

The upload.

application/json
  1. response

An upload that is still uploading or was deleted. Only its status is returned.

status*string

Status of the upload.

ValueMeaning
DeletedDeleted, or the image couldn't be processed.
PendingStill uploading.
Value in"Pending""Deleted"
Example request
curl -X GET 'https://www.artelo.com/api/open/uploads/files/get-by-id?id=88600d9d-18ed-48df-86dd-c0a827c5ebf8' \  -H 'Authorization: Bearer <your token>'
Example response
{  "fileType": "JPG",  "height": 6000,  "id": "88600d9d-18ed-48df-86dd-c0a827c5ebf8",  "size": 8412906,  "status": "Success",  "width": 4500,  "previews": {    "lg": "https://uploads.example.com/previews/adaafa7e-15c3-4343-a20c-281045e84aa3/88600d9d-18ed-48df-86dd-c0a827c5ebf8.preview.lg.jpg",    "sm": "https://uploads.example.com/previews/adaafa7e-15c3-4343-a20c-281045e84aa3/88600d9d-18ed-48df-86dd-c0a827c5ebf8.preview.sm.jpg",    "xs": "https://uploads.example.com/previews/adaafa7e-15c3-4343-a20c-281045e84aa3/88600d9d-18ed-48df-86dd-c0a827c5ebf8.preview.xs.jpg"  },  "url": "https://uploads.example.com/files/adaafa7e-15c3-4343-a20c-281045e84aa3/88600d9d-18ed-48df-86dd-c0a827c5ebf8.jpg"}