Skip to main content
POST
/
api
/
enrich-product
Enrich a single product
curl --request POST \
  --url https://app.solya.app/api/enrich-product \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "messageType": "PRODUCT_ENRICH",
  "productId": "prod-uuid-nike-air"
}
'
{
  "message": "Enrichment queued for product prod-uuid-nike-air",
  "messageId": "sqs-msg-uuid-001",
  "success": true,
  "timestamp": "2025-05-23T10:15: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 PRODUCT_ENRICH

Available options:
PRODUCT_ENRICH
productId
string
required

Identifier of the product to enrich

Minimum string length: 1

Response

Successful response

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