Documentation

GET /api/walkthrough

The walkthrough's steps and this user's position in it.

RequestGET /api/walkthrough
AuthenticationSession cookie optional
Handlerflowfinds-organ/app/api/walkthrough/route.ts

What it does

Serves the step list and where the caller has reached. When the feature flag is off the response is `{ enabled: false }` and nothing else — the client is told the feature is absent rather than being given an empty walkthrough.

Authentication

Session cookie optional. The endpoint answers with or without ff_session, but the body is scoped to the session when one is present.

Parameters

This endpoint takes no parameters.

Request

The cookie jar carries the session between calls. Angle-bracketed values are the parameter types from the table above.

curl -s -b cookies.txt -c cookies.txt \
  "https://flowfinds.ai/api/walkthrough"
const res = await fetch("https://flowfinds.ai/api/walkthrough", {
  method: "GET",
  credentials: "include",
});
const data = await res.json();
import requests

s = requests.Session()
r = s.get("https://flowfinds.ai/api/walkthrough")
data = r.json()

Recorded example

curl -s -b cookies.txt -c cookies.txt \
  "$FLOWFINDS_ORIGIN/api/walkthrough"

Responses

200The feature is off.

FieldTypeDescription
enabledbooleanFalse.

200The feature is on.

FieldTypeDescription
enabledbooleanTrue.
authenticatedbooleanWhether a user was resolved.
stepIndexnumberPosition in the walkthrough. 0 for an unauthenticated caller.
dismissedAtstring | nullWhen it was dismissed.
completebooleanWhether it has been finished.
stepsarray`id`, `label` and `prompt` per step.
totalnumberHow many steps there are.

Errors

This endpoint has no failure path of its own. An uncaught exception anywhere in the engine is still returned as structured JSON by the shared guard.

Related

Back to the API reference index, or read the cookbook for recipes that compose this endpoint with others.