Declare a departure point
const url = 'https://quikstik-core.fly.dev/conditions/points';const options = { method: 'POST', headers: { 'x-tenant-id': '2489E9AD-2EE2-8E00-8EC9-32D5F69181C0', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"name":"example","lat":1,"lon":1,"tz":"example"}'};
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/points \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'x-tenant-id: 2489E9AD-2EE2-8E00-8EC9-32D5F69181C0' \ --data '{ "name": "example", "lat": 1, "lon": 1, "tz": "example" }'Session, or an operator key scoped conditions.write held by an Admin/Owner. With an
x-idempotency-key, a retry returns the point already made (200) instead of a 409.
A departure is placed at the point whose name appears in the departure’s meeting-point name
(case-insensitive; the longest matching name wins).
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.
When present, a retry returns the row already made under this key.
Request Bodyrequired
Section titled “Request Bodyrequired”object
Example generated
{ "name": "example", "lat": 1, "lon": 1, "tz": "example"}Responses
Section titled “Responses”Idempotent replay — the point already made under this key.
object
IANA zone
Example
{ "tz": "America/New_York"}Created.
object
IANA zone
Example
{ "tz": "America/New_York"}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"}A point with this name already exists for the tenant (already_exists).
invalid_body, name_required, lat_out_of_range, lon_out_of_range or unknown_time_zone.
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"}