Share links & driver links
Create, label, disable and regenerate public trip links and per-trailer driver links; the driver-side calls that record arrivals, departures and checklist ticks using the link as the credential.
Managing links (planner, authenticated)
| Method | Endpoint | Purpose |
|---|---|---|
GET |
/v1/public/share-list/{trip_id} |
All links of a trip with their URLs and settings |
POST |
/v1/public/share-create/{trip_id} |
kind ∈ public / driver; driver links need trip_trailer_id; label?, show_plates?, show_physics? |
POST |
/v1/public/share-update/{share_id} |
label, show_plates, show_physics, enabled |
POST |
/v1/public/share-regenerate/{share_id} |
New slug; the old URL is dead immediately |
POST |
/v1/public/share-revoke/{share_id} |
Permanently revoked |
Request
POST /v1/public/share-create/1
Authorization: Bearer rp_live_••••••••
Content-Type: application/json
{
"kind": "public",
"show_physics": 1
}
Response 201
{
"success": true,
"share": {
"share_id": 1,
"trip_id": 1,
"whitelabel_id": 10,
"year": 2027,
"slug": "HeNnO1QKx5dRRCE2xcduZQ",
"kind": "public",
"trip_trailer_id": null,
"trailer_name": null,
"label": "",
"show_plate": false,
"show_physics": true,
"enabled": true,
"is_active": true,
"created_by": 1001,
"created_at": 1800000000,
"revoked_at": null,
"last_viewed_at": null,
"view_count": 0,
"path": "/public/load-diagram/10/2027/HeNnO1QKx5dRRCE2xcduZQ"
}
}
Request
POST /v1/public/share-create/1
Authorization: Bearer rp_live_••••••••
Content-Type: application/json
{
"kind": "driver",
"trip_trailer_id": 1,
"label": "Dana — blue trailer"
}
Response 201
{
"success": true,
"share": {
"share_id": 2,
"trip_id": 1,
"whitelabel_id": 10,
"year": 2027,
"slug": "BvhnnnYyFZmat4scnOEqjA",
"kind": "driver",
"trip_trailer_id": 1,
"trailer_name": "40' 4-row / 3-wide shell trailer (template)",
"label": "Dana — blue trailer",
"show_plate": false,
"show_physics": false,
"enabled": true,
"is_active": true,
"created_by": 1001,
"created_at": 1800000000,
"revoked_at": null,
"last_viewed_at": null,
"view_count": 0,
"path": "/public/driver/BvhnnnYyFZmat4scnOEqjA"
}
}
Request
GET /v1/public/share-list/1
Authorization: Bearer rp_live_••••••••
Response 200
{
"success": true,
"shares": [
{
"share_id": 1,
"trip_id": 1,
"whitelabel_id": 10,
"year": 2027,
"slug": "HeNnO1QKx5dRRCE2xcduZQ",
"kind": "public",
"trip_trailer_id": null,
"trailer_name": null,
"label": "",
"show_plate": false,
"show_physics": true,
"enabled": true,
"is_active": true,
"created_by": 1001,
"created_at": 1800000000,
"revoked_at": null,
"last_viewed_at": null,
"view_count": 0,
"path": "/public/load-diagram/10/2027/HeNnO1QKx5dRRCE2xcduZQ"
},
{
"share_id": 2,
"trip_id": 1,
"whitelabel_id": 10,
"year": 2027,
"slug": "BvhnnnYyFZmat4scnOEqjA",
"kind": "driver",
"trip_trailer_id": 1,
"trailer_name": "40' 4-row / 3-wide shell trailer (template)",
"label": "Dana — blue trailer",
"show_plate": false,
"show_physics": false,
"enabled": true,
"is_active": true,
"created_by": 1001,
"created_at": 1800000000,
"revoked_at": null,
"last_viewed_at": null,
"view_count": 0,
"path": "/public/driver/BvhnnnYyFZmat4scnOEqjA"
}
],
"trailers": [
{
"id": 1,
"trip_id": 1,
"trailer_id": 1,
"tow_vehicle_id": 1,
"driver_name": "Dana Rivers",
"driver_phone": "+1 555 0100",
"sort_order": 0,
"trailer_name": "40' 4-row / 3-wide shell trailer (template)"
}
],
"events": [],
"can_edit": true
}
The public page is /public/load-diagram/{club}/{year}/{slug} and the driver page /public/driver/{slug}; both are plain HTML, need no sign-in, and answer the same neutral 404 for unknown, disabled or revoked slugs (RP-730).
Driver-link actions
These are unauthenticated: the driver-link slug in the URL is the credential. A client first loads /public/driver/{slug} (which sets a session and CSRF token) and then sends X-CSRF-Token with each POST, exactly like the driver page does. Updates are rate-limited per link (RP-739, 429) and refused once the trip is completed or cancelled (RP-741).
| Method | Endpoint | Purpose |
|---|---|---|
POST |
/v1/public/driver-arrived/{slug} |
stop_id → stamps actual_arrival_at, advances the current leg |
POST |
/v1/public/driver-departed/{slug} |
stop_id → stamps actual_departure_at |
POST |
/v1/public/driver-undo/{slug} |
stop_id, which ∈ arrival / departure |
POST |
/v1/public/driver-check/{slug} |
kind ∈ boat / item, id, stop_id, state ∈ loaded / unloaded / clear |
Request
POST /v1/public/driver-arrived/BvhnnnYyFZmat4scnOEqjA
X-CSRF-Token: 465bd80c12365d681170cde16d3371e8b0bdd90124a6b86d74e738424a1f0a7d
Content-Type: application/json
{
"stop_id": 2
}
Response 200
{
"success": true,
"stop": {
"stop_id": 2,
"trip_id": 1,
"sort_order": 1,
"type": "pickup",
"name": "Podunk RC",
"address_text": null,
"lat": null,
"lng": null,
"timezone": null,
"planned_arrival_at": null,
"planned_departure_at": null,
"actual_arrival_at": 1800000000,
"actual_departure_at": null,
"stay_minutes": null,
"show_publicly": true,
"notes": null,
"source": "manual",
"created_at": "2027-01-15 08:00:00",
"updated_at": "2027-01-15 08:00:00",
"is_cargo_stop": true,
"effective_timezone": "America/New_York",
"planned_arrival_at_local": null,
"planned_arrival_at_display": null,
"planned_departure_at_local": null,
"planned_departure_at_display": null,
"actual_arrival_at_local": "2027-01-15T03:00:00-05:00",
"actual_arrival_at_display": "Fri, Jan 15, 2027 3:00 AM EST",
"actual_departure_at_local": null,
"actual_departure_at_display": null,
"tz_abbr": "EST"
},
"action": "arrived"
}
Every action is logged as a driver event (driver_events) and shown to planners under Driver activity on the share page.