Snyf API Reference
Welcome to the Snyf API. Upload your product catalog using the Upload API, and query it using natural language with the Search API.
Authentication
You can generate your API Key on your Dashboard (login required). Include this key in the header of every request.
Upload Product
Asynchronous Processing: This endpoint initiates an asynchronous upload process. Your product will be processed, indexed, and available for search within approximately 5 minutes.
Body Parameters
| Field | Type | Description |
|---|---|---|
| company_id | string | ReqThe company identifier used when registering your account. |
| product_id | string | ReqUnique product ID. |
| category | string | ReqProduct category (e.g. tshirt, dress, shorts). |
| title | string | ReqName of the product. |
| image_urls | array | ReqList of public image URLs. |
| description | string | OptDetailed product description. |
curl -X POST https://ag42w9a4xj.execute-api.us-east-1.amazonaws.com/prod \
-H "x-api-key: sk-snyf-*****************" \
-H "Content-Type: application/json" \
-d '{
"company_id": "registered-company-id",
"product_id": "productid",
"category": "apparel",
"title": "blue shirt",
"description": "button down blue shirt",
"image_urls": ["image_url_1", "image_url_2"]
}'Response
202 Accepted This status code indicates that the request was sent successfully. The product will be processed and indexed in the background.
Search Catalog
Query Parameters
| Param | Type | Description |
|---|---|---|
| query | string | ReqSearch text (e.g., "red dress"). |
| company_id | string | ReqMust match the company identifier used when registering. |
| page | int | OptPage number (Default: 1). |
| page_size | int | OptItems per page (Default: 8). |
curl -G "https://3o14x7mgq5.execute-api.us-east-1.amazonaws.com/prod/search" \
-d "query=red dress" \
-d "company_id=registered-company-id" \
-d "page=1" \
-d "page_size=8" \
-H "x-api-key: sk-snyf-*****************"Response Structure
| Field | Type | Description |
|---|---|---|
| results | array | List of products matching the search query. |
| results[].productId | string | Unique identifier for the product. |
| results[].title | string | Product title. |
| results[].image_url | string | Presigned URL granting temporary access (1 hour) to the image. |
| results[].score | float | Relevance score (0.0 - 1.0). Higher is better. |
| totalItems | int | Total number of results found. |
Example Response
{
"results": [
{
"productId": "prod_123456",
"title": "Red Floral Summer Dress",
"image_url": "https://snyf-catalog-images.s3.amazonaws.com/images/...[SignedToken]...",
"score": 0.85505205
},
{
"productId": "prod_789012",
"title": "Evening Gown",
"image_url": "https://snyf-catalog-images.s3.amazonaws.com/images/...[SignedToken]...",
"score": 0.85437917
}
],
"currentPage": 1,
"totalPages": 5,
"totalItems": 40
}
Need help?
Contact us for integration support.