SDK reference

Maps and flight watches

Each route's function in the SDK, its call beside the same request in cURL.
orgMapsCars

GET/v1/orgs/:orgId/maps/cars

{ cars }: the cars you see, where you may see them (Vehicles' sharing rules), with their state, battery and picture. Empty where Vehicles isn't available.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/cars' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postOrgMapsCarsTrails

POST/v1/orgs/:orgId/maps/cars/trails

Where the cars you see have been: each car's drive so far, or its last drive when it parked recently, as Vehicles shows it to you; null for a car with nothing to show (whatever the reason). Each ask says what you hold, so the answer has only what's new.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/cars/trails' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "cars": [
      {
        "vehicleId": "<vehicleId>"
      }
    ]
  }'
orgMapsTimeline

GET/v1/orgs/:orgId/maps/timeline

One page of what happened between from and to (ISO dates or epoch milliseconds, at most 31 days): { range, items, sources, next?, keeps }. sources (vehicles, flights, people; all by default) picks what is read. next.to asks for the earlier part.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/timeline' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgMapsLayers

GET/v1/orgs/:orgId/maps/layers

{ layers: { photos, events, traffic, tasks } }: which of the map's other layers you may turn on here: scopes and the org's app switches.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/layers' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgMapsLayersPhotosByPhotoId

GET/v1/orgs/:orgId/maps/layers/photos/:photoId

A photo's card on the map: { photo: { photoId, kind, takenAt, thumbUrl? } }, for one of your own located photos.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/layers/photos/{photoId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgMapsLayersByLayer

GET/v1/orgs/:orgId/maps/layers/:layer

A layer's things (LayerAnswer): photos (your own, in bbox), events (your events from yesterday to a month ahead, at their places), traffic (your organisation's Cloud traffic by country, the last 7 days) or tasks (your organisation's Tasks issues with a place in bbox, as you can open them in Tasks; spaces (keys) and status (todo, inprogress, done) filter them, open work by default). bbox is west,south,east,north; the answer's box says what it covers (everywhere for events and traffic). state: "off" where it isn't yours to see here.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/layers/{layer}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgMapsTimelineDrivesByTripId

GET/v1/orgs/:orgId/maps/timeline/drives/:vehicleId/:tripId

A drive on the timeline with its track, for playback: as Vehicles' drive detail answers it, for a drive you see.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/timeline/drives/{vehicleId}/{tripId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postOrgMapsTimelineRoads

POST/v1/orgs/:orgId/maps/timeline/roads

Drives' lines on the roads they took ({ drives: [{ vehicleId, tripId }] }, up to 50): { roads: { [tripId]: stretches | "pending" | null } }. Display only.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/timeline/roads' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "drives": [
      {
        "vehicleId": "<vehicleId>",
        "tripId": "<tripId>"
      }
    ]
  }'
postOrgMapsDirections

POST/v1/orgs/:orgId/maps/directions

Directions: { from, to, mode } (drive with live traffic, walk, cycle) answers { routes } (the best and up to two alternatives, with steps; a drive's traffic) or { error: "no_route" | "too_far" | "unavailable" }. POST, so the points stay out of URLs and logs; they go to Mapbox for this request only. Counted per person per hour (maps.directions.routesPerHour): past it, 429 with Retry-After.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/directions' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "from": {
      "lat": 1,
      "lon": 1
    },
    "to": {
      "lat": 1,
      "lon": 1
    },
    "mode": "drive"
  }'
orgMapsRoads

GET/v1/orgs/:orgId/maps/roads

{ on, available }: whether you draw drives on the roads they took (on unless you turned it off), and whether there are drives here.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/roads' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
putOrgMapsRoads

PUT/v1/orgs/:orgId/maps/roads

Draws drives on the roads they took, or as driven ({ on }): your choice, shared with Vehicles' Display.

Parameters and answers
curl -X PUT 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/roads' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "on": true
  }'
orgMapsConfig

GET/v1/orgs/:orgId/maps/config

