Skip to main content
POST
cURL

Usage notes

  • Send either schema_id or columns, not both. Lasso uses the default Product Schema when you omit both.
  • max_results accepts 1 through 7 and defaults to 7.
  • A search costs 5 credits, independent of the number of returned products.
  • Without webhook_url, the request waits for a 200 response. With webhook_url, Lasso returns 202 and posts the completed result to your URL.
  • model is a deprecated compatibility field. The service ignores its value and uses the configured Gemini provider.
  • In synchronous mode, insufficient credits currently produce HTTP 200 with error: "Insufficient credits", an empty results array, and credits_used: 0.
Put product filters directly in query, for example Sony earbuds under $200 with USB-C charging.

Examples

Example response

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
query
string
required

Natural language search objective

schema_id
string

ID of an existing schema. Mutually exclusive with columns.

columns
object[]

Inline column definitions. Mutually exclusive with schema_id.

max_results
integer
default:7
Required range: 1 <= x <= 7
model
string
deprecated

Legacy compatibility field. The service ignores the requested value and uses its configured Gemini provider.

webhook_url
string<uri>

If provided, results are delivered via webhook and 202 is returned immediately.

Response

Search results in synchronous mode. Worker failures such as insufficient credits can currently appear as an error field in this HTTP 200 response.

id
string
status
enum<string>
Available options:
completed
query
string
results
object[]
total_results
integer
credits_used
number
error
string

Present when the worker could not complete the search, including insufficient-credit outcomes. The current synchronous handler can still return this payload with HTTP 200.