Skip to main content
POST
/
products
/
enrich
/
batch
Batch Enrich Products
curl --request POST \
  --url https://backend.anglera.com/products/enrich/batch \
  --header 'Content-Type: application/json' \
  --header 'X-Anglera-API-Key: <api-key>' \
  --data '
{
  "product_ids": [
    {}
  ],
  "sheet_id": "<string>",
  "status_filter": [
    {}
  ]
}
'
{
  "message": "<string>",
  "total_matched": 123,
  "queued": 123,
  "sheet_id": "<string>"
}
Queues existing products for enrichment. Use this to trigger enrichment on products that were created with auto_enrich: false, or to re-enrich products in a specific status. Provide either product_ids or sheet_id — not both.
A maximum of 5,000 products are processed per request. If more products match, the response will indicate how many remain — call the endpoint again to process the next batch.

Request

curl -X POST "https://backend.anglera.com/products/enrich/batch" \
  -H "X-Anglera-API-Key: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "product_ids": [9001, 9002, 9003]
  }'

Body Parameters

product_ids
array
Array of product IDs to enrich (max 500). Mutually exclusive with sheet_id.
sheet_id
string
ID of the sheet to enrich products from. Mutually exclusive with product_ids.
status_filter
array
default:"[\"DRAFT\"]"
Only used with sheet_id mode. Filters products by status before queuing. Defaults to ["DRAFT"].

Response

message
string
Summary of the operation
total_matched
number
Total products that matched the filter criteria
queued
number
Number of products successfully queued for enrichment
sheet_id
string
The sheet ID (only present when using sheet_id mode)
{
  "message": "Queued 3 product(s) for enrichment",
  "total_matched": 3,
  "queued": 3
}

Errors

Status CodeDescription
400Missing required fields, both product_ids and sheet_id provided, or exceeds 500 ID limit
401Invalid API key
404Sheet not found
500Internal server error