Get tasks including AI-generated per-product action recommendations
Returns a paginated, enriched list of tasks for the organization. Optional filters narrow by status, source type, assignee, shop, variant, or domain. Filter by sourceType=ACTION_VECTOR to retrieve AI-generated restock, rebalance, and markdown recommendations with embedded decisionVectorSnapshot scores — these are the per-product, per-shop action items produced by the AI recommendation engine. ACTION_VECTOR tasks carry a PRODUCT_ACTION enrichment block with recommendedQty, recommendedDiscount, confidence, and the full decisionVectorSnapshot captured at emit time. Enrichment adds source-specific display data (alert name, plan name, product labels) and structured scopes (shop/brand) resolved at read time.
Authorizations
User session token issued by NextAuth. For human users accessing Solya via the web application.
Query Parameters
Page number, 1-indexed (default: 1)
1 <= x <= 9007199254740991Number of items per page, max 100 (default: 20)
1 <= x <= 100Filter by one or more task statuses (comma-separated or array). Allowed values: OPEN, IN_PROGRESS, DONE, DISMISSED.
OPEN, IN_PROGRESS, DONE, DISMISSED Filter by one or more task source types (comma-separated or array). Allowed values: PLAN_APPROVAL, ALERT_INSTANCE, RECOMMENDED_PLAN, ACTION_VECTOR.
ACTION_APPROVAL, PLAN_APPROVAL, ALERT_INSTANCE, RECOMMENDED_PLAN, ACTION_VECTOR Filter tasks by assignee user ID. Returns only tasks assigned to this user.
Filter PRODUCT_ACTION tasks by decision domain. Allowed values: restock, rebalance, markdown.
restock, rebalance, markdown Filter tasks by shop ID. Returns only PRODUCT_ACTION tasks linked to this shop.
Filter tasks by variant ID. Returns only PRODUCT_ACTION tasks linked to this variant.
Field to sort results by. Defaults to createdAt. Allowed values: createdAt, updatedAt, priority, dueDate.
createdAt, updatedAt, priority, dueDate Sort direction. Defaults to desc. Allowed values: asc, desc.
asc, desc 
