Teslemetry Charging API
The Charging API from Teslemetry — 3 operation(s) for charging.
The Charging API from Teslemetry — 3 operation(s) for charging.
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/teslemetry:teslemetry-charging-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: Teslemetry Charging API
description: Teslemetry's improved Tesla Fleet API, and real-time Fleet Telemetry stream.
version: 2.0.0
servers:
- url: https://api.teslemetry.com
description: Global DNS load balancer
- url: https://na.teslemetry.com
description: North America region load balancer
- url: https://eu.teslemetry.com
description: Europe region load balancer
security:
- header: []
- query: []
tags:
- name: Charging
paths:
/api/1/dx/charging/history:
get:
summary: Charging History
tags:
- Charging
description: Returns the paginated charging history.
externalDocs:
url: https://developer.tesla.com/docs/fleet-api/endpoints/charging-endpoints#charging-history
parameters:
- schema:
type: string
in: query
name: endTime
required: false
description: End time of the windows to download charging history for (i.e "2023-07-28T11:43:45-07:00").
- schema:
type: number
in: query
name: pageNo
required: false
description: Current page number.
- schema:
type: number
in: query
name: pageSize
required: false
description: Number of records per page.
- schema:
type: string
in: query
name: sortBy
required: false
description: Field to sort by.
- schema:
type: string
enum:
- ASC
- DESC
in: query
name: sortOrder
required: false
description: Sort order (ASC or DESC).
- schema:
type: string
in: query
name: startTime
required: false
description: Start time of the windows to download charging history for (i.e "2023-07-27T11:43:45-07:00").
- schema:
type: string
in: query
name: vin
required: false
description: Vehicle Identification Number (VIN) of the selected vehicle.
security:
- header: []
- query: []
responses:
'400':
description: Error response
content:
application/json:
schema:
$ref: '#/components/schemas/def-0'
'401':
description: Error response
content:
application/json:
schema:
$ref: '#/components/schemas/def-0'
'402':
description: Error response
content:
application/json:
schema:
$ref: '#/components/schemas/def-0'
'403':
description: Error response
content:
application/json:
schema:
$ref: '#/components/schemas/def-0'
'404':
description: Error response
content:
application/json:
schema:
$ref: '#/components/schemas/def-0'
'405':
description: Error response
content:
application/json:
schema:
$ref: '#/components/schemas/def-0'
'408':
description: Error response
content:
application/json:
schema:
$ref: '#/components/schemas/def-0'
'421':
description: Error response
content:
application/json:
schema:
$ref: '#/components/schemas/def-0'
'422':
description: Error response
content:
application/json:
schema:
$ref: '#/components/schemas/def-0'
'429':
description: Error response
content:
application/json:
schema:
$ref: '#/components/schemas/def-0'
'500':
description: Error response
content:
application/json:
schema:
$ref: '#/components/schemas/def-0'
'502':
description: Error response
content:
application/json:
schema:
$ref: '#/components/schemas/def-0'
'504':
description: Error response
content:
application/json:
schema:
$ref: '#/components/schemas/def-0'
operationId: getApi1DxChargingHistory
x-operation-id-source: derived
/api/1/dx/charging/invoice/{id}:
get:
summary: Charging Invoice
tags:
- Charging
description: Returns a charging invoice pdf for an event from charging history.
externalDocs:
url: https://developer.tesla.com/docs/fleet-api/endpoints/charging-endpoints#charging-invoice
parameters:
- schema:
type: string
in: path
name: id
required: true
description: Content ID. This can be obtained from the invoices.contentId of a charging history event.
security:
- header: []
- query: []
responses:
'400':
description: Error response
content:
application/json:
schema:
$ref: '#/components/schemas/def-0'
'401':
description: Error response
content:
application/json:
schema:
$ref: '#/components/schemas/def-0'
'402':
description: Error response
content:
application/json:
schema:
$ref: '#/components/schemas/def-0'
'403':
description: Error response
content:
application/json:
schema:
$ref: '#/components/schemas/def-0'
'404':
description: Error response
content:
application/json:
schema:
$ref: '#/components/schemas/def-0'
'405':
description: Error response
content:
application/json:
schema:
$ref: '#/components/schemas/def-0'
'408':
description: Error response
content:
application/json:
schema:
$ref: '#/components/schemas/def-0'
'421':
description: Error response
content:
application/json:
schema:
$ref: '#/components/schemas/def-0'
'422':
description: Error response
content:
application/json:
schema:
$ref: '#/components/schemas/def-0'
'429':
description: Error response
content:
application/json:
schema:
$ref: '#/components/schemas/def-0'
'500':
description: Error response
content:
application/json:
schema:
$ref: '#/components/schemas/def-0'
'502':
description: Error response
content:
application/json:
schema:
$ref: '#/components/schemas/def-0'
'504':
description: Error response
content:
application/json:
schema:
$ref: '#/components/schemas/def-0'
operationId: getApi1DxChargingInvoiceById
x-operation-id-source: derived
/api/1/dx/charging/sessions:
get:
summary: Charging Sessions
tags:
- Charging
description: Returns the charging session information including pricing and energy data. This endpoint is only available for business accounts that own a fleet of vehicles.
externalDocs:
url: https://developer.tesla.com/docs/fleet-api/endpoints/charging-endpoints#charging-sessions-(only-for-business-fleet-owners)
parameters:
- schema:
type: string
in: query
name: date_from
required: false
description: Start date of the windows to download charging sessions.
- schema:
type: string
in: query
name: date_to
required: false
description: End date of the windows to download charging sessions.
- schema:
type: number
in: query
name: limit
required: false
description: Number of entities to be returned.
- schema:
type: number
in: query
name: offset
required: false
description: Offset.
- schema:
type: string
in: query
name: vin
required: false
description: Vehicle Identification Number (VIN) of the selected vehicle.
security:
- header: []
- query: []
responses:
'400':
description: Error response
content:
application/json:
schema:
$ref: '#/components/schemas/def-0'
'401':
description: Error response
content:
application/json:
schema:
$ref: '#/components/schemas/def-0'
'402':
description: Error response
content:
application/json:
schema:
$ref: '#/components/schemas/def-0'
'403':
description: Error response
content:
application/json:
schema:
$ref: '#/components/schemas/def-0'
'404':
description: Error response
content:
application/json:
schema:
$ref: '#/components/schemas/def-0'
'405':
description: Error response
content:
application/json:
schema:
$ref: '#/components/schemas/def-0'
'408':
description: Error response
content:
application/json:
schema:
$ref: '#/components/schemas/def-0'
'421':
description: Error response
content:
application/json:
schema:
$ref: '#/components/schemas/def-0'
'422':
description: Error response
content:
application/json:
schema:
$ref: '#/components/schemas/def-0'
'429':
description: Error response
content:
application/json:
schema:
$ref: '#/components/schemas/def-0'
'500':
description: Error response
content:
application/json:
schema:
$ref: '#/components/schemas/def-0'
'502':
description: Error response
content:
application/json:
schema:
$ref: '#/components/schemas/def-0'
'504':
description: Error response
content:
application/json:
schema:
$ref: '#/components/schemas/def-0'
operationId: getApi1DxChargingSessions
x-operation-id-source: derived
components:
schemas:
def-0:
description: Error response
type: object
properties:
response:
type: 'null'
error:
type: string
error_description:
type: string
required:
- response
- error
- error_description
additionalProperties: false
title: errorResponse
securitySchemes:
header:
type: http
scheme: bearer
query:
type: apiKey
in: query
name: token
externalDocs:
url: https://teslemetry.com/docs/
description: Find more info here