# teslamateapi

> TeslaMateApi is a self-hosted, open-source REST API exposing TeslaMate vehicle data as JSON with endpoints for status, drives, charges, and remote commands.

- **Category:** Vehicle Management
- **Licence:** MIT
- **Latest version:** v1.25.0
- **Open source:** oss
- **Languages:** Go
- **Platforms:** Docker Compose
- **Tags:** PostgreSQL, API, REST API, Mqtt, Tesla, Docker, Golang, Self Hosted, Teslamate, Restful Api, Vehicle Data

## Description

TeslaMateApi is a Go-based RESTful API that connects to a self-hosted TeslaMate instance's PostgreSQL database and MQTT broker to serve vehicle data as JSON. It provides endpoints for cars, battery health, charges, drives, vehicle status, software updates, and global settings. Commands such as wake up, climate control, door lock/unlock, and charging can be sent to the vehicle when enabled via environment variables. Authentication is handled via a user-defined API token (minimum 32 characters) passed as a Bearer token, custom header, or query parameter. The project is deployed via Docker (image tobiasehlert/teslamateapi) with docker-compose, requiring a PostgreSQL database and MQTT broker (typically the same ones used by TeslaMate). It is licensed under MIT and actively maintained.

## Links

- [Homepage](https://github.com/tobiasehlert/teslamateapi)
- [Docker](tobiasehlert/teslamateapi)
- [GitHub Repository](https://github.com/tobiasehlert/teslamateapi)

---
Source: https://selfhost.directory/project/teslamateapi