Upload image

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

This API allows you to upload an image for Visual Search.

Endpoints

  • Production: https://pathways.dxpapi.com/api/v2/widgets/visual/upload/{widget_id}
  • Staging: https://pathways-staging.dxpapi.com/api/v2/widgets/visual/upload/{widget_id}

Response Example

🚧

The request payload should not exceed 2 MB.

The response provides you with the image_id value.

image_id can be used to make multiple subsequent queries for widget responses (with different parameters/filters and objects) without the need to re-upload the image.

{
    "response": {
       "image_id": "3d4b4331763c31b39da02704d48e890f90c36ef6b4835eface4820a3e1127987"
    },
    "metadata": {
        "widget": {
            "id": "79opvm5j",
            "name": "preview",
            "description": "preview",
            "type": "visual_search",
            "rid": "680d0382-7297-4db7-9df7-61522b4612c7"
        },
        "query": {
            "image_id": "3d4b4331763c31b39da02704d48e890f90c36ef6b4835eface4820a3e1127987"
        }
    }
}
Path Params
string
required
Defaults to 1jwy7eg9
Query Params
int32
required
Defaults to 6276
string
required
Defaults to bloomreach_devdocs
string
Headers
string
required
Defaults to form-data; name="image"; filename="filename.jpg"
string
required
Defaults to image/jpeg
Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here!

© Bloomreach, Inc. All rights reserved.