Documentation
POST /api/fix/adopt
Attach a Fix run to this session.
| Request | POST /api/fix/adopt |
|---|---|
| Authentication | Session cookie required |
| Handler | backend/fixtool.py |
What it does
Binds a run made anonymously to the current session, so an account created afterwards inherits it.
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. |
token | body | string | Required | The run token. `t` is accepted as an alias. |
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 '{"token":"<string>"}' \
"https://flowfinds.ai/api/fix/adopt"const res = await fetch("https://flowfinds.ai/api/fix/adopt", {
method: "POST",
credentials: "include",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"token": "<string>"
}),
});
const data = await res.json();import requests
s = requests.Session()
r = s.post("https://flowfinds.ai/api/fix/adopt", json={
"token": "<string>"
})
data = r.json()Recorded example
curl -s -b cookies.txt -c cookies.txt \
-X POST -H 'Content-Type: application/json' \
-d '{"token":"…"}' \
"$FLOWFINDS_ORIGIN/api/fix/adopt"Responses
200 — Adopted.
| Field | Type | Description |
|---|---|---|
status | string | `ok`. |
session | string | The session the run now belongs to. |
Errors
| Status | Reason | When |
|---|---|---|
404 | — | No run carries that token. |
Related
POST /api/fix— Submit a store URL for repair.GET /api/fix/mine— The state of a Fix run, or this account's Fix subscriptions.POST /api/fix/event— Record an event or a piece of feedback against a Fix run.
Back to the API reference index, or read the cookbook for recipes that compose this endpoint with others.