Skip to content

Create default smart workflow (no benchmark)

POST
/api/v1/workflows/create-default-smart
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.

Media type application/json
object
strategy
required
string
Allowed values: success cost reliability quality
pipeline
object
includeStorage
boolean
includeExtractor
boolean
extractorPageType
string

The created or updated workflow.

Invalid strategy, or no active providers configured.

Not authenticated, or missing organization.