curl --request GET \
--url 'https://api.example.com/api/products/search' \
--header 'x-widget-token: YOUR_API_KEY'
{
"products": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"title": "Replacement tent pole set",
"price": "49.00",
"url": "https://example.com/webhooks/stateset",
"image": "https://cdn.example.com/products/tent-2p.jpg"
}
]
}
Search products (optional)
Search products (optional)
GET
/
api
/
products
/
search
curl --request GET \
--url 'https://api.example.com/api/products/search' \
--header 'x-widget-token: YOUR_API_KEY'
{
"products": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"title": "Replacement tent pole set",
"price": "49.00",
"url": "https://example.com/webhooks/stateset",
"image": "https://cdn.example.com/products/tent-2p.jpg"
}
]
}
Query parameters
string
Search text
Response
ProductList
Status codes
| Code | Meaning |
|---|---|
200 | OK |
400 | Error |
401 | Error |
curl --request GET \
--url 'https://api.example.com/api/products/search' \
--header 'x-widget-token: YOUR_API_KEY'
{
"products": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"title": "Replacement tent pole set",
"price": "49.00",
"url": "https://example.com/webhooks/stateset",
"image": "https://cdn.example.com/products/tent-2p.jpg"
}
]
}