Documentation

POST /api/product-launch

Drive the launch state machine for a product.

RequestPOST /api/product-launch
AuthenticationSession cookie required
Handlerbackend/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

ParameterInTypeRequiredDescription
ff_sessioncookiestringOptionalThe 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.
opbodystringRequiredThe launch operation to apply.
product_idbodystringRequiredThe product to apply it to.
emailbodystringOptionalThe 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

200The operation was applied, or refused by name.

Errors

StatusReasonWhen
400unknown_opThe operation is not one the state machine defines.

Related

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