curl --request POST \
--url http://localhost:8000/api/v1/campaigns/drafts/{draft_id}/extensions/generate \
--header 'Authorization: Bearer <token>'{
"task_id": "<string>",
"status": "pending"
}Start extension generation for a draft using LLM.
Company info is auto-resolved from the draft’s linked customer. Crawls the website sitemap for real URLs, uses keywords as context. Kicks off a background task. Returns immediately with task_id for polling.
curl --request POST \
--url http://localhost:8000/api/v1/campaigns/drafts/{draft_id}/extensions/generate \
--header 'Authorization: Bearer <token>'{
"task_id": "<string>",
"status": "pending"
}The access token received from the authorization server in the OAuth 2.0 flow.