Skip to content

Get smart workflow config

GET
/api/v1/workflows/{workflowId}/smart
curl --request GET \
--url https://dashboard.justcrawl.io/api/v1/workflows/example/smart \
--header 'Authorization: Bearer <token>'

Returns the smart-workflow configuration row for a workflow: ranking strategy (success / cost / reliability / quality), mode (auto re-ranks automatically vs suggest requires the user to apply each change), and the domain the rankings are scoped to. Org-scoped — calling on another tenant’s workflow returns 404 indistinguishably from “not a smart workflow.” A regular (non-smart) workflow also returns 404.

workflowId
required
string

Smart workflow configuration.

Media type application/json
object
strategy
string
Allowed values: success cost reliability
mode
string
Allowed values: auto suggest
domain
string
nullable
hasPendingSuggestion
boolean
Example
{
"strategy": "success",
"mode": "auto"
}

Missing or invalid authentication token

Media type application/json
object
error
string
Example
{
"error": "Missing or invalid authentication token"
}

Insufficient permissions for this operation

Media type application/json
object
error
string
Example
{
"error": "No organization. Complete onboarding first."
}

Resource not found

Media type application/json
object
error
string
Example
{
"error": "Workflow not found"
}

Unexpected server error. Logs and PostHog $exception capture

Media type application/json
object
error
string
Example
{
"error": "Something went wrong"
}