Every API here is available over the APIs.io API and to AI agents over MCP.
{
"openapi": "3.0.1",
"info": {
"title": "Highland Fleets API",
"description": "***Base Uri***\n\n`https://api.highlandfleets.com`\n\n\n\n***Authentication***\n\n 1. Use the `/auth` endpoint to retrieve a JWT bearer token\n\n 2. Authenticate your requests by setting the following header: `Authorization: Bearer my-jwt`\n\n\n\n***Import Notes***\n\n 1. Rate Limit: `10 reqs / sec`\n\n 2. Token TTL: `30 min`\n\n 3. You can renew your token using the same `/auth` endpoint. Your old token is automatically revoked and a new one will be issued.\n\n 4. `All` references to dates and `times`, including query string parameters, `are in UTC`.",
"version": "v1"
},
"paths": {
"/auth": {
"post": {
"tags": [
"Authentication"
],
"summary": "acquire JWT for bearer auth",
"description": "Use the `client_id` and `client_secret` you were provided.\n\nToken lifetime is `30 minutes`",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AuthorizationBody"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
},
"401": {
"description": "Invalid Credentials"
}
}
}
},
"/chargers": {
"get": {
"tags": [
"Chargers"
],
"summary": "retrieve a list of all chargers",
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Charger"
}
}
}
}
},
"401": {
"description": "Invalid Credentials"
},
"403": {
"description": "Insufficient Permissions"
}
}
}
},
"/chargers/{id}": {
"get": {
"tags": [
"Chargers"
],
"summary": "retrieve a single charger",
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"style": "simple",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Charger"
}
}
}
},
"401": {
"description": "Invalid Credentials"
},
"403": {
"description": "Insufficient Permissions"
}
}
}
},
"/charging/in-progress": {
"get": {
"tags": [
"Charging Transactions"
],
"summary": "retrieve a list of all in-progress charging transactions for a given depot",
"parameters": [
{
"name": "depotId",
"in": "query",
"required": true,
"style": "form",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ChargingTransaction"
}
}
}
},
"401": {
"description": "Invalid Credentials"
},
"403": {
"description": "Insufficient Permissions"
}
}
}
},
"/charging/historical": {
"get": {
"tags": [
"Charging Transactions"
],
"summary": "retrieve a list of completed charging transactions within a specific time period",
"parameters": [
{
"name": "from",
"in": "query",
"required": true,
"style": "form",
"schema": {
"type": "string",
"format": "date-time"
}
},
{
"name": "to",
"in": "query",
"required": true,
"style": "form",
"schema": {
"type": "string",
"format": "date-time"
}
},
{
"name": "chargerId",
"in": "query",
"style": "form",
"schema": {
"type": "string"
}
},
{
"name": "depotId",
"in": "query",
"style": "form",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ChargingTransaction"
}
}
}
}
},
"401": {
"description": "Invalid Credentials"
},
"403": {
"description": "Insufficient Permissions"
}
}
}
},
"/depots": {
"get": {
"tags": [
"Depots"
],
"summary": "retrieve a list of all sites (depots)",
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Depot"
}
}
}
}
},
"401": {
"description": "Invalid Credentials"
},
"403": {
"description": "Insufficient Permissions"
}
}
}
},
"/depots/{id}": {
"get": {
"tags": [
"Depots"
],
"summary": "retrieve a single depot",
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"style": "simple",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Depot"
}
}
}
},
"401": {
"description": "Invalid Credentials"
},
"403": {
"description": "Insufficient Permissions"
}
}
}
},
"/depots/{id}/utilization": {
"get": {
"tags": [
"Depots"
],
"summary": "retrieve utilization (power offered, exported, and imported) for a depot",
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"style": "simple",
"schema": {
"type": "string"
}
},
{
"name": "from",
"in": "query",
"required": true,
"style": "form",
"schema": {
"type": "string",
"format": "date-time"
}
},
{
"name": "to",
"in": "query",
"required": true,
"style": "form",
"schema": {
"type": "string",
"format": "date-time"
}
},
{
"name": "timeInterval",
"in": "query",
"required": true,
"style": "form",
"schema": {
"$ref": "#/components/schemas/DepotUtilizationInterval"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DepotUtilizations"
}
}
}
},
"401": {
"description": "Invalid Credentials"
},
"403": {
"description": "Insufficient Permissions"
}
}
}
},
"/vehicles": {
"get": {
"tags": [
"Vehicles"
],
"summary": "retrieve a list of all vehicles",
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Vehicle"
}
}
}
}
},
"401": {
"description": "Invalid Credentials"
},
"403": {
"description": "Insufficient Permissions"
}
}
}
},
"/vehicles/status": {
"get": {
"tags": [
"Vehicles"
],
"summary": "retrieve current telematics for all vehicles",
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/VehicleStatus"
}
}
}
}
},
"401": {
"description": "Invalid Credentials"
},
"403": {
"description": "Insufficient Permissions"
}
}
}
},
"/vehicles/trips": {
"get": {
"tags": [
"Vehicles"
],
"summary": "retrieve trips for all vehicles in a specified time period",
"parameters": [
{
"name": "from",
"in": "query",
"required": true,
"style": "form",
"schema": {
"type": "string",
"format": "date-time"
}
},
{
"name": "to",
"in": "query",
"required": true,
"style": "form",
"schema": {
"type": "string",
"format": "date-time"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/VehicleTrip"
}
}
}
}
},
"401": {
"description": "Invalid Credentials"
},
"403": {
"description": "Insufficient Permissions"
}
}
}
},
"/vehicles/{id}": {
"get": {
"tags": [
"Vehicles"
],
"summary": "retrieve a single vehicle",
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"style": "simple",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Vehicle"
}
}
}
},
"401": {
"description": "Invalid Credentials"
},
"403": {
"description": "Insufficient Permissions"
}
}
}
},
"/vehicles/{id}/status": {
"get": {
"tags": [
"Vehicles"
],
"summary": "retrieve current telematics for a specific vehicle",
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"style": "simple",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/VehicleStatus"
}
}
}
},
"401": {
"description": "Invalid Credentials"
},
"403": {
"description": "Insufficient Permissions"
}
}
}
},
"/vehicles/{id}/trips": {
"get": {
"tags": [
"Vehicles"
],
"summary": "retrieve trips for a specific vehicle in a specified time period",
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"style": "simple",
"schema": {
"type": "string"
}
},
{
"name": "from",
"in": "query",
"required": true,
"style": "form",
"schema": {
"type": "string",
"format": "date-time"
}
},
{
"name": "to",
"in": "query",
"required": true,
"style": "form",
"schema": {
"type": "string",
"format": "date-time"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/VehicleTrip"
}
}
}
}
},
"401": {
"description": "Invalid Credentials"
},
"403": {
"description": "Insufficient Permissions"
}
}
}
}
},
"components": {
"schemas": {
"AuthorizationBody": {
"type": "object",
"properties": {
"client_id": {
"type": "string",
"nullable": true
},
"client_secret": {
"type": "string",
"nullable": true
}
},
"additionalProperties": false
},
"Charger": {
"type": "object",
"properties": {
"depotId": {
"type": "string",
"nullable": true
},
"id": {
"type": "string",
"nullable": true
},
"name": {
"type": "string",
"nullable": true
},
"serialNumber": {
"type": "string",
"nullable": true
},
"vendor": {
"type": "string",
"nullable": true
},
"lastHeartBeat": {
"type": "string",
"format": "date-time",
"nullable": true
},
"maxCurrent": {
"type": "integer",
"format": "int32",
"nullable": true
},
"maxPower": {
"type": "integer",
"format": "int32",
"nullable": true
},
"meterType": {
"type": "string",
"nullable": true
},
"ocppProtocol": {
"type": "string",
"nullable": true
},
"voltage": {
"type": "integer",
"format": "int32",
"nullable": true
}
},
"additionalProperties": false
},
"ChargingTransaction": {
"type": "object",
"properties": {
"id": {
"type": "string",
"nullable": true
},
"transactionPk": {
"type": "integer",
"format": "int32"
},
"connectorId": {
"type": "integer",
"format": "int32"
},
"connectorName": {
"type": "string",
"nullable": true
},
"chargerPk": {
"type": "integer",
"format": "int32"
},
"chargerId": {
"type": "string",
"nullable": true
},
"chargerName": {
"type": "string",
"nullable": true
},
"depotId": {
"type": "string",
"nullable": true
},
"organizationId": {
"type": "string",
"nullable": true
},
"ocppTag": {
"type": "string",
"nullable": true
},
"stopReason": {
"type": "string",
"nullable": true
},
"stopEventActor": {
"type": "string",
"nullable": true
},
"startTimestamp": {
"type": "string",
"format": "date-time"
},
"stopTimestamp": {
"type": "string",
"format": "date-time",
"nullable": true
},
"updatedTimestamp": {
"type": "string",
"format": "date-time"
},
"totalEnergyImported": {
"type": "number",
"format": "float",
"nullable": true
},
"totalEnergyExported": {
"type": "number",
"format": "float",
"nullable": true
},
"meanPowerImport": {
"type": "number",
"format": "float",
"nullable": true
},
"maxPowerImport": {
"type": "number",
"format": "float",
"nullable": true
},
"latestPowerImport": {
"type": "number",
"format": "float",
"nullable": true
},
"meanPowerExport": {
"type": "number",
"format": "float",
"nullable": true
},
"maxPowerExport": {
"type": "number",
"format": "float",
"nullable": true
},
"latestPowerExport": {
"type": "number",
"format": "float",
"nullable": true
},
"meanPowerOffered": {
"type": "number",
"format": "float",
"nullable": true
},
"maxPowerOffered": {
"type": "number",
"format": "float",
"nullable": true
},
"latestPowerOffered": {
"type": "number",
"format": "float",
"nullable": true
},
"meanAmperageImport": {
"type": "number",
"format": "float",
"nullable": true
},
"maxAmperageImport": {
"type": "number",
"format": "float",
"nullable": true
},
"latestAmperageImport": {
"type": "number",
"format": "float",
"nullable": true
},
"meanAmperageOffered": {
"type": "number",
"format": "float",
"nullable": true
},
"maxAmperageOffered": {
"type": "number",
"format": "float",
"nullable": true
},
"latestAmperageOffered": {
"type": "number",
"format": "float",
"nullable": true
},
"minVoltage": {
"type": "number",
"format": "float",
"nullable": true
},
"meanVoltage": {
"type": "number",
"format": "float",
"nullable": true
},
"maxVoltage": {
"type": "number",
"format": "float",
"nullable": true
},
"latestVoltage": {
"type": "number",
"format": "float",
"nullable": true
},
"minFrequency": {
"type": "number",
"format": "float",
"nullable": true
},
"meanFrequency": {
"type": "number",
"format": "float",
"nullable": true
},
"maxFrequency": {
"type": "number",
"format": "float",
"nullable": true
},
"latestFrequency": {
"type": "number",
"format": "float",
"nullable": true
},
"startingTemperature": {
"type": "number",
"format": "float",
"nullable": true
},
"minTemperature": {
"type": "number",
"format": "float",
"nullable": true
},
"meanTemperature": {
"type": "number",
"format": "float",
"nullable": true
},
"maxTemperature": {
"type": "number",
"format": "float",
"nullable": true
},
"latestTemperature": {
"type": "number",
"format": "float",
"nullable": true
},
"startingSoc": {
"type": "number",
"format": "float",
"nullable": true
},
"latestSoc": {
"type": "number",
"format": "float",
"nullable": true
},
"timezone": {
"type": "string",
"nullable": true
},
"commissioningState": {
"type": "string",
"nullable": true
},
"plugInTime": {
"type": "string",
"format": "date-time",
"nullable": true
},
"plugOutTime": {
"type": "string",
"format": "date-time",
"nullable": true
},
"nodeId": {
"type": "string",
"nullable": true
},
"nodeName": {
"type": "string",
"nullable": true
},
"isDefaultNode": {
"type": "boolean",
"nullable": true
},
"energyEfficiency": {
"type": "number",
"format": "float",
"nullable": true
}
},
"additionalProperties": false
},
"Depot": {
"type": "object",
"properties": {
"id": {
"type": "string",
"nullable": true
},
"name": {
"type": "string",
"nullable": true
},
"address": {
"type": "string",
"nullable": true
},
"latitude": {
"type": "number",
"format": "float",
"nullable": true
},
"longitude": {
"type": "number",
"format": "float",
"nullable": true
},
"isLoadBalanced": {
"type": "boolean"
},
"powerCeiling": {
"type": "integer",
"format": "int32",
"nullable": true
},
"timezone": {
"type": "string",
"nullable": true
},
"v2GEnrolled": {
"type": "boolean",
"nullable": true
}
},
"additionalProperties": false
},
"DepotUtilizationInterval": {
"enum": [
"minutes_1",
"minutes_5",
"minutes_15",
"minutes_30"
],
"type": "string"
},
"DepotUtilizations": {
"type": "object",
"properties": {
"activePowerImport": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Utilization"
},
"nullable": true
},
"activePowerExport": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Utilization"
},
"nullable": true
},
"powerOffered": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Utilization"
},
"nullable": true
},
"totalEnergyImport": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Utilization"
},
"nullable": true
},
"totalEnergyExport": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Utilization"
},
"nullable": true
}
},
"additionalProperties": false
},
"Utilization": {
"type": "object",
"properties": {
"timestamp": {
"type": "string",
"format": "date-time"
},
"value": {
"type": "number",
"format": "float"
}
},
"additionalProperties": false
},
"Vehicle": {
"type": "object",
"properties": {
"id": {
"type": "string",
"nullable": true
},
"occpTag": {
"type": "string",
"nullable": true
},
"depotId": {
"type": "string",
"nullable": true
},
"name": {
"type": "string",
"nullable": true
},
"vin": {
"type": "string",
"nullable": true
},
"make": {
"type": "string",
"nullable": true
},
"model": {
"type": "string",
"nullable": true
},
"year": {
"type": "integer",
"format": "int32"
},
"batterySize": {
"type": "integer",
"format": "int32",
"nullable": true
},
"estimatedRange": {
"type": "integer",
"format": "int32",
"nullable": true
},
"weightPounds": {
"type": "number",
"format": "float",
"nullable": true
}
},
"additionalProperties": false
},
"VehicleStatus": {
"type": "object",
"properties": {
"vehicleId": {
"type": "string",
"nullable": true
},
"ambientTemperatureC": {
"type": "number",
"format": "float",
"nullable": true
},
"battery12VPotential": {
"type": "number",
"format": "float",
"nullable": true
},
"estimatedRangeRemainingKM": {
"type": "number",
"format": "float",
"nullable": true
},
"soC": {
"type": "number",
"format": "float",
"nullable": true
},
"lastTelematic": {
"type": "string",
"format": "date-time",
"nullable": true
},
"status": {
"type": "string",
"nullable": true
}
},
"additionalProperties": false
},
"VehicleTrip": {
"type": "object",
"properties": {
"id": {
"type": "string",
"nullable": true
},
"vehicleId": {
"type": "string",
"nullable": true
},
"averageSpeedMPH": {
"type": "number",
"format": "float",
"nullable": true
},
"distanceMiles": {
"type": "number",
"format": "float",
"nullable": true
},
"routeStart": {
"type": "string",
"format": "date-time",
"nullable": true
},
"routeEnd": {
"type": "string",
"format": "date-time",
"nullable": true
},
"efficiency_kWhPerMile": {
"type": "number",
"format": "float",
"nullable": true
},
"startSoC": {
"type": "number",
"format": "float",
"nullable": true
},
"endSoc": {
"type": "number",
"format": "float",
"nullable": true
}
},
"additionalProperties": false
}
},
"securitySchemes": {
"Bearer": {
"type": "apiKey",
"description": "Enter the Bearer Authorization string as following: `Bearer my-jwt`",
"name": "Authorization",
"in": "header"
}
}
},
"security": [
{
"Bearer": [ ]
}
]
}