Skip to content

Overview

Vehicles is the phone SDK in the driver app, plus two calls from your backend.

Download OpenAPI

The SDK runs in the driver app. It records a trip while a booking is open.

  • Getting started — registerAtLaunch, setup, beginTrip, endTrip
  • Setup — driver, vehicle, and setup metadata
  • Trips — job metadata when the booking starts and ends
  • Authentication — server key on the backend, bearer from tokenProvider
  • Permissions — what the driver must allow

Your backend holds the server key. The app never sees it.

  • Mint access token — POST /v1/vehicles/tokens. Bearer for tokenProvider, valid for 24 hours. POST /v1/tokens is deprecated.
  • End trip (beta) — POST /v1/vehicles/trips/end. Close an open trip from the server. POST /v1/trips/end is deprecated.