Registar a saída antes de entrar
RegistosPOST /first-run/abandon
Records an explicit exit from the selected resident journey with the anonymous timing token, the journey ID (resident_link or resident_connection) and the step ID. A token bound to a signed-in identity is refused. Repeats are idempotent.
Corpo application/json
run_tokenOpaque run token
step_idjourney_idOnly for the public route
Devolve
curl -X POST "$PUBLIC_API/first-run/abandon" \
-H "Content-Type: application/json" \
-d '{
"run_token": "run token",
"step_id": "open_todays_route",
"journey_id": "resident_link"
}'
# Sem comando CLI equivalente; use cURL ou HTTP directo.
const res = await fetch("$PUBLIC_API/first-run/abandon", {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
"run_token": "run token",
"step_id": "open_todays_route",
"journey_id": "resident_link"
})
});
const data = await res.json();
import requests
res = requests.post(
"$PUBLIC_API/first-run/abandon",
json={
"run_token": "run token",
"step_id": "open_todays_route",
"journey_id": "resident_link"
}
)
data = res.json()
body := strings.NewReader(`{
"run_token": "run token",
"step_id": "open_todays_route",
"journey_id": "resident_link"
}`)
req, _ := http.NewRequest("POST", "$PUBLIC_API/first-run/abandon", body)
req.Header.Set("Content-Type", "application/json")
resp, err := http.DefaultClient.Do(req)
Resposta 204
Exit recorded