Vepathos Vehicles API
Vehicle types with the volume, weight and consumption the planner works with.
Vehicle types with the volume, weight and consumption the planner works with.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/vepathos-com:vepathos-com-vehicles-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Vepathos Com Vehicles API
version: 0.26.0
license:
name: GNU Affero General Public License
url: https://www.gnu.org/licenses/agpl-3.0.html
description: 'Operations tagged vehicles across 2 of this provider''s published API definitions: openapi.json, vepathos-com-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.vepathos.com
security:
- bearerJWT: []
tags:
- name: Vehicles
description: Vehicle types with the volume, weight and consumption the planner works with.
paths:
/vehicles:
get:
tags:
- Vehicles
summary: List vehicles
operationId: vehicles_get_vehicles_get
responses:
'200':
description: All vehicles in your account.
content:
application/json:
schema:
items:
$ref: '#/components/schemas/VehicleResponse'
type: array
title: Response Vehicles Get Vehicles Get
'401':
$ref: '#/components/responses/Unauthorized'
security:
- APIKeyHeader: []
description: Every vehicle type in your account.
post:
tags:
- Vehicles
summary: Create vehicle
operationId: vehicles_post_vehicles_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/VehicleCreate'
example:
name: Cargo van
volume: 8
volume_unit: CUBIC_METER
weight: 900
weight_unit: KILOGRAMS
consumption: 11
consumption_unit: LITERS_PER_100KM
category_type: VAN
engine_type: DIESEL
required: true
responses:
'201':
description: The created vehicle.
content:
application/json:
schema:
$ref: '#/components/schemas/VehicleResponse'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/PlanLimitExceeded'
'422':
description: The body or a parameter does not match the schema.
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- APIKeyHeader: []
description: 'Adds a vehicle type to the catalog. How many units you have is set on a fleet. Returns `403` with `reason: "max_vehicles"` when the plan''s catalog is full.'
servers:
- url: https://api.vepathos.com
/vehicles/{id}:
get:
tags:
- Vehicles
summary: Get vehicle
operationId: vehicles_id_get_vehicles__id__get
security:
- APIKeyHeader: []
parameters:
- name: id
in: path
required: true
schema:
type: integer
title: Id
responses:
'200':
description: The vehicle.
content:
application/json:
schema:
$ref: '#/components/schemas/VehicleResponse'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'422':
description: The body or a parameter does not match the schema.
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
patch:
tags:
- Vehicles
summary: Update vehicle
operationId: vehicles_id_patch_vehicles__id__patch
security:
- APIKeyHeader: []
parameters:
- name: id
in: path
required: true
schema:
type: integer
title: Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/VehicleUpdate'
example:
weight: 950
responses:
'200':
description: The updated vehicle.
content:
application/json:
schema:
$ref: '#/components/schemas/VehicleResponse'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'422':
description: The body or a parameter does not match the schema.
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
description: Send only the fields to change.
delete:
tags:
- Vehicles
summary: Delete vehicle
operationId: vehicles_id_delete_vehicles__id__delete
security:
- APIKeyHeader: []
parameters:
- name: id
in: path
required: true
schema:
type: integer
title: Id
- name: strategy
in: query
required: false
description: 'When `unlink-fleets`, removes fleet_vehicle links only and keeps the vehicle catalog row. Default: full delete with FK cleanup (api-doc gateway).'
schema:
type: string
enum:
- unlink-fleets
responses:
'200':
description: Vehicle deleted or unlinked from fleets (gateway applies transactional FK cleanup).
content:
application/json:
schema:
$ref: '#/components/schemas/VehicleDeleteResponse'
examples:
deleted:
value:
code: deleted
message: Vehicle deleted
fleetNames:
- Main fleet
unlinked:
value:
code: unlinked
message: Vehicle unlinked from fleets
fleetNames:
- Main fleet
'401':
$ref: '#/components/responses/Unauthorized'
'404':
description: Vehicle not found in tenant scope
content:
application/json:
schema:
$ref: '#/components/schemas/RouteHubDeleteNotFound'
'409':
description: Vehicle still referenced by optimization history after cleanup (e.g. delivery_path FK).
content:
application/json:
schema:
$ref: '#/components/schemas/VehicleDeleteBlocked'
'422':
description: The body or a parameter does not match the schema.
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
description: 'Deletes the vehicle and unlinks it from every fleet that used it; `fleetNames` lists them. With `?strategy=unlink-fleets` the vehicle stays in the catalog and is only removed from fleets. Returns `409` with `code: "vehicle_in_use"` when optimization history still references it.'
servers:
- url: https://api.vepathos.com
components:
schemas:
VehicleCategoryType:
type: string
enum:
- TRUCK
- VAN
- PICKUP
- MOTORCYCLE
- BICYCLE
title: VehicleCategoryType
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
type: object
required:
- loc
- msg
- type
title: ValidationError
VolumeUnit:
type: string
enum:
- CUBIC_CENTIMETER
- CUBIC_METER
- LITER
- CUBIC_INCH
- CUBIC_FEET
- GALLON
title: VolumeUnit
VehicleCreate:
properties:
name:
type: string
title: Name
description: Display name.
volume:
anyOf:
- type: integer
- type: 'null'
title: Volume
description: Cargo volume capacity, in `volume_unit`. Integer.
volume_unit:
anyOf:
- $ref: '#/components/schemas/VolumeUnit'
- type: 'null'
weight:
anyOf:
- type: integer
- type: 'null'
title: Weight
description: Maximum payload, in `weight_unit`. Integer.
weight_unit:
anyOf:
- $ref: '#/components/schemas/WeightUnit'
- type: 'null'
consumption:
anyOf:
- type: integer
- type: 'null'
title: Consumption
description: Fuel or energy consumption, in `consumption_unit`. Integer.
consumption_unit:
anyOf:
- $ref: '#/components/schemas/VehicleConsumptionUnit'
- type: 'null'
category_type:
anyOf:
- $ref: '#/components/schemas/VehicleCategoryType'
- type: 'null'
description: Vehicle class.
engine_type:
anyOf:
- $ref: '#/components/schemas/VehicleEngineType'
- type: 'null'
description: Propulsion type.
type: object
required:
- name
title: VehicleCreate
GatewayError:
type: object
title: GatewayError
description: Error returned by the Vepathos gateway before a request reaches the planning engine.
required:
- error
properties:
error:
type: string
description: Machine-readable code, such as `unauthorized` or `routehub_unreachable`.
detail:
type: string
description: Human-readable explanation.
RouteHubDeleteNotFound:
type: object
required:
- code
- message
properties:
code:
type: string
enum:
- not_found
message:
type: string
title: RouteHubDeleteNotFound
WeightUnit:
type: string
enum:
- GRAMS
- KILOGRAMS
- OUNCES
- POUNDS
title: WeightUnit
VehicleDeleteResponse:
type: object
required:
- code
- message
- fleetNames
properties:
code:
type: string
enum:
- deleted
- unlinked
- not_in_fleet
message:
type: string
fleetNames:
type: array
items:
type: string
description: Fleet names the vehicle was removed from (empty if none).
title: VehicleDeleteResponse
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
PlanLimitExceededError:
type: object
required:
- error
- reason
- detail
properties:
error:
type: string
const: plan_limit_exceeded
description: Gateway rejected the request because a plan quota or entitlement was exceeded.
reason:
type: string
enum:
- max_milestones
- max_vehicles
- max_fleets
- max_drivers
- max_fleet_units
- max_stops_per_request
- monthly_limit
- max_stops_per_route
- plan_feature_not_allowed
description: Machine-readable limit or entitlement that blocked the request.
detail:
type: string
description: Human-readable explanation and upgrade guidance.
feature:
type: string
description: 'Present when `reason` is `plan_feature_not_allowed`: the optimization option your plan does not include, for example `rebalance_by_volume`.'
title: PlanLimitExceededError
VehicleResponse:
properties:
name:
type: string
title: Name
description: Display name.
volume:
anyOf:
- type: integer
- type: 'null'
title: Volume
description: Cargo volume capacity, in `volume_unit`. Integer.
volume_unit:
anyOf:
- $ref: '#/components/schemas/VolumeUnit'
- type: 'null'
weight:
anyOf:
- type: integer
- type: 'null'
title: Weight
description: Maximum payload, in `weight_unit`. Integer.
weight_unit:
anyOf:
- $ref: '#/components/schemas/WeightUnit'
- type: 'null'
consumption:
anyOf:
- type: integer
- type: 'null'
title: Consumption
description: Fuel or energy consumption, in `consumption_unit`. Integer.
consumption_unit:
anyOf:
- $ref: '#/components/schemas/VehicleConsumptionUnit'
- type: 'null'
category_type:
anyOf:
- $ref: '#/components/schemas/VehicleCategoryType'
- type: 'null'
description: Vehicle class.
engine_type:
anyOf:
- $ref: '#/components/schemas/VehicleEngineType'
- type: 'null'
description: Propulsion type.
id:
anyOf:
- type: string
- type: integer
title: Id
type: object
required:
- name
- id
title: VehicleResponse
VehicleUpdate:
properties:
name:
anyOf:
- type: string
- type: 'null'
title: Name
description: Display name.
volume:
anyOf:
- type: integer
- type: 'null'
title: Volume
description: Cargo volume capacity, in `volume_unit`. Integer.
volume_unit:
anyOf:
- $ref: '#/components/schemas/VolumeUnit'
- type: 'null'
weight:
anyOf:
- type: integer
- type: 'null'
title: Weight
description: Maximum payload, in `weight_unit`. Integer.
weight_unit:
anyOf:
- $ref: '#/components/schemas/WeightUnit'
- type: 'null'
consumption:
anyOf:
- type: integer
- type: 'null'
title: Consumption
description: Fuel or energy consumption, in `consumption_unit`. Integer.
consumption_unit:
anyOf:
- $ref: '#/components/schemas/VehicleConsumptionUnit'
- type: 'null'
category_type:
anyOf:
- $ref: '#/components/schemas/VehicleCategoryType'
- type: 'null'
description: Vehicle class.
engine_type:
anyOf:
- $ref: '#/components/schemas/VehicleEngineType'
- type: 'null'
description: Propulsion type.
type: object
title: VehicleUpdate
VehicleDeleteBlocked:
type: object
required:
- code
- message
properties:
code:
type: string
enum:
- vehicle_in_use
message:
type: string
title: VehicleDeleteBlocked
Generic:
type: object
title: Generic
description: Status envelope used by the planning engine for acknowledgements and errors.
required:
- code
properties:
code:
type: integer
description: HTTP status code.
message:
type: string
description: Human-readable message.
VehicleConsumptionUnit:
type: string
enum:
- LITERS_PER_100KM
- KILOMETERS_PER_LITER
- MILES_PER_GALLON
- GALLONS_PER_MILE
title: VehicleConsumptionUnit
VehicleEngineType:
type: string
enum:
- GASOLINE
- DIESEL
- CNG
- ELECTRIC
- HYBRID
- MECHANIC
title: VehicleEngineType
responses:
Unauthorized:
description: Missing, expired or invalid access token.
content:
application/json:
schema:
$ref: '#/components/schemas/GatewayError'
example:
error: unauthorized
detail: Missing or invalid Bearer token.
PlanLimitExceeded:
description: A plan quota or optimization option blocks the request. `reason` names the limit. Nothing is reserved or charged.
headers:
X-RouteHub-Tenant-Id:
description: Workspace id of the authenticated account. Informational.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/PlanLimitExceededError'
examples:
maxVehicles:
summary: Vehicle type catalog cap
value:
error: plan_limit_exceeded
reason: max_vehicles
detail: Your plan allows up to 15 vehicles. Remove one or upgrade to add more.
maxFleetUnits:
summary: Units per fleet cap
value:
error: plan_limit_exceeded
reason: max_fleet_units
detail: Your plan allows up to 100 vehicles per fleet (sum of qty). This fleet requests 125. Reduce quantities or upgrade to a higher plan.
stopsPerRequest:
summary: Stops per request
value:
error: plan_limit_exceeded
reason: max_stops_per_request
detail: This request exceeds your plan's per-request limit of 500 stops.
monthlyStops:
summary: Monthly stop allowance
value:
error: plan_limit_exceeded
reason: monthly_limit
detail: This run would exceed your monthly limit of 2,000 stops.
featureNotAllowed:
summary: Optimization option not in plan
value:
error: plan_limit_exceeded
reason: plan_feature_not_allowed
feature: rebalance_by_volume
detail: Volume adjustments across routes is not included in your current plan. Upgrade to unlock this option.
NotFound:
description: The resource does not exist in your account.
content:
application/json:
schema:
$ref: '#/components/schemas/Generic'
example:
code: 404
message: Delivery lot not found
securitySchemes:
APIKeyHeader:
type: apiKey
in: header
name: Authorization
description: 'Access token from `POST /api/token`, sent as `Authorization: Bearer <access_token>`. Create the credential in Dashboard, Credentials.'
bearerJWT:
type: http
scheme: bearer
bearerFormat: JWT
description: 'Short-lived JWT, from `POST /api/token` or the signed-in web session, sent as `Authorization: Bearer <token>`.'
x-refined-from:
- openapi.json
- vepathos-com-openapi.json
x-provenance:
method: harvested
publisher: Vepathos
source: https://api.vepathos.com/openapi.json
note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
stamped by stamp-openapi-provenance.py (roadmap#793)