Automile ResourceOwnerCompanyVehicles API

The ResourceOwnerCompanyVehicles API from Automile — 4 operation(s) for resourceownercompanyvehicles.

Operations 5

GET /v1/resourceowner/companyvehicle Get a list of all company vehicles that user is associated with #
POST /v1/resourceowner/companyvehicle Creates a new company vehicle and associates it with user through the company #
GET /v1/resourceowner/companyvehicle/{companyVehicleId} Get the company vehicle relationship #
PUT /v1/resourceowner/companyvehicle/{companyVehicleIdToEdit} Updates the given company vehicle id
DELETE /v1/resourceowner/companyvehicle/{companyVehicleIdToDelete} Removes the given company vehicle #

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-resourceownercompanyvehicles-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-resourceownercompanyvehicles-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Automile ClientApi Resource Owner Company Vehicles API
  version: v1
servers:
- url: https://api.automile.com/
tags:
- name: ResourceOwnerCompanyVehicles
paths:
  /v1/resourceowner/companyvehicle:
    get:
      tags:
      - ResourceOwnerCompanyVehicles
      summary: Get a list of all company vehicles that user is associated with
      description: Only company vehicles that the user is associated with will be returned by this operation.
      operationId: GetResourceOwnerCompanyVehicles
      parameters:
      - in: query
        name: companyId
        description: Filter on company id
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: The company vehicles are returned
          content:
            text/plain:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CompanyVehicleModel'
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CompanyVehicleModel'
            text/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CompanyVehicleModel'
        '500':
          description: Internal server error
      security:
      - oauth2: []
    post:
      tags:
      - ResourceOwnerCompanyVehicles
      summary: Creates a new company vehicle and associates it with user through the company
      description: The user only has access to contacts that it is associated with through the company
      operationId: CreateResourceOwnerCompanyVehicle
      responses:
        '200':
          description: A link in the header is returned to the newly created company vehicle
        '403':
          description: Request is forbidden, this could occur if you try to associate to companies you are not associated with
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
            text/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '404':
          description: The company that you tried to use doesn't exist
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
            text/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '500':
          description: Internal server error
      security:
      - oauth2: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CompanyVehicleCreateModel'
          text/json:
            schema:
              $ref: '#/components/schemas/CompanyVehicleCreateModel'
          application/*+json:
            schema:
              $ref: '#/components/schemas/CompanyVehicleCreateModel'
        description: The company contact model
  /v1/resourceowner/companyvehicle/{companyVehicleId}:
    get:
      tags:
      - ResourceOwnerCompanyVehicles
      summary: Get the company vehicle relationship
      description: Only company vehicle that the user has access to are accessible.
      operationId: GetResourceOwnerCompanyVehicle
      parameters:
      - in: path
        name: companyVehicleId
        description: The company vehicle id
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: The company vehicle model is returned
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/CompanyVehicleModel'
            application/json:
              schema:
                $ref: '#/components/schemas/CompanyVehicleModel'
            text/json:
              schema:
                $ref: '#/components/schemas/CompanyVehicleModel'
        '403':
          description: Request is forbidden, meaning you don't have access to this company vehicle relationship
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
            text/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '500':
          description: Internal server error
      security:
      - oauth2: []
  /v1/resourceowner/companyvehicle/{companyVehicleIdToEdit}:
    put:
      tags:
      - ResourceOwnerCompanyVehicles
      summary: Updates the given company vehicle id
      description: This will update the company vehicle with the new model.
      parameters:
      - in: path
        name: companyVehicleIdToEdit
        description: The vehicle contact that should be updated
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: The company vehicle was saved
        '403':
          description: Request is forbidden, this could occur if you try to associate to companies you are not associated with
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
            text/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '404':
          description: The company, the vehicle or the company vehicle that you tried to update doesn't exist
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
            text/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '500':
          description: Internal server error
      security:
      - oauth2: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CompanyVehicleEditModel'
          text/json:
            schema:
              $ref: '#/components/schemas/CompanyVehicleEditModel'
          application/*+json:
            schema:
              $ref: '#/components/schemas/CompanyVehicleEditModel'
        description: The new company vehicle model
  /v1/resourceowner/companyvehicle/{companyVehicleIdToDelete}:
    delete:
      tags:
      - ResourceOwnerCompanyVehicles
      summary: Removes the given company vehicle
      description: This will delete the given company contact.
      operationId: DeleteResourceOwnerCompanyVehicle
      parameters:
      - in: path
        name: companyVehicleIdToDelete
        description: The company vehicle id to remove
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: The company vehicle was saved
        '403':
          description: Request is forbidden, this could occur if you are not associated with the company vehicle
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
            text/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '404':
          description: The company vehicle that you tried to remove doesn't exist
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
            text/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '500':
          description: Internal server error
      security:
      - oauth2: []
components:
  schemas:
    CompanyVehicleModel:
      type: object
      properties:
        CompanyVehicleId:
          format: int32
          type: integer
        CompanyId:
          format: int32
          type: integer
        VehicleId:
          format: int32
          type: integer
      additionalProperties: false
    ProblemDetails:
      type: object
      properties:
        type:
          type: string
        title:
          type: string
        status:
          format: int32
          type: integer
        detail:
          type: string
        instance:
          type: string
      additionalProperties: {}
    CompanyVehicleCreateModel:
      required:
      - CompanyId
      - VehicleId
      type: object
      properties:
        CompanyId:
          format: int32
          type: integer
        VehicleId:
          format: int32
          type: integer
      additionalProperties: false
    CompanyVehicleEditModel:
      required:
      - CompanyId
      - VehicleId
      type: object
      properties:
        CompanyId:
          format: int32
          type: integer
        VehicleId:
          format: int32
          type: integer
      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