Reitti provides a REST API that allows you to interact with your location data programmatically. This is useful for automation, integrations with other systems, and custom applications.
Authentication
All API endpoints require authentication using an API token. You can provide the token in two ways:
- HTTP Header: Include the token in the
X-API-TOKENheader - Query Parameter: Add the token as a
tokenparameter in the URL
Example using header:
curl -H "X-API-TOKEN: your-api-token" https://your-reitti-instance/api/v1/latest-location
Example using query parameter:
curl https://your-reitti-instance/api/v1/latest-location?token=your-api-token