Vepathos Fleets API

How many units of each vehicle type a run can use. The sum of `vehicles[].qty` counts against your plan's units per fleet.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 5

GET /fleets List fleets #
POST /fleets Create fleet #
GET /fleets/{id} Get fleet #
PATCH /fleets/{id} Update fleet #
DELETE /fleets/{id} Delete fleet #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/vepathos-com:vepathos-com-fleets-api"
All apis
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.

Get an API 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 Specification

vepathos-com-fleets-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Vepathos Com Fleets 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 fleets 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: Fleets
  description: How many units of each vehicle type a run can use. The sum of `vehicles[].qty` counts against your plan's units per fleet.
paths:
  /fleets:
    get:
      tags:
      - Fleets
      summary: List fleets
      operationId: fleets_get_fleets_get
      responses:
        '200':
          description: All fleets in your account.
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/FleetResponse'
                type: array
                title: Response Fleets Get Fleets Get
        '401':
          $ref: '#/components/responses/Unauthorized'
      security:
      - APIKeyHeader: []
      description: Every fleet with its vehicle entries. Each entry repeats the vehicle's catalog fields next to `qty`, `alias`, `route` and `behavior`.
    post:
      tags:
      - Fleets
      summary: Create fleet
      operationId: fleets_post_fleets_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FleetCreate'
            example:
              name: Downtown fleet
              vehicles:
              - id: '12'
                qty: 3
                route:
                  stops_max: 60
                  time_max: 480
                  time_unit: MINUTE
                behavior:
                  priority: 1
              - id: '14'
                qty: 2
                behavior:
                  overflow_vehicle: true
        required: true
      responses:
        '201':
          description: The created fleet.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FleetResponse'
        '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: 'Returns `403` with `reason: "max_fleets"` when the account holds its plan''s fleets, or `reason: "max_fleet_units"` when `vehicles[].qty` adds up past the plan''s units per fleet.'
    servers:
    - url: https://api.vepathos.com
  /fleets/{id}:
    get:
      tags:
      - Fleets
      summary: Get fleet
      operationId: fleets_id_get_fleets__id__get
      security:
      - APIKeyHeader: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: integer
          title: Id
      responses:
        '200':
          description: The fleet.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FleetResponse'
        '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:
      - Fleets
      summary: Update fleet
      operationId: fleets_id_patch_fleets__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/FleetUpdate'
            example:
              vehicles:
              - id: '12'
                qty: 5
              - id: '14'
                qty: 2
                behavior:
                  overflow_vehicle: true
      responses:
        '200':
          description: The updated fleet.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FleetResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/PlanLimitExceeded'
        '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: 'When `vehicles` is sent it replaces the list: entries you leave out are removed. Entries are matched by `alias`. The new total of `qty` must fit the plan''s units per fleet.'
    delete:
      tags:
      - Fleets
      summary: Delete fleet
      operationId: fleets_id_delete_fleets__id__delete
      security:
      - APIKeyHeader: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: integer
          title: Id
      responses:
        '200':
          description: Fleet deleted (gateway unlinks fleet_vehicle rows and clears delivery_lot.fleet_id).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FleetDeleteResponse'
              example:
                code: deleted
                message: Fleet deleted
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: Fleet not found in tenant scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RouteHubDeleteNotFound'
        '422':
          description: The body or a parameter does not match the schema.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      description: Deletes the fleet and detaches it from any lot that referenced it. Vehicles in the catalog are kept.
    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
    TimeUnit:
      type: string
      enum:
      - SECOND
      - MINUTE
      - HOUR
      title: TimeUnit
    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
    LengthUnit:
      type: string
      enum:
      - CENTIMETER
      - METER
      - KILOMETER
      - INCH
      - FEET
      - MILE
      title: LengthUnit
    WeightUnit:
      type: string
      enum:
      - GRAMS
      - KILOGRAMS
      - OUNCES
      - POUNDS
      title: WeightUnit
    VehicleRouteConfig:
      properties:
        stops_min:
          anyOf:
          - type: integer
          - type: 'null'
          title: Stops Min
        stops_max:
          anyOf:
          - type: integer
          - type: 'null'
          title: Stops Max
        distance_min:
          anyOf:
          - type: number
          - type: 'null'
          title: Distance Min
        distance_max:
          anyOf:
          - type: number
          - type: 'null'
          title: Distance Max
        distance_unit:
          anyOf:
          - $ref: '#/components/schemas/LengthUnit'
          - type: 'null'
        time_min:
          anyOf:
          - type: number
          - type: 'null'
          title: Time Min
        time_max:
          anyOf:
          - type: number
          - type: 'null'
          title: Time Max
        time_unit:
          anyOf:
          - $ref: '#/components/schemas/TimeUnit'
          - type: 'null'
      type: object
      title: VehicleRouteConfig
    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
    FleetUpdate:
      properties:
        name:
          anyOf:
          - type: string
          - type: 'null'
          title: Name
        vehicles:
          anyOf:
          - items:
              $ref: '#/components/schemas/FleetVehicleCreate'
            type: array
          - type: 'null'
          title: Vehicles
      type: object
      title: FleetUpdate
    FleetResponse:
      properties:
        name:
          type: string
          title: Name
        vehicles:
          items:
            $ref: '#/components/schemas/FleetVehicleResponse'
          type: array
          title: Vehicles
        id:
          anyOf:
          - type: string
          - type: integer
          title: Id
      type: object
      required:
      - name
      - vehicles
      - id
      title: FleetResponse
    FleetVehicleCreate:
      properties:
        qty:
          type: integer
          title: Qty
          description: Units of this vehicle type. The sum across the fleet counts against your plan's units per fleet.
        id:
          type: string
          title: Id
          description: Vehicle id from `/vehicles`.
        alias:
          anyOf:
          - type: string
          - type: 'null'
          title: Alias
          description: Name for this entry, unique within the fleet. Lets the same vehicle type appear more than once with different route or behavior limits.
        route:
          anyOf:
          - $ref: '#/components/schemas/VehicleRouteConfig'
          - type: 'null'
        behavior:
          anyOf:
          - $ref: '#/components/schemas/VehicleBehaviorConfig'
          - type: 'null'
      type: object
      required:
      - qty
      - id
      title: FleetVehicleCreate
    VehicleBehaviorConfig:
      properties:
        priority:
          anyOf:
          - type: integer
          - type: 'null'
          title: Priority
          description: Dispatch priority. Higher values are used first when types are interchangeable.
        overflow_vehicle:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Overflow Vehicle
          description: Hold this type back until the primary types are full.
      type: object
      title: VehicleBehaviorConfig
    FleetVehicleResponse:
      properties:
        name:
          type: string
          title: Name
        volume:
          anyOf:
          - type: integer
          - type: 'null'
          title: Volume
        volume_unit:
          anyOf:
          - $ref: '#/components/schemas/VolumeUnit'
          - type: 'null'
        weight:
          anyOf:
          - type: integer
          - type: 'null'
          title: Weight
        weight_unit:
          anyOf:
          - $ref: '#/components/schemas/WeightUnit'
          - type: 'null'
        consumption:
          anyOf:
          - type: integer
          - type: 'null'
          title: Consumption
        consumption_unit:
          anyOf:
          - $ref: '#/components/schemas/VehicleConsumptionUnit'
          - type: 'null'
        category_type:
          anyOf:
          - $ref: '#/components/schemas/VehicleCategoryType'
          - type: 'null'
        engine_type:
          anyOf:
          - $ref: '#/components/schemas/VehicleEngineType'
          - type: 'null'
        id:
          anyOf:
          - type: string
          - type: integer
          title: Id
        qty:
          type: integer
          title: Qty
        alias:
          anyOf:
          - type: string
          - type: 'null'
          title: Alias
          description: Name for this entry, unique within the fleet. Lets the same vehicle type appear more than once with different route or behavior limits.
        route:
          anyOf:
          - $ref: '#/components/schemas/VehicleRouteConfig'
          - type: 'null'
        behavior:
          anyOf:
          - $ref: '#/components/schemas/VehicleBehaviorConfig'
          - type: 'null'
      type: object
      required:
      - name
      - id
      - qty
      title: FleetVehicleResponse
    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
    FleetCreate:
      properties:
        name:
          type: string
          title: Name
        vehicles:
          items:
            $ref: '#/components/schemas/FleetVehicleCreate'
          type: array
          title: Vehicles
      type: object
      required:
      - name
      - vehicles
      title: FleetCreate
    VehicleEngineType:
      type: string
      enum:
      - GASOLINE
      - DIESEL
      - CNG
      - ELECTRIC
      - HYBRID
      - MECHANIC
      title: VehicleEngineType
    FleetDeleteResponse:
      type: object
      required:
      - code
      - message
      properties:
        code:
          type: string
          enum:
          - deleted
        message:
          type: string
      title: FleetDeleteResponse
  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)