Documentation
POST /api/product-launch
Drive the launch state machine for a product.
| Request | POST /api/product-launch |
|---|---|
| Authentication | Session cookie required |
| Handler | backend/server.py |
What it does
Applies a named operation to a product's launch state, scoped to the supplied account.
Authentication
Session cookie required. Send the ff_session cookie. Without one the engine treats the caller as a new visitor with no holds and no claims, and returns a new cookie to use from then on.
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
ff_session | cookie | string | Optional | The session identifier. Omit it on the first call and store the value the response sets; every later call must send the same one or the engine treats the caller as a new visitor with no holds and no claims. |
op | body | string | Required | The launch operation to apply. |
product_id | body | string | Required | The product to apply it to. |
email | body | string | Optional | The account the launch belongs to, when it cannot be resolved from the session. |
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 \
-X POST -H 'Content-Type: application/json' \
-d '{"op":"<string>","product_id":"<string>","email":"<string>"}' \
"https://flowfinds.ai/api/product-launch"const res = await fetch("https://flowfinds.ai/api/product-launch", {
method: "POST",
credentials: "include",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"op": "<string>",
"product_id": "<string>",
"email": "<string>"
}),
});
const data = await res.json();import requests
s = requests.Session()
r = s.post("https://flowfinds.ai/api/product-launch", json={
"op": "<string>",
"product_id": "<string>",
"email": "<string>"
})
data = r.json()Recorded example
curl -s -b cookies.txt -c cookies.txt \
-X POST -H 'Content-Type: application/json' \
-d '{"op":"…","product_id":"…"}' \
"$FLOWFINDS_ORIGIN/api/product-launch"Responses
200 — The operation was applied, or refused by name.
Errors
| Status | Reason | When |
|---|---|---|
400 | unknown_op | The operation is not one the state machine defines. |
Related
GET /api/offer— The researched offer for the session's product, or the refusal that says why there is none.GET /api/dashboard— The verdict, the facts behind it, and where each figure came from.GET /api/launch— The launch facts, each with whether it is true today.POST /api/outcome— Declare what happened with a claimed product.POST /api/product— Publish a product of the founder's own into the store engine.POST /api/presence— Record which screen the operator is on.
Back to the API reference index, or read the cookbook for recipes that compose this endpoint with others.