Skip to main content
POST
/
api
/
enrich-products
Enrich multiple products
curl --request POST \
  --url https://app.solya.app/api/enrich-products \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "count": 10,
  "messageType": "PRODUCTS_ENRICH"
}
'
{
  "message": "Enrichment queued for 10 products",
  "messageId": "sqs-msg-uuid-002",
  "success": true,
  "timestamp": "2025-05-23T10:20:00.000Z"
}

Authorizations

Authorization
string
header
required

User session token issued by NextAuth. For human users accessing Solya via the web application.

Body

application/json
messageType
enum<string>
required

Message type discriminator — must be PRODUCTS_ENRICH

Available options:
PRODUCTS_ENRICH
count
number

Number of unenriched products to pick and enrich. Mutually exclusive with productIds.

Required range: 1 <= x <= 1000
productIds
string[]

Explicit list of product IDs to enrich. Mutually exclusive with count.

Response

Successful response

data
object
required
success
enum<boolean>
required
Available options:
true