ask/engine
API Reference

Link a work item

Attach an external work item (Linear, GitHub, or a URL) to a recommendation.

POST/v1/recommendations/{recommendationId}/work-items

Example

curl -X POST "https://example.com/v1/recommendations/string/work-items" \  -H "Authorization: Bearer $ASKENGINE_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "url": "https://linear.app/acme/issue/ACM-412",    "title": "First-run setup checklist",    "externalId": "ACM-412"  }'

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response

{  "data": {    "recommendationId": "rec_456"  }}