Skip to main content
POST
cURL

Poznámky k použití

  • Odešlete buď schema_id, nebo columns, nikdy obojí. Když vynecháte obě pole, Lasso použije výchozí Product Schema.
  • max_results přijímá hodnoty 1 až 7 a výchozí hodnota je 7.
  • Jedno vyhledávání stojí 5 kreditů bez ohledu na počet vrácených produktů.
  • Bez webhook_url požadavek čeká na odpověď 200. S webhook_url Lasso vrátí 202 a dokončený výsledek odešle na vaši URL.
  • model je zastaralé kompatibilní pole. Služba jeho hodnotu ignoruje a používá nakonfigurovaný Gemini provider.
  • Při nedostatku kreditů synchronní režim aktuálně vrátí HTTP 200 s error: "Insufficient credits", prázdným polem results a credits_used: 0.
Filtry produktů zapisujte přímo do query, například Sony sluchátka do 5 000 Kč s nabíjením USB-C.

Příklady

Example response

Autorizace

Authorization
string
header
povinné

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

Tělo

application/json
query
string
povinné

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
výchozí:7
Požadovaný rozsah: 1 <= x <= 7
model
string
zastaralé

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.

Odpověď

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>
Dostupné možnosti:
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.