Predict.aiDocs
Goals

Endpoints

Every goal route at a glance, grouped by what it does.

All routes require Authorization and X-Workspace-Id headers.

Lifecycle

MethodPathPurpose
POST/v1/goalsCreate a goal
GET/v1/goalsList goals
GET/v1/goals/{goal_id}Inspect one goal
PATCH/v1/goals/{goal_id}Edit a goal
DELETE/v1/goals/{goal_id}Delete a goal
GET/v1/goals/profile-previewPreview the profile before creating
GET/v1/goals/pricePrice a goal before creating
GET/v1/goals/similarFind similar signals & events
POST/v1/goals/{goal_id}/publish-segmentPublish the goal's segment

Runs

MethodPathPurpose
POST/v1/goals/{goal_id}/runRe-run discovery
GET/v1/goals/runs/{run_id}Inspect a run (stages & funnel)
POST/v1/goals/{goal_id}/trainStart a tournament
POST/v1/goals/{goal_id}/serveProduce a forecast now
GET/v1/goals/{goal_id}/timelineThe audit timeline
GET/v1/goals/{goal_id}/activityThe activity feed

Tournament

MethodPathPurpose
GET/v1/goals/{goal_id}/tournamentRead the leaderboard
POST/v1/goals/{goal_id}/tournament/championSelect a champion manually
POST/v1/goals/{goal_id}/tournament/cancelCancel the tournament
POST/v1/goals/{goal_id}/tournament/entries/{preset_id}/cancelCancel one entry
POST/v1/goals/{goal_id}/tournament/training/cancelCancel the champion's training
GET/v1/goals/model-lineupThe model lineup (candidate catalog)

Forecast

MethodPathPurpose
GET/v1/goals/{goal_id}/forecastGet the forecast & track record
POST/v1/goals/{goal_id}/forecast/rerunForce a fresh forecast
GET/v1/goals/{goal_id}/drivers-nowDrivers now — current pressure
GET/v1/goals/{goal_id}/shock-analoguesShock analogues

Graph

MethodPathPurpose
GET/v1/goals/{goal_id}/graphThe relationship graph
GET/v1/goals/{goal_id}/pathsMulti-hop paths
GET/v1/goals/edges/{edge_id}Edge detail (full evidence)

Scenarios

MethodPathPurpose
POST/v1/goals/{goal_id}/scenariosRun a scenario
GET/v1/goals/{goal_id}/scenariosList saved scenarios
POST/v1/goals/{goal_id}/scenarios/parseParse natural language into a spec
POST/v1/goals/{goal_id}/scenarios/{scenario_id}/explainExplain a scenario
POST/v1/goals/{goal_id}/scenarios/sensitivityRun sensitivity analysis
GET/v1/goals/{goal_id}/scenarios/sensitivityLatest sensitivity result
DELETE/v1/goals/scenarios/{scenario_id}Delete a scenario

Analyst

MethodPathPurpose
POST/v1/goals/{goal_id}/analyst/streamAsk a question (streamed)
GET/v1/goals/{goal_id}/analyst/sessionsList sessions
GET/v1/goals/{goal_id}/analyst/sessions/{session_id}Get one session
DELETE/v1/goals/{goal_id}/analyst/sessions/{session_id}Delete a session

Fleet

Fleet goals are created through the same POST /v1/goals with goal_kind: "fleet" — see Fleet goals.

MethodPathPurpose
GET/v1/goals/fleet/previewPreview membership & cost before creating
GET/v1/goals/{goal_id}/fleet/leaderboardThe ranked board for a run
GET/v1/goals/{goal_id}/fleet/memberOne member's history (?key=)
GET/v1/goals/{goal_id}/fleet/runsList scoring runs
POST/v1/goals/{goal_id}/fleet/runScore the fleet now
GET/v1/goals/{goal_id}/fleet/bakeoffThe model bake-off result
GET/v1/goals/{goal_id}/fleet/receiptsReceipts — verified outcomes
GET/v1/goals/{goal_id}/fleet/driversCompanion goal & shared covariates
POST/v1/goals/{goal_id}/fleet/scenariosShock a driver, re-rank
GET/v1/goals/{goal_id}/fleet/scenariosList fleet scenarios
GET/v1/goals/{goal_id}/fleet/scenarios/{scenario_id}One scenario's result

Alerts

MethodPathPurpose
GET/v1/goals/{goal_id}/alertsList alerts
POST/v1/goals/{goal_id}/alertsCreate an alert
PUT/v1/goals/{goal_id}/alerts/{alert_id}Update an alert
DELETE/v1/goals/{goal_id}/alerts/{alert_id}Delete an alert
POST/v1/goals/{goal_id}/alerts/previewPreview a condition

On this page