Authentication
The Visual Discovery API uses API keys to authenticate requests. You can view and manage your API keys in the Dashboard.
Authentication to the API is performed via the Authorization header.
Integrate visual search capabilities directly into your application. All endpoints are served over HTTPS.
The Visual Discovery API uses API keys to authenticate requests. You can view and manage your API keys in the Dashboard.
Authentication to the API is performed via the Authorization header.
All requests to the Visual Discovery API should be issued to the following endpoint. We recommend pinning your requests to a specific version.
Visual Discovery uses standard HTTP response codes to indicate the success or failure of an API request. Codes in the 2xx range indicate success. Codes in the 4xx range indicate an error that failed given the information provided (e.g., a required parameter was omitted). Codes in the 5xx range indicate an error with our servers.
| Code | Description |
|---|---|
| 200 OK | Everything worked as expected. |
| 400 Bad Request | The request was unacceptable, often due to missing parameters or invalid image formats. |
| 401 Unauthorized | No valid API key provided. |
| 404 Not Found | The requested resource (e.g., request_id) does not exist. |
| 429 Too Many Requests | Too many requests hit the API too quickly. |
| 500 Server Error | Something went wrong on Visual Discovery's end. |
Uploads an image and runs neural object detection. Returns bounding boxes for all identified fashion items.
| Parameter | Type | Description |
|---|---|---|
| file | Binary | The image file to analyze (JPG, PNG, WEBP). Max size 10MB. |
Performs a vector similarity search based on a specific crop from a previous detection request.
| Parameter | Type | Description |
|---|---|---|
| request_id | String | The ID returned from the /detect endpoint. |
| x1, y1, x2, y2 | Integer | Coordinates of the selected bounding box. |
| limit | Integer | Max results to return (default: 12). |
| search | String | Optional text keyword to filter results (e.g., "red"). |
Finds similar products to an existing inventory item.
| Parameter | Type | Description |
|---|---|---|
| account_id | String | Account ID of the customer. |
| id | String | The unique ID of the product (SKU) whose similarities are requested. |
| limit | Integer | Max results to return (default: 12). |
| search | String | Optional text keyword to filter results (e.g., "red"). |