Automile ResourceOwnerVehicleV2 API

The ResourceOwnerVehicleV2 API from Automile — 3 operation(s) for resourceownervehiclev2.

Business capability
Fleet & Mobile Asset Management BC-2430

Operations 6

GET /v1/resourceowner/vehicles Get all vehicles that the user has access to #
POST /v1/resourceowner/vehicles Creates a new vehicle #
GET /v1/resourceowner/vehicles/{vehicleId} Get the details about the vehicle #
PUT /v1/resourceowner/vehicles/{vehicleId} Updates the given vehicle with new model #
DELETE /v1/resourceowner/vehicles/{vehicleId} Removes the given vehicle #
GET /v1/resourceowner/vehicles/status Get position and status of all vehicles that the user has access to #

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/automile-resourceownervehiclev2-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

automile-resourceownervehiclev2-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Automile ClientApi Resource Owner Vehicle V2 API
  version: v1
servers:
- url: https://api.automile.com/
tags:
- name: ResourceOwnerVehicleV2
paths:
  /v1/resourceowner/vehicles:
    get:
      tags:
      - ResourceOwnerVehicleV2
      summary: Get all vehicles that the user has access to
      description: Only returns vehicles that the user have access to
      operationId: GetResourceOwnerVehicles
      responses:
        '200':
          description: The vehicles are returned
          content:
            text/plain:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/VehicleModel'
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/VehicleModel'
            text/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/VehicleModel'
        '500':
          description: Internal server error
      security:
      - oauth2: []
    post:
      tags:
      - ResourceOwnerVehicleV2
      summary: Creates a new vehicle
      description: This will create a new vehicle and make the association you set.
      operationId: CreateResourceOwnerVehicle
      responses:
        '200':
          description: A link in the header is returned to the newly created vehicle
        '400':
          description: Bad request, could occur for a number of cases, see returned message
        '403':
          description: Request is forbidden, meaning you don't have access to this vehicle
        '500':
          description: Internal server error
      security:
      - oauth2: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VehicleCreateModel'
          text/json:
            schema:
              $ref: '#/components/schemas/VehicleCreateModel'
          application/*+json:
            schema:
              $ref: '#/components/schemas/VehicleCreateModel'
        description: The vehicle model
  /v1/resourceowner/vehicles/{vehicleId}:
    get:
      tags:
      - ResourceOwnerVehicleV2
      summary: Get the details about the vehicle
      description: Only vehicles that the user has relationships with are allowed.
      operationId: GetResourceOwnerVehicle
      parameters:
      - in: path
        name: vehicleId
        description: The vehicle id
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: The vehicle details are returned
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/VehicleDetailModel'
            application/json:
              schema:
                $ref: '#/components/schemas/VehicleDetailModel'
            text/json:
              schema:
                $ref: '#/components/schemas/VehicleDetailModel'
        '403':
          description: Request is forbidden, meaning you don't have access to this vehicle
        '500':
          description: Internal server error
      security:
      - oauth2: []
    put:
      tags:
      - ResourceOwnerVehicleV2
      summary: Updates the given vehicle with new model
      description: This will update the given vehicle id with a new model.
      operationId: EditResourceOwnerVehicle
      parameters:
      - in: path
        name: vehicleId
        description: The vehicle id
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: The vehicle was saved
        '500':
          description: Internal server error
        '400':
          description: Bad request, could occur for a number of cases, see returned message
        '403':
          description: Request is forbidden, meaning you don't have access to this vehicle
        '404':
          description: Not found, the vehicle you tried to update can't be found
      security:
      - oauth2: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VehicleEditModel'
          text/json:
            schema:
              $ref: '#/components/schemas/VehicleEditModel'
          application/*+json:
            schema:
              $ref: '#/components/schemas/VehicleEditModel'
        description: The new vehicle model
    delete:
      tags:
      - ResourceOwnerVehicleV2
      summary: Removes the given vehicle
      description: Removes the given vehicle. If the vehicle is assoicated with a device, first move the device to another vehicle
      operationId: DeleteResourceOwnerVehicle
      parameters:
      - in: path
        name: vehicleId
        description: The vehicle id
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: The vehicle has been deleted
        '500':
          description: Internal server error
        '403':
          description: Request is forbidden, meaning you don't have access to this vehicle
        '404':
          description: Not found, the vehicle you tried to update can't be found
      security:
      - oauth2: []
  /v1/resourceowner/vehicles/status:
    get:
      tags:
      - ResourceOwnerVehicleV2
      summary: Get position and status of all vehicles that the user has access to
      description: Only returns vehicles that the user have access to. LastKnownFormattedAddress, LastKnownStreetAddress, LastKnownCity is only returned if vehicle is parked.
      operationId: GetResourceOwnerVehiclesStatus
      responses:
        '200':
          description: The vehicle details are returned
          content:
            text/plain:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/VehicleStatusModel'
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/VehicleStatusModel'
            text/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/VehicleStatusModel'
        '500':
          description: Internal server error
      security:
      - oauth2: []
components:
  schemas:
    VehicleStatusModel:
      type: object
      properties:
        VehicleId:
          format: int32
          type: integer
        LastPositionUtc:
          format: date-time
          type: string
        LastKnownLatitude:
          format: double
          type: number
        LastKnownLongitude:
          format: double
          type: number
        IsDriving:
          type: boolean
        MakeImageUrl:
          type: string
        ParkedForNumberOfSeconds:
          format: int32
          type: integer
        DrivingForNumberOfSeconds:
          format: int32
          type: integer
        LastKnownFormattedAddress:
          type: string
        LastKnownStreetAddress:
          type: string
        LastKnownCity:
          type: string
        LastTripId:
          format: int32
          type: integer
        LastLocationType:
          format: int32
          enum:
          - 0
          - 1
          - 2
          type: integer
        CategoryColor:
          format: int32
          type: integer
        Heading:
          format: int32
          type: integer
      additionalProperties: false
    VehicleDetailModel:
      type: object
      properties:
        VehicleIdentificationNumber:
          type: string
        NumberPlate:
          type: string
        Make:
          type: string
        Model:
          type: string
        ModelYear:
          format: int32
          type: integer
        BodyStyle:
          type: string
        BodyType:
          format: int32
          enum:
          - 0
          - 1
          - 2
          - 3
          - 4
          - 5
          - 6
          - 7
          - 8
          type: integer
        OwnerContactId:
          format: int32
          type: integer
        OwnerCompanyId:
          format: int32
          type: integer
        OwnedByName:
          type: string
        NumberOfTrips:
          format: int32
          type: integer
        DistanceTravelledThisYear:
          format: double
          type: number
        DistanceTravelledLastYear:
          format: double
          type: number
        LastKnownLatitude:
          format: double
          type: number
        LastKnownLongitude:
          format: double
          type: number
        LastKnownGeoTimeStamp:
          format: date-time
          type: string
        LastKnownFormattedAddress:
          type: string
        LastKnownCustomAddress:
          type: string
        LastKnownSpeed:
          format: double
          type: number
        LastKnownTemperature:
          format: double
          type: number
        LastKnownTemperatureTimeStamp:
          format: date-time
          type: string
        LastTripEndLatitude:
          format: double
          type: number
        LastTripEndLongitude:
          format: double
          type: number
        LastTripEndGeoTimeStamp:
          format: date-time
          type: string
        ParkedForNumberOfSeconds:
          format: int32
          type: integer
        OngoingTripId:
          format: int32
          type: integer
        MakeImageUrl:
          type: string
        CurrentOdometerInKilometers:
          format: double
          type: number
        VehicleType:
          format: int32
          enum:
          - 0
          - 1
          - 2
          - 3
          - 4
          - 5
          - 6
          - 255
          type: integer
        DeleteTripDetailsAfter:
          $ref: '#/components/schemas/TimeSpan'
        DeleteTripsAfter:
          $ref: '#/components/schemas/TimeSpan'
      additionalProperties: false
    VehicleCreateModel:
      required:
      - CreateRelationshipToId
      - VehicleRelationshipType
      type: object
      properties:
        NumberPlate:
          type: string
        Make:
          type: string
        Model:
          type: string
        ModelYear:
          format: int32
          type: integer
        BodyStyle:
          type: string
        BodyType:
          format: int32
          enum:
          - 0
          - 1
          - 2
          - 3
          - 4
          - 5
          - 6
          - 7
          - 8
          type: integer
        OwnerContactId:
          format: int32
          type: integer
        OwnerCompanyId:
          format: int32
          type: integer
        CreateRelationshipToId:
          format: int32
          type: integer
        VehicleRelationshipType:
          format: int32
          enum:
          - 0
          - 1
          type: integer
        DeleteTripDetailsAfter:
          $ref: '#/components/schemas/TimeSpan'
        DeleteTripsAfter:
          $ref: '#/components/schemas/TimeSpan'
      additionalProperties: false
    VehicleModel:
      type: object
      properties:
        VehicleId:
          format: int32
          type: integer
        VehicleIdentificationNumber:
          type: string
        NumberPlate:
          type: string
        Make:
          type: string
        Model:
          type: string
        OwnerContactId:
          format: int32
          type: integer
        OwnerCompanyId:
          format: int32
          type: integer
        CurrentOdometerInKilometers:
          format: double
          type: number
        VehicleType:
          format: int32
          enum:
          - 0
          - 1
          - 2
          - 3
          - 4
          - 5
          - 6
          - 255
          type: integer
        DeleteTripDetailsAfter:
          $ref: '#/components/schemas/TimeSpan'
        DeleteTripsAfter:
          $ref: '#/components/schemas/TimeSpan'
      additionalProperties: false
    TimeSpan:
      type: object
      properties:
        Ticks:
          format: int64
          type: integer
        Days:
          format: int32
          type: integer
          readOnly: true
        Hours:
          format: int32
          type: integer
          readOnly: true
        Milliseconds:
          format: int32
          type: integer
          readOnly: true
        Microseconds:
          format: int32
          type: integer
          readOnly: true
        Nanoseconds:
          format: int32
          type: integer
          readOnly: true
        Minutes:
          format: int32
          type: integer
          readOnly: true
        Seconds:
          format: int32
          type: integer
          readOnly: true
        TotalDays:
          format: double
          type: number
          readOnly: true
        TotalHours:
          format: double
          type: number
          readOnly: true
        TotalMilliseconds:
          format: double
          type: number
          readOnly: true
        TotalMicroseconds:
          format: double
          type: number
          readOnly: true
        TotalNanoseconds:
          format: double
          type: number
          readOnly: true
        TotalMinutes:
          format: double
          type: number
          readOnly: true
        TotalSeconds:
          format: double
          type: number
          readOnly: true
      additionalProperties: false
    VehicleEditModel:
      type: object
      properties:
        NumberPlate:
          type: string
        Make:
          type: string
        Model:
          type: string
        ModelYear:
          format: int32
          type: integer
        BodyStyle:
          type: string
        BodyType:
          format: int32
          enum:
          - 0
          - 1
          - 2
          - 3
          - 4
          - 5
          - 6
          - 7
          - 8
          type: integer
        OwnerContactId:
          format: int32
          type: integer
        OwnerCompanyId:
          format: int32
          type: integer
        DeleteTripDetailsAfter:
          $ref: '#/components/schemas/TimeSpan'
        DeleteTripsAfter:
          $ref: '#/components/schemas/TimeSpan'
      additionalProperties: false
  securitySchemes:
    oauth2:
      type: oauth2
      flows:
        implicit:
          scopes:
            read: Read access to protected resources
            write: Write access to protected resources
          authorizationUrl: https://api.automile.com/login/
      description: OAuth2 Implicit Grant