Pull every weather source for a point and date now
const url = 'https://quikstik-core.fly.dev/conditions/pulls';const options = { method: 'POST', headers: { 'x-tenant-id': '2489E9AD-2EE2-8E00-8EC9-32D5F69181C0', 'Idempotency-Key': 'example', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"point_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","date":"2026-04-15"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://quikstik-core.fly.dev/conditions/pulls \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Idempotency-Key: example' \ --header 'x-tenant-id: 2489E9AD-2EE2-8E00-8EC9-32D5F69181C0' \ --data '{ "point_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "date": "2026-04-15" }'Pulls NWS and the Open-Meteo NBM / ECMWF models for {point_id, date?} (date is the local
date at the point; absent = today there), stores each result raw, and re-scores that day’s
departures at the point. Each source is independent: a failed source is reported in
pulls[] and simply absent from the blend. Requires x-idempotency-key; a replay returns
the stored pulls and re-tries only sources that had failed. 502 no_source_available when
every source failed.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Tenant identifier (UUID).
Authn/authz semantics are intentionally TBD for this contract slice; this header exists to keep the contract explicitly multi-tenant from day 0.
Idempotency key for the command envelope. A retry with the same key is a no-op.
Request Bodyrequired
Section titled “Request Bodyrequired”object
Local date at the point; absent = today there.
Example generated
{ "point_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "date": "2026-04-15"}Responses
Section titled “Responses”Per-source results and the re-score summary.
object
no_source_available on 502, else null.
object
A declared weather source. openmeteo_meteoblue and accuweather are declared but have no
adapter yet; they never appear in a pull.
Present when ok.
Present when not ok; carries no URL or secret.
Re-score of that day’s departures at the point; null when no source landed.
object
Example
{ "pulls": [ { "source": "nws" } ]}idempotency_key_required.
Missing or invalid session bearer token
object
Stable, machine-readable reason code (e.g. “sold_out”, “processor_not_configured”, “rail_refused”).
Example
{ "reason": "sold_out"}The session’s effect authority does not cover this operation
object
Stable, machine-readable reason code (e.g. “sold_out”, “processor_not_configured”, “rail_refused”).
Example
{ "reason": "sold_out"}point_not_found.
invalid_body, invalid_date or unknown_time_zone.
Every source failed (no_source_available); the body carries the per-source errors.
object
no_source_available on 502, else null.
object
A declared weather source. openmeteo_meteoblue and accuweather are declared but have no
adapter yet; they never appear in a pull.
Present when ok.
Present when not ok; carries no URL or secret.
Re-score of that day’s departures at the point; null when no source landed.
object
Example
{ "pulls": [ { "source": "nws" } ]}No durable backend is wired for this operation (fail-closed)
object
Stable, machine-readable reason code (e.g. “sold_out”, “processor_not_configured”, “rail_refused”).
Example
{ "reason": "sold_out"}