Documentation

POST /api/fix/adopt

Attach a Fix run to this session.

RequestPOST /api/fix/adopt
AuthenticationSession cookie required
Handlerbackend/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

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.
tokenbodystringRequiredThe 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

200Adopted.

FieldTypeDescription
statusstring`ok`.
sessionstringThe session the run now belongs to.

Errors

StatusReasonWhen
404No run carries that token.

Related

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