What the apps need to draw: the ADS-B source and its credit line, preset areas, event types, channels (mobile, web, email, sms, call: available or not, and their labels), what a new watch gets by default for the caller (defaults: events, channels, smsEvents), the Mapbox public token for the native map with the Referer it may need (mapbox), and for texts whether the SMS account is still in the provider's sandbox and where the caller's own texts go (masked). For circling and approach alerts: aircraft classes, enabled aircraft presets, the org's locations, circling sensitivity presets and approach defaults. units: the caller's units for measurements (the org's setting with their own on top; /settings).

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/config' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgMapsSettings

GET/v1/orgs/:orgId/maps/settings

Maps settings: the units measurements show in (speed kt | km/h | mph, altitude ft | m, distance nm | km | mi). units is what the caller sees, org.units the org's setting and mine.units the caller's own (each only what it sets; unset is knots, feet, nautical miles).

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/settings' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
putOrgMapsSettings

PUT/v1/orgs/:orgId/maps/settings

The org's units, for everyone without their own (org owners and admins, or a key, with maps:write). A unit left out goes back to the default.

Parameters and answers
curl -X PUT 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/settings' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
putOrgMapsSettingsMe

PUT/v1/orgs/:orgId/maps/settings/me

The caller's own units, in every org, over the org's ({ units: null } follows the org again). People only.

Parameters and answers
curl -X PUT 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/settings/me' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgMapsAircraft

GET/v1/orgs/:orgId/maps/aircraft

Live aircraft inside bbox (west,south,east,north), from the flight poller's latest snapshot: position, barometric altitude (null on the ground), ground speed, track, vertical rate, callsign, registration, type, squawk, icon class and, with trails=1, the last 15 minutes of track. Also returns the source, its credit line and the areas polled. Views outside the polled areas are added to the poller's areas for a few minutes.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/aircraft' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgMapsAircraftNearest

GET/v1/orgs/:orgId/maps/aircraft/nearest

The nearest aircraft in the air to a point, and the next two (the phone's nearest-aircraft widget): which way each is from the point (bearingDeg, compass), how far (rangeM), its altitude (ft), speed (kt), track and phase, and, while it descends, when it should land (landing.at, unix seconds) and at which airport when one lies ahead on its track. The point is rounded to about 100 m and never stored or logged; like a map view, an area outside the polled ones is covered for a few minutes from now (pending until it is). units: the caller's Maps units, for showing the numbers.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/aircraft/nearest?lat=1&lon=1' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgMapsAircraftByHex

GET/v1/orgs/:orgId/maps/aircraft/:hex

One aircraft wherever it is, with its recent track: live from the snapshot (live: true), else its last known position and the track before it from recorded positions (live: false, lastSeen), or aircraft: null when nothing is known. When it isn't live the poller looks it up by hex for a few minutes (pending).

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/aircraft/{hex}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgMapsAircraftTrack

GET/v1/orgs/:orgId/maps/aircraft/:hex/track

Recorded track of a watched aircraft over the last hours (0.25–24, default 6): points [seconds, lon, lat, altitude ft | null, ground speed kt, track°], oldest first. Positions are recorded only while a watch covers the aircraft (kept 14 days).

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/aircraft/{hex}/track' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgMapsLists

GET/v1/orgs/:orgId/maps/lists

Saved maps the caller can see: their own, and those shared with the organization or by link. With places=1, each map includes its places.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/lists' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postOrgMapsLists

POST/v1/orgs/:orgId/maps/lists

Creates a saved map: name, optional description, pin color (chart-1…chart-5, foreground), icon and sharing (private, org, link).

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/lists' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgMapsListsByListId

GET/v1/orgs/:orgId/maps/lists/:listId

A saved map with its places.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/lists/{listId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
patchOrgMapsListsByListId

PATCH/v1/orgs/:orgId/maps/lists/:listId

Renames a map or changes its description, pin style or sharing. sharing: "link" returns a shareToken for the public link; rotateLink: true replaces it; any other sharing turns the link off. Owner, or an org admin for shared maps.

Parameters and answers
curl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/lists/{listId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
deleteOrgMapsListsByListId

DELETE/v1/orgs/:orgId/maps/lists/:listId

Deletes a map and its places.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/lists/{listId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postOrgMapsListsPlaces

POST/v1/orgs/:orgId/maps/lists/:listId/places

Adds a place: name, lat, lon, optional note, address, and its own pin color and icon.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/lists/{listId}/places' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
patchOrgMapsListsPlacesByPlaceId

PATCH/v1/orgs/:orgId/maps/lists/:listId/places/:placeId

Changes a place; moveTo moves it to another of your maps.

Parameters and answers
curl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/lists/{listId}/places/{placeId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
deleteOrgMapsListsPlacesByPlaceId

DELETE/v1/orgs/:orgId/maps/lists/:listId/places/:placeId

Removes a place.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/lists/{listId}/places/{placeId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgMapsWatches

GET/v1/orgs/:orgId/maps/watches

Flight watches the caller can see (their own and those shared with the organization).

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/watches' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postOrgMapsWatches

POST/v1/orgs/:orgId/maps/watches

Creates a flight watch: name, targets ({ kind: hex | registration | callsign | type, value }, a trailing * matches prefixes; no_callsign, any (value *) and class (helicopter, light, turboprop, jet, heavy, glider, balloon, drone) match inside areas only and need one; preset names an aircraft preset), exclude (the same shape: aircraft matching any never match, e.g. callsign POL3* except POL31), areas ({ kind: "preset", id: "au-vic" }, circles { center: [lon, lat], radiusKm }, polygons { ring: [[lon, lat], …] }, an org location { kind: "location", locationId, radiusKm } or { kind: "near_me", radiusKm } around the owner's phone, which makes the watch personal: private, the owner's only, no groups or people), limitToAreas, events (on/off per event type; approach and overhead need a location or near-me area), settings (signal, orbit with maxAltitudeFt, loiterMinutes and ignoreAirportsKm, approach, roads, thresholds), notify (channels: mobile, web, email, sms, call, with the older push read as mobile and web; includeOwner, groupIds, userIds (org members), liveActivity (an iOS Live Activity from takeoff to landing for recipients with mobile push, on by default), liveActivityPeople (per recipient user id: island, its alerts instead of push, email and SMS for this watch, quiet, without alerts, or off; everyone else gets alerts), smsEvents, smsFormat, smsPrefix, cooldownMinutes, timeZone, quietHours), identity (mode: any or pin_first; pinnedHex), lifetime (startsAt, endsAt or forHours, maxNotifications, maxFlights, schedule with days, start, end, timeZone) and log (enabled, retentionDays, null for forever). Type targets match inside the watch's areas. Left out, every event is on and channels are the caller's defaults (GET …/maps/config → defaults). The maker gets a confirmation by push when they're a recipient. See Maps → Flight watches for every setting and its default.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/watches' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgMapsWatchesByWatchId

GET/v1/orgs/:orgId/maps/watches/:watchId

A flight watch with every setting, defaults filled in. A near-me watch without a current location reads status: "waiting_location".

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/watches/{watchId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgMapsWatchPeople

GET/v1/orgs/:orgId/maps/watch-people

The people a watch's recipients reach with mobile push, who can get its Live Activity (the editors' list): includeOwner (0 or 1), groupIds and userIds (comma-separated), personal (1: a near me watch) and watchId (whose owner is the owner; else the caller). people (owner first, with owner, named and groups) and hiddenGroups, whose members only their owner and admins see.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/watch-people' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
patchOrgMapsWatchesByWatchId

PATCH/v1/orgs/:orgId/maps/watches/:watchId

Changes a watch: fields sent replace the stored ones (nested objects whole; a notify without membershipNotices, liveActivity or liveActivityPeople keeps them). Owner, or an org admin for shared watches.

Parameters and answers
curl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/watches/{watchId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
patchOrgMapsWatchesLiveActivity

PATCH/v1/orgs/:orgId/maps/watches/:watchId/live-activity

Sets who gets the watch's Live Activity, keeping every other setting: liveActivity (the watch's switch; off ends running ones), everyone (one choice for every recipient the watch reaches now) and people, per recipient user id, applied after it: alerts (the default), island (the same alerts instead of push, email and SMS for this watch; by mobile push when no activity can show it), quiet (no sound, vibration or expanded Dynamic Island) or off (none; a running one ends). People left out keep theirs. Choices are for the watch's recipients: its owner, people named and group members.

Parameters and answers
curl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/watches/{watchId}/live-activity' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postOrgMapsWatchesPause

POST/v1/orgs/:orgId/maps/watches/:watchId/pause

Pauses a watch: the poller stops evaluating it and nothing is sent.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/watches/{watchId}/pause' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postOrgMapsWatchesResume

POST/v1/orgs/:orgId/maps/watches/:watchId/resume

Resumes a paused watch.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/watches/{watchId}/resume' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postOrgMapsWatchesRestart

POST/v1/orgs/:orgId/maps/watches/:watchId/restart

Starts an ended watch again (it ended at its end time, or after its notification or flight limit) with its counters at zero. A watch whose end time has passed needs a new one (or none) first.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/watches/{watchId}/restart' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postOrgMapsWatchesTest

POST/v1/orgs/:orgId/maps/watches/:watchId/test

Sends the caller a sample alert on the watch's channels that reach them and returns what each did: mobile (devices: phones with the Maps app, queued), web (sent, devices), email (sent), sms (sent, or skipped with why) and call (skipped). People only; maps:write, or the watch's owner.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/watches/{watchId}/test' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgMapsWatchesFlights

GET/v1/orgs/:orgId/maps/watches/:watchId/flights

Flights the watch logged, newest first: airframe (hex, registration, callsign, type), start (takeoff or first_seen) and end (landing, lost, left, watch_ended, schedule), status (in_progress, completed, ended), distance, highest altitude, events and roads followed. hex filters to one airframe; pass the returned cursor for older ones.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/watches/{watchId}/flights' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgMapsWatchesFlightsByFlightId

GET/v1/orgs/:orgId/maps/watches/:watchId/flights/:flightId

One logged flight with its track (points: [seconds, lon, lat, altitude ft | null, ground speed kt, track°]).

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/watches/{watchId}/flights/{flightId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgMapsWatchesFlightsExport

GET/v1/orgs/:orgId/maps/watches/:watchId/flights/:flightId/export

A logged flight as a file: format=gpx (track and events as waypoints), kml (line and time-stamped track) or csv (one row per position, events alongside).

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/watches/{watchId}/flights/{flightId}/export' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
deleteOrgMapsWatchesByWatchId

DELETE/v1/orgs/:orgId/maps/watches/:watchId

Deletes a watch and its flight logs. Its events expire after 30 days.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/watches/{watchId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgMapsWatchesEvents

GET/v1/orgs/:orgId/maps/watches/:watchId/events

A watch's events, newest first (kept 30 days): type, aircraft, position, text, and what happened to the notification (sent with channels, quiet, no_recipients, failed). Pass the returned cursor for older ones.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/watches/{watchId}/events' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgMapsEvents

GET/v1/orgs/:orgId/maps/events

Recent events across the watches the caller can see, newest first.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/events' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgMapsIncidents

GET/v1/orgs/:orgId/maps/incidents

Emergency incidents and warnings (Australia), from the incidents poller's picture: filtered to a view (bbox), hazards (hazards=bushfire,flood) and a minimum level (minLevel); sorted by distance from near=lon,lat (adds distanceKm), else most severe first; areas=0 leaves out warning areas (lists); limit. feeds carries each feed's credit line and licence. Answers 304 to a matching If-None-Match.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/incidents' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgMapsIncidentsFeeds

GET/v1/orgs/:orgId/maps/incidents/feeds

The emergency feeds in use: credit lines, licences, when each was last read and whether it's working.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/incidents/feeds' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgMapsIncidentsByIncidentId

GET/v1/orgs/:orgId/maps/incidents/:incidentId

One incident (or its last version if it has ended) with its history of changes, newest first.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/incidents/{incidentId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgMapsZonesConfig

GET/v1/orgs/:orgId/maps/zones/config

Hazards, levels, zone events, states and a new zone's defaults for the caller.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/zones/config' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgMapsZones

GET/v1/orgs/:orgId/maps/zones

Watch zones: areas where emergency incidents and warnings alert (those the caller can see).

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/zones' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postOrgMapsZones

POST/v1/orgs/:orgId/maps/zones

Creates a watch zone: areas (circle, polygon, location, near_me or state; up to 10), hazards (empty: all), minLevel, events and notify (channels, people, groups, smsEvents, smsMinLevel, quiet hours with allowLevels). Channels left out get the caller's defaults.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/zones' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgMapsZonesByZoneId

GET/v1/orgs/:orgId/maps/zones/:zoneId

One watch zone, with its status (active, paused or waiting_location for a near-me zone without a current location).

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/zones/{zoneId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
patchOrgMapsZonesByZoneId

PATCH/v1/orgs/:orgId/maps/zones/:zoneId

Changes a watch zone (its owner, or an org admin for org zones): fields sent replace the stored ones.

Parameters and answers
curl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/zones/{zoneId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postOrgMapsZonesPause

POST/v1/orgs/:orgId/maps/zones/:zoneId/pause

Pauses a watch zone: nothing is checked or sent until it's resumed.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/zones/{zoneId}/pause' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postOrgMapsZonesResume

POST/v1/orgs/:orgId/maps/zones/:zoneId/resume

Resumes a paused watch zone.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/zones/{zoneId}/resume' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postOrgMapsZonesTest

POST/v1/orgs/:orgId/maps/zones/:zoneId/test

Sends the caller a sample alert on the zone's channels that reach them; per-channel results.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/zones/{zoneId}/test' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgMapsZonesEvents

GET/v1/orgs/:orgId/maps/zones/:zoneId/events

A watch zone's alerts, newest first (limit, cursor): the change, the incident as it was, the distance and what was sent. Kept 30 days (7 for near-me zones).

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/zones/{zoneId}/events' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
deleteOrgMapsZonesByZoneId

DELETE/v1/orgs/:orgId/maps/zones/:zoneId

Deletes a watch zone. Its alerts expire on their own.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/zones/{zoneId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgMapsZoneEvents

GET/v1/orgs/:orgId/maps/zone-events

Recent zone alerts across the zones the caller can see.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/zone-events' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgMapsLocations

GET/v1/orgs/:orgId/maps/locations

The org's alert locations: locationId, name, lat, lon, siteRadiusM (within it counts as on site), address, note, icon, color, ownerId.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/locations' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postOrgMapsLocations

POST/v1/orgs/:orgId/maps/locations

Creates an alert location: name, lat, lon, siteRadiusM (50–5,000 m, default 300), optional address, note, icon, color. Up to 50 per organization.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/locations' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgMapsLocationsByLocationId

GET/v1/orgs/:orgId/maps/locations/:locationId

One alert location.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/locations/{locationId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
patchOrgMapsLocationsByLocationId

PATCH/v1/orgs/:orgId/maps/locations/:locationId

Changes an alert location; fields sent replace the stored ones. Moving it moves every watch that uses it. Its owner or an org admin.

Parameters and answers
curl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/locations/{locationId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
deleteOrgMapsLocationsByLocationId

DELETE/v1/orgs/:orgId/maps/locations/:locationId

Deletes an alert location. 409, naming them, while watches use it. Its owner or an org admin.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/locations/{locationId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgMapsLocationsWatches

GET/v1/orgs/:orgId/maps/locations/:locationId/watches

Watches that alert near a location (watchId, name), those the caller can see.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/locations/{locationId}/watches' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgMapsGroups

GET/v1/orgs/:orgId/maps/groups

Notification groups with counts of active, pending and unsubscribed recipients.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/groups' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postOrgMapsGroups

POST/v1/orgs/:orgId/maps/groups

Creates a notification group (name).

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/groups' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgMapsGroupsByGroupId

GET/v1/orgs/:orgId/maps/groups/:groupId

A group and, for its owner and org admins, its recipients.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/groups/{groupId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
patchOrgMapsGroupsByGroupId

PATCH/v1/orgs/:orgId/maps/groups/:groupId

Renames a group.

Parameters and answers
curl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/groups/{groupId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
deleteOrgMapsGroupsByGroupId

DELETE/v1/orgs/:orgId/maps/groups/:groupId

Deletes a group and its recipients. Watches that used it stop sending to them.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/groups/{groupId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postOrgMapsGroupsMembers

POST/v1/orgs/:orgId/maps/groups/:groupId/members

Adds a recipient: an organization member ({ kind: "user", userId }, active at once) or anyone ({ kind: "contact", name?, email?, phone? } with phone in E.164), who is asked to confirm first and stays pending until they do. channels limits what they get.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/groups/{groupId}/members' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
patchOrgMapsGroupsMembersByMemberId

PATCH/v1/orgs/:orgId/maps/groups/:groupId/members/:memberId

Changes a recipient's name or channels.

Parameters and answers
curl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/groups/{groupId}/members/{memberId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postOrgMapsGroupsMembersResend

POST/v1/orgs/:orgId/maps/groups/:groupId/members/:memberId/resend

Asks a pending recipient to confirm again (at most three times, an hour apart).

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/groups/{groupId}/members/{memberId}/resend' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
deleteOrgMapsGroupsMembersByMemberId

DELETE/v1/orgs/:orgId/maps/groups/:groupId/members/:memberId

Removes a recipient.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/groups/{groupId}/members/{memberId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgMapsPush

GET/v1/orgs/:orgId/maps/push

Where the caller's alerts can go: browsers with web push on, one per browser (subscriptions: subId, app, label, host, createdAt, lastUsedAt; turned on with POST /v1/me/notifications/web-push) and phones that get Maps alerts (phones: deviceId, appId maps, or home on phones without the Maps app, name, model, platform, appVersion, updatedAt).

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/push' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postOrgMapsPushTest

POST/v1/orgs/:orgId/maps/push/test

Sends the caller a sample alert on their phones (Maps app) and browsers: mobile (devices, queued) and web (sent, devices).

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/push/test' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
deleteOrgMapsPushSubscriptionsBySubId

DELETE/v1/orgs/:orgId/maps/push/subscriptions/:subId

Turns web push off in one of the caller's browsers, for every app there. People only; another person's id changes nothing.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/push/subscriptions/{subId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgMapsRecipients

GET/v1/orgs/:orgId/maps/recipients

Recipient lists (Force → Recipients): each list's listId (a notification group's id), name, ownerId, counts of active, pending and unsubscribed members and canEdit.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/recipients' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postOrgMapsRecipients

POST/v1/orgs/:orgId/maps/recipients

Creates a recipient list (name); answers it as GET …/recipients/:listId does.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/recipients' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgMapsRecipientsByListId

GET/v1/orgs/:orgId/maps/recipients/:listId

A recipient list and, for its owner and org admins, its members (memberId, kind person or contact, userId, name, email, phone, status). Never a member's token.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/recipients/{listId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
patchOrgMapsRecipientsByListId

PATCH/v1/orgs/:orgId/maps/recipients/:listId

Renames a recipient list.

Parameters and answers
curl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/recipients/{listId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
deleteOrgMapsRecipientsByListId

DELETE/v1/orgs/:orgId/maps/recipients/:listId

Deletes a recipient list and its members; rules and watches stop telling them.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/recipients/{listId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postOrgMapsRecipientsMembers

POST/v1/orgs/:orgId/maps/recipients/:listId/members

Adds a member: an organization member ({ kind: "user", userId }) or anyone by email or phone ({ kind: "contact", name?, email?, phone? }), who is asked to confirm first. Answers memberId and whether the request to confirm went (invited).

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/recipients/{listId}/members' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postOrgMapsRecipientsMembersResend

POST/v1/orgs/:orgId/maps/recipients/:listId/members/:memberId/resend

Asks a pending member to confirm again (at most three times, an hour apart).

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/recipients/{listId}/members/{memberId}/resend' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
deleteOrgMapsRecipientsMembersByMemberId

DELETE/v1/orgs/:orgId/maps/recipients/:listId/members/:memberId

Removes a member from a recipient list.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/maps/recipients/{listId}/members/{memberId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
mapsRenderer

GET/v1/maps/renderer

The map renderer Maps pages draw with: { renderer: "mapbox" }, or { renderer: "maplibre", tiles, glyphs } with the hosted basemap's public URLs. Mapbox whenever the hosted basemap isn't set up.

Parameters and answers
curl 'https://api.cactive.com.au/v1/maps/renderer' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postMapsLoads

POST/v1/maps/loads

Counts a page's map loads (reports: up to two of { renderer, loads, session, end }, at most 100 loads each). No org, person or page is recorded. 204 once counted, 400 for anything else.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/maps/loads' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
meMapsLocation

GET/v1/me/maps/location

Your location for near-me alerts: sharing, the phones sharing (devices: deviceId, platform, name, mode foreground or background, retentionHours, enabledAt, lastReportAt), the current fix (current: lat, lon to 3 decimals, accuracyM, at, deviceName, validUntil, or null) and the near-me watches using it (usedBy). From the Maps or mobile apps only.

Parameters and answers
curl 'https://api.cactive.com.au/v1/me/maps/location' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
putMeMapsLocationDevicesByDeviceId

PUT/v1/me/maps/location/devices/:deviceId

Turns sharing on for this phone or changes it: platform, name, mode (foreground: counts 30 minutes after each report; background: retentionHours 1, 6 or 24 after the last report). A background phone gets its report key (key, si_loc_…) once. Mobile app tokens only, tied to their sign-in.

Parameters and answers
curl -X PUT 'https://api.cactive.com.au/v1/me/maps/location/devices/{deviceId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postMeMapsLocationDevicesReport

POST/v1/me/maps/location/devices/:deviceId/report

Reports this phone's location: lat, lon, accuracyM, at (ms; at most 10 minutes old), source (foreground, significant, region, open). Stored to 3 decimals, accuracy at least 50 m, one current fix per phone; 204 when dropped (one report per 20 s). Mobile app tokens only.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/me/maps/location/devices/{deviceId}/report' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
deleteMeMapsLocationDevicesByDeviceId

DELETE/v1/me/maps/location/devices/:deviceId

Stops sharing on one phone: its fix and key are deleted.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/me/maps/location/devices/{deviceId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
deleteMeMapsLocation

DELETE/v1/me/maps/location

Deletes your location everywhere: every phone's fix, the phones and their keys. Near-me watches wait until a phone shares again.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/me/maps/location' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
meMapsLocationActivity

GET/v1/me/maps/location/activity

Your own log of turning sharing on, background on, stopping, deleting and phones removed at sign-out (action, at, deviceName), kept 90 days. Never coordinates.

Parameters and answers
curl 'https://api.cactive.com.au/v1/me/maps/location/activity' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
meMapsCars

GET/v1/me/maps/cars

{ cars }: the cars you see, where you may see them (Vehicles' sharing rules), with their state, battery and picture. Empty where Vehicles isn't available.

Parameters and answers
curl 'https://api.cactive.com.au/v1/me/maps/cars' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postMeMapsCarsTrails

POST/v1/me/maps/cars/trails

Where the cars you see have been: each car's drive so far, or its last drive when it parked recently, as Vehicles shows it to you; null for a car with nothing to show (whatever the reason). Each ask says what you hold, so the answer has only what's new.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/me/maps/cars/trails' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "cars": [
      {
        "vehicleId": "<vehicleId>"
      }
    ]
  }'
meMapsTimeline

GET/v1/me/maps/timeline

One page of what happened between from and to (ISO dates or epoch milliseconds, at most 31 days): { range, items, sources, next?, keeps }. sources (vehicles, flights, people; all by default) picks what is read. next.to asks for the earlier part.

Parameters and answers
curl 'https://api.cactive.com.au/v1/me/maps/timeline' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
meMapsLayers

GET/v1/me/maps/layers

{ layers: { photos, events, traffic, tasks } }: which of the map's other layers you may turn on here: scopes and the org's app switches.

Parameters and answers
curl 'https://api.cactive.com.au/v1/me/maps/layers' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
meMapsLayersPhotosByPhotoId

GET/v1/me/maps/layers/photos/:photoId

A photo's card on the map: { photo: { photoId, kind, takenAt, thumbUrl? } }, for one of your own located photos.

Parameters and answers
curl 'https://api.cactive.com.au/v1/me/maps/layers/photos/{photoId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
meMapsLayersByLayer

GET/v1/me/maps/layers/:layer

A layer's things (LayerAnswer): photos (your own, in bbox), events (your events from yesterday to a month ahead, at their places), traffic (your organisation's Cloud traffic by country, the last 7 days) or tasks (your organisation's Tasks issues with a place in bbox, as you can open them in Tasks; spaces (keys) and status (todo, inprogress, done) filter them, open work by default). bbox is west,south,east,north; the answer's box says what it covers (everywhere for events and traffic). state: "off" where it isn't yours to see here.

Parameters and answers
curl 'https://api.cactive.com.au/v1/me/maps/layers/{layer}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
meMapsTimelineDrivesByTripId

GET/v1/me/maps/timeline/drives/:vehicleId/:tripId

A drive on the timeline with its track, for playback: as Vehicles' drive detail answers it, for a drive you see.

Parameters and answers
curl 'https://api.cactive.com.au/v1/me/maps/timeline/drives/{vehicleId}/{tripId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postMeMapsTimelineRoads

POST/v1/me/maps/timeline/roads

Drives' lines on the roads they took ({ drives: [{ vehicleId, tripId }] }, up to 50): { roads: { [tripId]: stretches | "pending" | null } }. Display only.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/me/maps/timeline/roads' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "drives": [
      {
        "vehicleId": "<vehicleId>",
        "tripId": "<tripId>"
      }
    ]
  }'
postMeMapsDirections

POST/v1/me/maps/directions

Directions: { from, to, mode } (drive with live traffic, walk, cycle) answers { routes } (the best and up to two alternatives, with steps; a drive's traffic) or { error: "no_route" | "too_far" | "unavailable" }. POST, so the points stay out of URLs and logs; they go to Mapbox for this request only. Counted per person per hour (maps.directions.routesPerHour): past it, 429 with Retry-After.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/me/maps/directions' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "from": {
      "lat": 1,
      "lon": 1
    },
    "to": {
      "lat": 1,
      "lon": 1
    },
    "mode": "drive"
  }'
meMapsRoads

GET/v1/me/maps/roads

{ on, available }: whether you draw drives on the roads they took (on unless you turned it off), and whether there are drives here.

Parameters and answers
curl 'https://api.cactive.com.au/v1/me/maps/roads' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
putMeMapsRoads

PUT/v1/me/maps/roads

Draws drives on the roads they took, or as driven ({ on }): your choice, shared with Vehicles' Display.

Parameters and answers
curl -X PUT 'https://api.cactive.com.au/v1/me/maps/roads' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "on": true
  }'
meFindmyEta

GET/v1/me/findmy/eta

{ mine, shared }: the person's own trips that still run, with who sees them, and the trips shared with them (and offers).

Parameters and answers
curl 'https://api.cactive.com.au/v1/me/findmy/eta' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postMeFindmyEta

POST/v1/me/findmy/eta

Starts sharing a trip: { to: { lat, lon, name? }, mode, durationS, etaAt, remainingM, position?, recipients: [userId] }. 201 { trip, shared }.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/me/findmy/eta' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "to": {
      "lat": 1,
      "lon": 1
    },
    "mode": "drive",
    "durationS": 1,
    "etaAt": 1,
    "remainingM": 1,
    "recipients": [
      "example"
    ]
  }'
meFindmyEtaByTripId

GET/v1/me/findmy/eta/:tripId

A trip: { mine } for its sharer, { shared } for someone it's shared with (or an offer to accept), else 404.

Parameters and answers
curl 'https://api.cactive.com.au/v1/me/findmy/eta/{tripId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postMeFindmyEtaProgress

POST/v1/me/findmy/eta/:tripId/progress

The sharer's progress: { lat, lon, accuracyM?, etaAt, remainingM }. Near the destination it arrives. { trip }.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/me/findmy/eta/{tripId}/progress' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "lat": 1,
    "lon": 1,
    "etaAt": 1,
    "remainingM": 1
  }'
postMeFindmyEtaKey

POST/v1/me/findmy/eta/:tripId/key

A key for this phone to post the trip's progress while Maps is closed, from a phone's own sign-in only. { key, validUntil }: the key once (it replaces the trip's last), working until the trip ends, the person hides their location or the phone signs out. 409 when the trip has ended or the location is hidden.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/me/findmy/eta/{tripId}/key' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postMeFindmyEtaRecipients

POST/v1/me/findmy/eta/:tripId/recipients

Shares a running trip with more people: { recipients: [userId] }. { trip, shared }.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/me/findmy/eta/{tripId}/recipients' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "recipients": [
      "example"
    ]
  }'
deleteMeFindmyEtaRecipientsByUserId

DELETE/v1/me/findmy/eta/:tripId/recipients/:userId

Stops sharing a trip with one person, at once.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/me/findmy/eta/{tripId}/recipients/{userId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postMeFindmyEtaExtend

POST/v1/me/findmy/eta/:tripId/extend

Shares a running trip for longer: { minutes } (5 to 1,440), up to maps.eta.hoursMax after its start. { trip }.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/me/findmy/eta/{tripId}/extend' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "minutes": 1
  }'
postMeFindmyEtaLinks

POST/v1/me/findmy/eta/:tripId/links

A link to the trip for someone without an account: 201 { url, link, trip }. The address is answered this once (the token is in its fragment) for the person to send themselves; it ends with the trip, or when they end it.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/me/findmy/eta/{tripId}/links' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
deleteMeFindmyEtaFollowing

DELETE/v1/me/findmy/eta/:tripId/following

Stops following someone's trip (the share given back).

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/me/findmy/eta/{tripId}/following' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
deleteMeFindmyEtaByTripId

DELETE/v1/me/findmy/eta/:tripId

Stops sharing a trip with everyone, at once.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/me/findmy/eta/{tripId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
meFindmyPeople

GET/v1/me/findmy/people

{ me, people }: the person, and everyone they share with, who shares with them, or who asked; where each is, as they may see it.

Parameters and answers
curl 'https://api.cactive.com.au/v1/me/findmy/people' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
meFindmyWidgetPeople

GET/v1/me/findmy/widget/people

Home's People widget: { people }, everyone who shares with the person, most recently seen first (10 at most): when, and where in words ("At Mum's", "Near your Work", or their own place names when they show them on an exact share) or how far from lat/lon (where the phone is, optional). No coordinates; each look is a use, as People's.

Parameters and answers
curl 'https://api.cactive.com.au/v1/me/findmy/widget/people' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
meFindmyWidgetDevices

GET/v1/me/findmy/widget/devices

Home's Devices widget: { phones, cars }, the person's own phones and the cars they see, with battery and when last seen. No positions.

Parameters and answers
curl 'https://api.cactive.com.au/v1/me/findmy/widget/devices' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
putMeFindmyPlaceNames

PUT/v1/me/findmy/place-names

"Show my place names to people I share with" ({ on }): their own places' names, to exact shares only. Answers me.

Parameters and answers
curl -X PUT 'https://api.cactive.com.au/v1/me/findmy/place-names' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
meFindmySuggestions

GET/v1/me/findmy/suggestions

{ people }: Mirage friends, circles and Find My people to share with.

Parameters and answers
curl 'https://api.cactive.com.au/v1/me/findmy/suggestions' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postMeFindmyShare

POST/v1/me/findmy/share

Shares the person's location: { email | userId, precision?, expiresAt? }. 201 with the Sharing API's result (a grant, pending or not, or an invitation).

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/me/findmy/share' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "email": "person@example.com",
    "userId": "<userId>",
    "precision": "approximate"
  }'
patchMeFindmyShareByUserId

PATCH/v1/me/findmy/share/:userId

Changes how you share your location with someone: precision (exact or approximate, about a kilometre) and expiresAt (epoch seconds, or null for none).

Parameters and answers
curl -X PATCH 'https://api.cactive.com.au/v1/me/findmy/share/{userId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "precision": "approximate",
    "expiresAt": 1
  }'
deleteMeFindmyShareByUserId

DELETE/v1/me/findmy/share/:userId

Stops sharing your location with someone. They are told.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/me/findmy/share/{userId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
putMeFindmyShareHide

PUT/v1/me/findmy/share/:userId/hide

Hides the person's location from one person until a time (epoch seconds) or forever (until turned back on); they aren't told.

Parameters and answers
curl -X PUT 'https://api.cactive.com.au/v1/me/findmy/share/{userId}/hide' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "until": 1
  }'
deleteMeFindmyShareHide

DELETE/v1/me/findmy/share/:userId/hide

Shows your location to someone again, ending a hide at once.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/me/findmy/share/{userId}/hide' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
putMeFindmyHide

PUT/v1/me/findmy/hide

Hides it from everyone: { until } (a time or forever) or { off: true } (Share My Location off). DELETE shows it again.

Parameters and answers
curl -X PUT 'https://api.cactive.com.au/v1/me/findmy/hide' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
deleteMeFindmyHide

DELETE/v1/me/findmy/hide

Shows your location to everyone you share with again: ends a hide or turns Share My Location back on.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/me/findmy/hide' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
deleteMeFindmyFollowingByUserId

DELETE/v1/me/findmy/following/:userId

Stops seeing someone's location (gives their share back).

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/me/findmy/following/{userId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postMeFindmyRequests

POST/v1/me/findmy/requests

Asks someone to share their location: { email | userId }. Always { sent: true }, account or not. Spends one of the day's shares.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/me/findmy/requests' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "email": "person@example.com",
    "userId": "<userId>"
  }'
postMeFindmyRequestsAccept

POST/v1/me/findmy/requests/:userId/accept

Shares your location with someone who asked (precision optional); they see you at once, with no offer to accept. The request goes.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/me/findmy/requests/{userId}/accept' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "precision": "approximate",
    "whileHidden": true
  }'
postMeFindmyRequestsDecline

POST/v1/me/findmy/requests/:userId/decline

Declines someone's request to see your location. They aren't told.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/me/findmy/requests/{userId}/decline' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
deleteMeFindmyRequestsOutByUserId

DELETE/v1/me/findmy/requests/out/:userId

Withdraws your own request to see someone's location.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/me/findmy/requests/out/{userId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
meFindmyAlerts

GET/v1/me/findmy/alerts

{ alerts }: the person's arrive and leave alerts on people they see.

Parameters and answers
curl 'https://api.cactive.com.au/v1/me/findmy/alerts' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postMeFindmyAlerts

POST/v1/me/findmy/alerts

Tells you when someone who shares their location with you arrives at or leaves a place: subjectId, name, lat, lon, radiusM (100 to 50,000; at least 2,000 for an approximate share), on (arrive, leave or both) and repeat. They are told an alert was set. 404 when they don't share with you; at most 20 alerts. 201.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/me/findmy/alerts' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "subjectId": "<subjectId>",
    "name": "Example",
    "lat": 1,
    "lon": 1,
    "radiusM": 1,
    "on": "arrive"
  }'
deleteMeFindmyAlertsByAlertId

DELETE/v1/me/findmy/alerts/:alertId

Removes one of your alerts.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/me/findmy/alerts/{alertId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
meFindmyDevices

GET/v1/me/findmy/devices

{ phones, cars }: the person's phones (each signed-in phone and each that reports a location: last location, battery, last seen, their Find My choices; theirs alone), and their Personal cars and the cars shared with them, each where they may see it (Vehicles' privacy), with their own watches on it. Cars come only where Vehicles is on.

Parameters and answers
curl 'https://api.cactive.com.au/v1/me/findmy/devices' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postMeFindmyDevicesPhonesSound

POST/v1/me/findmy/devices/phones/:deviceId/sound

Plays a sound on one of the person's signed-in phones: one push, there alone (time-sensitive). 202 { sent }.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/me/findmy/devices/phones/{deviceId}/sound' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
patchMeFindmyDevicesPhonesByDeviceId

PATCH/v1/me/findmy/devices/phones/:deviceId

A phone's Find My choices: notifyWhenFound (only while it's offline; its next report tells you, once) and history (off forgets it).

Parameters and answers
curl -X PATCH 'https://api.cactive.com.au/v1/me/findmy/devices/phones/{deviceId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "notifyWhenFound": true,
    "history": true
  }'
meFindmyDevicesPhonesHistory

GET/v1/me/findmy/devices/phones/:deviceId/history

The phone's own fixes, the last day's, oldest first, when you keep its history. Yours alone.

Parameters and answers
curl 'https://api.cactive.com.au/v1/me/findmy/devices/phones/{deviceId}/history' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
putMeFindmyDevicesCarsLeftBehind

PUT/v1/me/findmy/devices/cars/:vehicleId/left-behind

Notify When Left Behind for a car you may see the location of: you're told when it drives off without the phone that shares your location, or that phone leaves it parked away from home. PUT pairs, DELETE unpairs.

Parameters and answers
curl -X PUT 'https://api.cactive.com.au/v1/me/findmy/devices/cars/{vehicleId}/left-behind' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
deleteMeFindmyDevicesCarsLeftBehind

DELETE/v1/me/findmy/devices/cars/:vehicleId/left-behind

Unpairs a car from Notify When Left Behind.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/me/findmy/devices/cars/{vehicleId}/left-behind' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
putMeFindmyDevicesCarsFound

PUT/v1/me/findmy/devices/cars/:vehicleId/found

Notify When Found for a car you may see the location of, while it's offline: its next position tells you, once.

Parameters and answers
curl -X PUT 'https://api.cactive.com.au/v1/me/findmy/devices/cars/{vehicleId}/found' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
deleteMeFindmyDevicesCarsFound

DELETE/v1/me/findmy/devices/cars/:vehicleId/found

Disarms Notify When Found on a car.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/me/findmy/devices/cars/{vehicleId}/found' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
assessmentsAircraftGet

GET/v1/orgs/:orgId/assessments/aircraft/:hex

Read an aircraft's Details

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/assessments/aircraft/{hex}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
assessmentsIncidentGet

GET/v1/orgs/:orgId/assessments/incidents/:id

Read an incident's Details

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/assessments/incidents/{id}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
mapsVisitorPlaces

GET/v1/public/maps/places

Search places without signing in

Parameters and answers
curl 'https://api.cactive.com.au/v1/public/maps/places?q=example' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
mapsVisitorDirections

POST/v1/public/maps/directions

Get directions without signing in

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/public/maps/directions' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "from": {
      "lat": 1,
      "lon": 1
    },
    "to": {
      "lat": 1,
      "lon": 1
    },
    "mode": "drive"
  }'
sanctionsMatchesGet

GET/v1/orgs/:orgId/sanctions/matches

Explain a possible sanctions match

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/sanctions/matches?kind=vessel' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
savedMapsMapsList

GET/v1/orgs/:orgId/saved-maps

List saved maps

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/saved-maps' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
savedMapsMapsGet

GET/v1/orgs/:orgId/saved-maps/:listId

Get a saved map

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/saved-maps/{listId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"