Create default smart workflow (no benchmark)
POST
/api/v1/workflows/create-default-smart
const url = 'https://dashboard.justcrawl.io/api/v1/workflows/create-default-smart';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"strategy":"success","pipeline":{"includeStorage":true,"includeExtractor":true,"extractorPageType":"example"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://dashboard.justcrawl.io/api/v1/workflows/create-default-smart \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "strategy": "success", "pipeline": { "includeStorage": true, "includeExtractor": true, "extractorPageType": "example" } }'Create a default (route=’*’) smart workflow from the org’s connected providers without requiring benchmark data. Used by the smart-workflow flow when a user has no URL history to benchmark (fresh org, or after deleting all workflows including the default).
Provider order is a static alphabetical fallback by providerId — without benchmark data we have no signal to rank by. Per-strategy ranking only kicks in once the optimization cycle runs against real benchmark data.
Idempotent: if a published default workflow already exists for this org, it is updated in place; otherwise a new one is created and published.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ” Media type application/json
object
strategy
required
string
pipeline
object
includeStorage
boolean
includeExtractor
boolean
extractorPageType
string
Responses
Section titled “ Responses ”The created or updated workflow.
Invalid strategy, or no active providers configured.
Not authenticated, or missing organization.