1.0 KiB
1.0 KiB
1688 Product Master Reference
1. Runtime scrape mapping from original curl
Original browser call target:
POST /ecom/tasks/scrape
Runtime script behavior:
- Exchange client key:
POST /auth/skill-credit/session- body:
{ "clientKey": "<CLIENT_KEY>" }
- Use returned
accessToken:Authorization: Bearer <accessToken>
- Call scrape:
POST /ecom/tasks/scrapeContent-Type: application/json- payload fields:
urloptimizeImagesoptimizeTitlesoptimizeVariantsneedTranslate
- If runtime session is expired (
401/403),@clawd/auth-runtimewill refresh token and retry once automatically.
The extra browser headers in the original curl (sec-*, origin, cookies, etc.) are not required by this skill flow.
2. Notes
clientKeyplaintext is only returned at key creation time.- Store the returned
clientKeysecurely and inject it asCLIENT_KEY. /auth/skill-credit/clients*endpoints are owner management APIs and are out of this runtime skill scope.