List Work Item Enhance drafts

Returns generated field-level drafts with confidence, evidence references, and apply eligibility.

GET/api/v1/work-item-enhancements/:id/drafts

Authorization

work-item-enhance:readapi key scoperequired
Required scope when calling with an API key.

Path parameters

idstringrequired
Enhancement run id

Example: wie_01k6...

Query parameters

actionstringoptional
Filter drafts by generating action
fieldstringoptional
Filter drafts by target field
apply_eligiblebooleanoptional
Filter by whether the draft can be applied

Example: true

Request

curl -X GET "https://www.digitalstack360.com/api/v1/work-item-enhancements/wie_01k6.../drafts" \
  -H "Authorization: Bearer $DS_API_KEY"

Examples use a placeholder key from your environment. Store your key in $DS_API_KEY — never commit it.

Response

200 OK
{
  "data": [
    {
      "id": "draft_01k6...",
      "field": "description",
      "apply_eligible": true
    }
  ],
  "meta": {
    "count": 1
  }
}

Errors

401
missing_auth

No credentials provided

401
invalid_api_key

API key is invalid or revoked

404
run_not_found

Run does not exist or is outside the resolved workspace