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.
  • Požadavek může obsahovat nejvýše 50 produktů. Pro synchronní odpověď odešlete 1 až 5 produktů. Pro 6 až 50 produktů musíte zadat webhook_url, protože veřejný endpoint pro načtení výsledku Enrich úlohy neexistuje.
  • thinking stojí 4 kredity za produkt pro hard, 2 pro medium a 1 pro low.
  • S web_search: false Lasso používá znalosti modelu a v poli basis nevrací citace.
  • Pole context použijte pro pokyny, které platí pro všechny položky požadavku.
  • model je zastaralé kompatibilní pole. Služba ho ignoruje; úroveň thinking vybírá modelový tier řízený službou.
  • Při nedostatku kreditů synchronní režim aktuálně vrátí HTTP 200 s error: "Insufficient credits", bez obohacených položek a s credits_used: 0.
Bez webhook_url neposílejte více než 5 položek. Aktuální handler požadavek přijme a vrátí 202, ale pro dané ID neposkytuje cestu k načtení výsledku.

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
items
object[]
povinné

Send at most 5 items for a synchronous response. Requests with 6 to 50 items require webhook_url to make the completed result retrievable.

Required array length: 1 - 50 elements
schema_id
string

ID of an existing schema. Mutually exclusive with columns.

columns
object[]

Inline column definitions. Mutually exclusive with schema_id.

context
string

Additional context for the AI enrichment

model
string
zastaralé

Legacy compatibility field. The service ignores the requested value; thinking selects the service-controlled model tier.

use_glossary
boolean
výchozí:false

Whether to use web search for enrichment. When false, the AI fills fields from its own knowledge and no basis/citations are returned.

thinking
enum<string>
výchozí:medium

Controls the depth of AI reasoning. hard — most capable model, best for complex or ambiguous products. medium — balanced speed and quality (default). low — fastest, suitable for straightforward lookups.

Dostupné možnosti:
hard,
medium,
low
webhook_url
string<uri>

Delivers results asynchronously and returns 202. Required for 6 to 50 items because there is no public Enrich job-result endpoint.

Odpověď

Enrichment results for 1 to 5 items in synchronous mode. A request-wide failure 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
items
object[]
credits_used
number
error
string

Present for a request-wide worker failure such as insufficient credits. The current synchronous handler can still return this payload with HTTP 200.