Skip to content

Get started

Overview ​

The Stage Fleet Services API gives fleets access to services across the PMC network of locations. Search for a service near a vehicle, reserve it, and manage the reservation from check-in to check-out. Rideshare, delivery, rental, and driverless fleets use it today to park vehicles close to demand between trips and overnight.

How it works ​

  1. Register your fleet Contact sales
  2. Create an API key
  3. Add vehicles
  4. Request services Search locations
  5. Create a reservation
  6. Check in
  7. Check out
1

Register your fleet

Create an API key and add your vehicles. You do this once, then keep the list in sync as vehicles join or leave the fleet.

2

Request services

Search for locations that offer a service near a vehicle, reserve it for the time you need, and follow the reservation through check-in and check-out.

See it end to end

The driverless vehicle example shows every request and response in order. Driverless vehicles, also called autonomous vehicles (AVs), operate without a human driver; Stage marks them with is_driverless on the vehicle. Webhooks tell your backend when a reservation's status changes.

Services ​

Stage is organized around a catalog of services that PMC runs across its network. You search for locations that offer a service, then reserve that service for a vehicle and a time window. GET /fleet/v1/services lists the services your fleet can use right now: PMC decides which services are enabled and which ones each fleet can reserve, and the list can grow over time.

available

Parking

Capacity held for fleets at a location. Used as the example throughout these guides.

planned

EV charging

Charging sessions at locations with chargers. Not in the catalog yet.

planned

Car wash

Exterior and interior washes. Not in the catalog yet.

The time window you request, from start_at to end_at, decides what you get. For parking, a 45-minute window is a short idle stay between trips and 22:00 to 06:00 is an overnight stay: same calls, for the time you ask for.

Workspaces ​

Your fleet has exactly two workspaces: one sandbox and one production. Every API key belongs to exactly one of them, and the key you send selects it: a key of the sandbox workspace works on sandbox data, a key of the production workspace on production data. Keys look the same either way (there is no test or live prefix), and there is no separate base URL or workspace header.

Build and test

Sandbox workspace

  • Objects have "livemode": false.
  • Locations mirror real ones, sandbox reservations use the sandbox's own capacity, and nothing is sent to a location.
  • Created when PMC sets up your organization. There is one per fleet.
Go live

Production workspace

  • Objects have "livemode": true.
  • Real locations, for your real vehicles.
  • Created when PMC approves your fleet for production. There is one per fleet.

Workspaces never share data

Vehicles, reservations, API keys, and webhook endpoints belong to one workspace and are invisible in the other, so an ID from the other workspace returns 404 not_found. The sandbox workspace runs the same validation, capacity checks, status changes, and webhooks as production. As in production, your system checks reservations in and out with the API. GET /fleet/v1/account shows which workspace a key belongs to.

Base URL ​

text
https://fleet.parkingmgt.com/fleet/v1

The same base URL serves sandbox and production workspaces. During early access, the base URL is your environment's address instead, shown in the example on the Fleet Console's API keys page.

All requests use HTTPS and JSON. The request and response rules (IDs, timestamps, pagination, idempotency, errors) are on one page: Conventions.

Get access ​

  1. Contact PMC sales about your fleet. There is no self-serve signup: PMC creates your organization, with its sandbox workspace, and emails you an invitation to the Fleet Console.
  2. Accept the invitation and sign in to the Fleet Console. With your sandbox workspace selected, open Developers from the profile menu (bottom of the sidebar) and create a key under API keys. It belongs to the sandbox workspace.
  3. Build and test your integration in the sandbox workspace.
  4. Ask your PMC contact to approve the fleet for production. PMC creates your production workspace. Switch to it in the Fleet Console, create keys there (they belong to the production workspace), register your vehicles and webhook endpoints there (nothing carries over from the sandbox workspace), and switch your services to the production key.

Next ​

1. Register your fleet

API keys, scopes, and vehicles.

2. Request services

Search, reserve, check in, check out.

API reference

Every endpoint and error code.

Every error code, with what it means and what to do, is in the Errors section of the API reference.