List goals
/api/v1/list_goalsThe goals and funnels defined for this workspace, with what each one MATCHES. A goal is a named thing you want a reader to do; a funnel is an ordered list of goals. Call this before creating anything — a goal whose name already exists is refused, and a funnel step refers to a goal by name. Free on every plan: defining measurement is not the paid part. 🔴 AN EMPTY LIST IS NOT A MISSING GOAL. Every project has the standing goal — be found, on Google and in AI answers (standing_goal here, be_found as a goal_key) — without declaring anything; these are the owner's EXTRAS, reader actions on the site. Never ask the owner to declare a goal, and never create a page-view goal to stand in for being found: decompose the standing goal instead (list_opportunities, add_direction).
Price — $0.00003 per call (twice what serving it costs us), charged to the workspace balance, the same as over MCP.
Also reachable by name at POST /api/v1/tools/list_goals.
Your API key, sent as Authorization: Bearer dbk_YOUR_API_KEY.Sent as the Authorization header. Your key is used only by your browser for this request — it is never sent to Docsbook or stored.
curl -X GET 'https://docsbook.io/api/v1/list_goals' \
-H 'Authorization: Bearer dbk_YOUR_API_KEY'Responses#
| Status | Meaning |
|---|---|
200 |
The tool ran. Read ok to see whether it succeeded. |
401 |
Missing or invalid API key. |