Appearance
Conventions
The rules every Stage Fleet Services API endpoint follows, in one place. The API reference has the details for each endpoint.
HTTPS + JSON
snake_case fields, strict request bodies.
Bearer keys
One secret key per integration, from servers only.
Safe retries
Idempotency-Key on POST, If-Match on PATCH.
Stable errors
Problem details with a stable code.
Authentication
Send a secret API key as a bearer token on every request, over HTTPS:
sh
curl https://fleet.parkingmgt.com/fleet/v1/account \
-H "Authorization: Bearer $STAGE_API_KEY"Bearer authentication is the only scheme. Keys are opaque strings of 72 characters with no prefix; don't rely on their length or format. A key belongs to exactly one workspace, and that workspace decides whether the request works on sandbox or production data. Keys are for servers only. See Register your fleet for scopes and rotation, and Keys and workspaces below.
JSON and naming
- Request and response bodies are JSON (
Content-Type: application/json). Field names aresnake_case. - Request bodies are strict: an unknown field is a
400 validation_failed, which catches typos early. - Responses always include every documented field. Fields without a value are
null, not missing. Ignore fields you don't know: new ones may be added. - Every object has an
objectfield naming its type (location,reservation,vehicle,list, …) and alivemodeflag.
IDs
Every ID is a UUID, for example ee8aced1-100f-45fa-a267-8fa27978f9e3 for a reservation. Treat IDs as opaque strings: compare them as given and don't parse them. The object field tells you what an object is; IDs don't carry a type. This applies to every ID: locations, reservations, vehicles, service history events, webhook endpoints and events, fleets, workspaces, API keys, and request IDs (Request-Id).
Your own identifiers go in external_id (vehicles) and external_reference (reservations).
Timestamps
Times are ISO-8601 strings. You can send any offset (2026-11-02T08:00:00-06:00); responses are always UTC (2026-11-02T14:00:00Z). Each location has an IANA timezone, and its opening hours are in local time.
Pagination
Every list endpoint is cursor-paginated and returns the same envelope:
json
{
"object": "list",
"data": [],
"has_more": true,
"next_cursor": "eyJzayI6InJlc2VydmF0aW9ufDIwMjYtMTEtMDNUMTQ6MDA6MDAuMDAwWnw1ZjBjMmI2ZS04ZDRhLTRjMWUtOWI3YS0zZTJmMWQwYzliOGEifQ.K4Rj3a70suVPBiKBRHI4dG"
}| Parameter | Description |
|---|---|
limit | Page size, 1–100. Default 20. |
cursor | The next_cursor from the previous page. Omit it for the first page. |
next_cursor is null on the last page. Cursors are opaque: pass them back unchanged, with the same filters. Lists are newest first, except location search, which is nearest first.
js
const API = 'https://fleet.parkingmgt.com/fleet/v1'
const headers = { Authorization: `Bearer ${process.env.STAGE_API_KEY}` }
async function * listAll (path, params = {}) {
let cursor
do {
const query = new URLSearchParams({ ...params, limit: '100', ...(cursor ? { cursor } : {}) })
const res = await fetch(`${API}${path}?${query}`, { headers })
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`)
const page = await res.json()
yield * page.data
cursor = page.has_more ? page.next_cursor : undefined
} while (cursor)
}
for await (const vehicle of listAll('/vehicles', { status: 'active' })) {
console.log(vehicle.external_id)
}Idempotency
Networks fail. To retry a POST safely, send an Idempotency-Key header with a unique value such as a UUID.
- A retry with the same key within 24 hours returns the original response, status and body included, without acting twice.
- Reusing a key with a different body returns
409 idempotency_key_reused. - Keys are scoped to your workspace. Use a new key for each new operation.
These endpoints accept Idempotency-Key:
| Endpoint |
|---|
POST /fleet/v1/reservations |
POST /fleet/v1/reservations/{id}/cancel |
POST /fleet/v1/reservations/{id}/check-in |
POST /fleet/v1/reservations/{id}/check-out |
POST /fleet/v1/vehicles |
POST /fleet/v1/vehicles/batch |
POST /fleet/v1/vehicles/batch-delete |
POST /fleet/v1/webhook-endpoints |
GET and DELETE are safe to repeat. PATCH uses ETags instead.
ETags and If-Match
Reservations, vehicles, and webhook endpoints return an ETag header. Send it back as If-Match on PATCH to change only the version you read. If someone else changed it in between (another service, PMC staff checking a vehicle in, or Stage extending an open-ended hold), you get 412 precondition_failed: retrieve it again, reapply your change, and retry. Without If-Match the last write wins.
Rate limits
Limits apply per API key, by the type of workspace the key belongs to:
| Key of the | Limit |
|---|---|
| Sandbox workspace | 25 requests per second |
| Production workspace | 100 requests per second, unless PMC raised your fleet's limit |
GET /fleet/v1/account shows your key's effective limit in rate_limit (limit requests per window_seconds), including a raised one. Your key's limit is the quota that matters: the Fleet Services API is not limited per client IP address beyond a flood guard far above any key's limit, so a fleet calling from a few egress IPs is fine. (The Fleet Console has per-IP limits, including 100 sign-in requests per 5 minutes.) Requests over the firewall's limits get 403 until the rate drops.
Over a key's limit you get 429 rate_limited with these headers:
| Header | Meaning |
|---|---|
Retry-After | Seconds to wait before retrying. |
RateLimit-Limit | Requests allowed in the current window. |
RateLimit-Remaining | Requests left in the window. |
RateLimit-Reset | Seconds until the window resets. |
Spread requests out, cache location searches for a few seconds, and use webhooks instead of polling. If your production traffic needs more, for example a large fleet that books, checks in and checks out many vehicles at once, ask PMC: staff can raise the production limit for your fleet (up to 5,000 requests per second per key). It applies to every key of your production workspace on its next request; sandbox keys keep 25.
Request IDs
Every response has a Request-Id header (a UUID), also returned as request_id in errors.
Contacting support
Include the Request-Id, never your key.
Errors
Errors are RFC 9457 problem details (application/problem+json) with a stable code. Branch on code, not on title or detail:
json
{
"type": "https://fleet.parkingmgt.com/docs/reference?error=capacity-unavailable#description/errors",
"title": "Capacity unavailable",
"status": 409,
"detail": "No capacity left for parking at eec93d2d-5729-441b-99b2-f764872ca895 between 2026-11-02T15:00:00Z and 2026-11-02T16:00:00Z.",
"instance": "/fleet/v1/reservations",
"code": "capacity_unavailable",
"request_id": "8ced2ccf-ecd6-4b57-8d93-664e0418ff71"
}type opens the Errors section of the API reference, which lists every code with its HTTP status, what it means, and what to do. Validation errors add errors[] with one entry per field.
The one exception is 401: authentication is checked before the request reaches Stage, so a 401 body may not be problem details. Branch on the status.
| Response | Retry? |
|---|---|
| Network error or timeout | Yes, with the same Idempotency-Key. |
429 | Yes, after Retry-After seconds. |
500, 503 | Yes, with exponential backoff (at least Retry-After seconds when present) and the same Idempotency-Key. A check-out under heavy load answers 503: keep retrying until it lands. |
409 capacity_unavailable | Not as is. Try the next location or another time. |
409 conflict saying a concurrent request touched the same items | Yes, with a new Idempotency-Key (rare: Stage already retried). |
412 precondition_failed | After retrieving the resource again. |
Other 4xx | No. Fix the request first. |
A good backoff starts at 0.5 seconds, doubles each attempt with random jitter, and gives up after about five attempts. New codes may be added; handle an unknown code by its HTTP status.
Versioning and changelog
The API's namespace and version are in the URL: https://fleet.parkingmgt.com/fleet/v1. Within /fleet/v1, changes are additive: new endpoints, new optional parameters, new response fields, new enum values (services, access methods, event sources), new webhook event types, and new error codes. Build for that:
- Ignore unknown fields and unknown webhook event types (return
2xxfor them). - Treat an unknown
service_idas "skip", and readGET /fleet/v1/servicesinstead of hard-coding the list: PMC adds services and decides which ones your fleet can use. - Branch on error
code, then on HTTP status.
Breaking changes ship only in a new major version that runs side by side with v1. Deprecated endpoints send Deprecation and Sunset headers, with at least 12 months between the notice and the sunset date. Before general availability PMC may still narrow v1; every such change is listed in the changelog. Webhook payloads carry an api_version, currently 2026-11-01. See Versioning and changes for the full policy. The full contract is published as OpenAPI 3.1: download openapi.json or browse the API reference.
Keys and workspaces
Your fleet has one sandbox workspace and one production workspace, and every API key belongs to exactly one of them. Keys look the same in both; the workspace a key belongs to decides whether your requests work on sandbox or production data. Create keys in the Fleet Console with the workspace you want selected. Both workspaces use the same base URL. Data never crosses workspaces: every object's livemode is true in the production workspace and false in the sandbox workspace, and an ID from the other workspace returns 404 not_found. GET /fleet/v1/account returns the key's workspace (id, name, type). See Workspaces.