Documentation

POST /api/store/publish

Verify and publish the storefront, regenerating it if verification demands.

RequestPOST /api/store/publish
AuthenticationSession cookie required
Handlerbackend/server.py

What it does

Publishing verifies the store before it confirms it. When verification forces a rewrite, `regenerated` is true — a publish that had to rewrite the store did more than confirm it, and the founder is told which of the two happened rather than being shown one word for both.

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.

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' \
  "https://flowfinds.ai/api/store/publish"
const res = await fetch("https://flowfinds.ai/api/store/publish", {
  method: "POST",
  credentials: "include",
});
const data = await res.json();
import requests

s = requests.Session()
r = s.post("https://flowfinds.ai/api/store/publish")
data = r.json()

Recorded example

curl -s -b cookies.txt -c cookies.txt \
  -X POST -H 'Content-Type: application/json' \
  -d '{}' \
  "$FLOWFINDS_ORIGIN/api/store/publish"

Responses

200Publication completed.

FieldTypeDescription
statusstringThe manifest's status after publishing.
product_idstringThe product.
verificationobjectThe verification result the decision was made on.
regeneratedbooleanTrue when the store had to be rewritten to pass verification.
browsable_pathstringThe path that resolves to the published store.

Errors

StatusReasonWhen
409build_in_progressA build is already running for this product.
500generation_failedThe regeneration raised.

Related

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