Image search
Image search is a 2 step process. First, you send the image as a base64 encoded string to receive a slug id of the vectorized image. Second, you use that id to get search results of similar products.
Step 1: POST /vectorize-image
This endpoint lets you to create a vectorization id for an image by providing a base64 encoded string of the image.
Note: If you want to detect specific objects in an image before starting the image search process, you want to use the /detect-objects endpoint.
Headers
Authorization
string
Bearer token.
Request body
The request passes the base64 encoded string of the image you want to use.
{
"base64String": "string"
}Response
{
"status": "success",
"slug": "newRequest.slug"
}{
"status": "error",
"message": "Internal Server Error"
}Step 2: GET /search
This endpoint lets you to search products that match the image.
Headers
Authorization
string
Bearer token
Query parameters
imageId
string
Image search identifier.
Response
Last updated
Was this helpful?