SellAuth

Images

Get Images

Retrieves the images.

GET
/v1/shops/{shopId}/images

Authorization

AuthorizationRequiredBearer <token>

You can retrieve your API key by visiting your dashboard and clicking Account > API.

In: header

Path Parameters

shopIdRequiredinteger

The shop ID.

curl -X GET "https://api.sellauth.com/v1/shops/{shopId}/images" \
  -H "Authorization: Bearer <token>"

[
  {
    "cloudflare_image_id": "34231df0-a3ba-4e4a-c440-85269a308700",
    "created_at": "2025-07-27T18:00:52.000000Z",
    "updated_at": "2025-07-27T18:00:52.000000Z",
    "deleted_at": null,
    "shop_id": 38,
    "url": "https://imagedelivery.net/HL_Fwm__tlvUGLZF2p74xw/34231df0-a3ba-4e4a-c440-85269a308700/public",
    "$id": 450
  }
]

Create Image

Uploads an image.

POST
/v1/shops/{shopId}/images

Authorization

AuthorizationRequiredBearer <token>

You can retrieve your API key by visiting your dashboard and clicking Account > API.

In: header

Request Body

multipart/form-dataOptional
imagefile

Must be an image. Must not be greater than 20480 kilobytes.

Format: "binary"

Path Parameters

shopIdRequiredinteger

The shop ID.

curl -X POST "https://api.sellauth.com/v1/shops/{shopId}/images" \
  -H "Authorization: Bearer <token>" \
  -F image="string"

Bulk Delete Images

Deletes images in bulk.

POST
/v1/shops/{shopId}/images/bulk-delete

Authorization

AuthorizationRequiredBearer <token>

You can retrieve your API key by visiting your dashboard and clicking Account > API.

In: header

Request Body

application/jsonOptional
image_idsarray<integer>

Path Parameters

shopIdRequiredinteger

The shop ID.

curl -X POST "https://api.sellauth.com/v1/shops/{shopId}/images/bulk-delete" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "image_ids": [
      12
    ]
  }'

Delete Image

Deletes an image.

DELETE
/v1/shops/{shopId}/images/{imageId}

Authorization

AuthorizationRequiredBearer <token>

You can retrieve your API key by visiting your dashboard and clicking Account > API.

In: header

Path Parameters

shopIdRequiredinteger

The shop ID.

imageIdRequiredinteger
curl -X DELETE "https://api.sellauth.com/v1/shops/{shopId}/images/{imageId}" \
  -H "Authorization: Bearer <token>"