KEYSTONE API Standard
KEYSTONE API Standard is a comprehensive specification developed by AETHON Engineering as part of the KEYSTONE project (CORDIS: 101103740), an initiative funded by the European Union’s Horizon Europe programme under the auspices of DG CINEA (European Climate, Infrastructure and Environment Executive Agency). This standard is designed to facilitate seamless data exchange within the logistics sector through a set of RESTful APIs.
It enables streamlined integration across multiple stakeholders, including logistics companies, enforcement agencies, vehicle operators, drivers, and other entities engaged in transport operations.
This standard supports interoperability and digitalization across the European transport ecosystem.
Relationship between the KEYSTONE API Standard and Integrating Systems
The relationship between the KEYSTONE API Standard and the integrating systems can be conceptually illustrated as follows:
Conceptually, the KEYSTONE API Standard works as a guidance framework: every Data Producer designs their API according to the shared rules, and every Data Consumer queries APIs that adhere to this guidance. This align-to-the-standard approach replaces tangled point-to-point integrations with a scalable, maintainable architecture. Supplementary tools, like client libraries and modular access scripts, further streamline development, making implementation faster and less error-prone.
Key Features
- Transport Operations: Manage and track transport operations, including real-time data for transportation phases, route planning, and logistics coordination.
- Vehicle Information: Access data related to vehicles used in transport operations, including geolocation, registration details, and maintenance status.
- Driver Information: Retrieve driver data, including qualifications, licenses, tachograph cards, and violation records.
This specification ensures that users can integrate the KEYSTONE API Standard into their systems, enabling smooth, seamless, and secure communication within the logistics ecosystem.
API Structure
The KEYSTONE API Standard is divided into the following main categories of endpoints:
- Transport Operations: Covers all aspects of managing and tracking transport operations.
- Vehicles: Provides access to detailed vehicle data, including geolocation and status.
- Drivers: Includes information about driver qualifications, licenses, and traffic violations.
Each path supports operations such as:
- Create (POST): Add new data.
- Retrieve (GET): Fetch existing data.
- Update (PUT): Replace the entire resource.
- Partial Update (PATCH): Modify specific fields.
- Delete (DELETE): Remove data.
Tags
The API uses tags to categorize endpoints into logical groups:
- Transport Operation: Endpoints for managing transport operations, including schedules, phases, and documents.
- Vehicle: Endpoints for vehicle management, including geolocation, registration, and maintenance.
- Driver: Endpoints for managing driver-related information, such as license and violations.
Paths & Endpoints
The API defines the following key paths and operations:
Transport Operations
/transport-operations/
: Create new transport operation data or retrieve all transport operation data./transport-operations/{transportOperationId}/
: Retrieve, update, or delete specific transport operation data using transport ID./transport-operations/{transportOperationId}/schedules/
: Retrieve or update schedule data related to a specific transport operation using transport ID./transport-operations/{transportOperationId}/phases/
: Retrieve or append phase data related to a specific transport operation using transport ID./transport-operations/{transportOperationId}/phases/{phaseId}/
: Retrieve, update, or delete specific phase data using transport ID and phase ID./transport-operations/{transportOperationId}/documents/
: Retrieve or append the international consignment notes data related to a specific transport operation using transport ID./transport-operations/{transportOperationId}/documents/{referenceCode}/
: Retrieve, update, or delete specific the international consignment notes data using transport ID and reference code./transport-operations/{countryCode}/{plateNumber}/
: Retrieve transport operation data using country code and license plate number./transport-operations/{countryCode}/{plateNumber}/schedules/
: Retrieve the schedule of a transport operation using country code and license plate number./transport-operations/{countryCode}/{plateNumber}/phases/
: Retrieve phase data of a transport operation using country code and license plate number./transport-operations/{countryCode}/{plateNumber}/phases/{phaseId}
: Retrieve specific phase data of a transport operation using country code, license plate number, and phase ID./transport-operations/{countryCode}/{plateNumber}/documents/
: Retrieve the international consignment notes data of a transport operation using country code and license plate number./transport-operations/{countryCode}/{plateNumber}/documents/{referenceCode}/
: Retrieve specific the international consignment notes data of a transport operation using country code, license plate number, and reference code.
Vehicles
/vehicles/
: Create new vehicle data or retrieve all vehicle data./vehicles/{countryCode}/{plateNumber}/
: Retrieve, update, or delete vehicle data by country code and license plate number./vehicles/{countryCode}/{plateNumber}/geolocations/
: Retrieve or append new geolocation data for a specific vehicle by country code and license plate number./vehicles/{countryCode}/{plateNumber}/owners/
: Retrieve the owner information of a specific vehicle using country code and license plate number./vehicles/{countryCode}/{plateNumber}/insurances/
: Retrieve the insurance information of a specific vehicle using country code and license plate number./vehicles/{countryCode}/{plateNumber}/insurances/{insuranceId}/
: Retrieve specific insurance data using the country code, license plate number, and insurance ID./vehicles/{countryCode}/{plateNumber}/revisions/
: Retrieve the revision information of a specific vehicle using the country code and license plate number./vehicles/{countryCode}/{plateNumber}/revisions/{revisionId}/
: Retrieve specific revision data using the country code, license plate number, and revision ID.
Drivers
/drivers/
: Create new driver data or retrieve all driver data./drivers/{countryCode}/{vat}/
: Retrieve, update, or delete driver data by country code and vat number./drivers/{countryCode}/{vat}/licenses/
: Retrieve the driver's license information using the country code and vat number./drivers/{countryCode}/{vat}/traffic-violations/
: Retrieve the driver's traffic violation information using the country code and vat number./drivers/{countryCode}/{vat}/traffic-violations/{trafficViolationId}/
: Retrieve specific traffic violation data using the country code, vat number, and traffic violation ID./drivers/{countryCode}/{vat}/tachograph-cards/
: Retrieve the driver's tachograph card data by country code and vat number./drivers/{countryCode}/{vat}/tachograph-cards/{tachographCardId}/
: Retrieve specific tachograph card data using the country code, vat number, and tachograph card ID.
Data Schema
The API uses reusable data structures to ensure consistency:
- Transport Operation: Contains all details related to a transport operation, including phases and international consignment notes.
- Vehicle: Provides vehicle-specific details, including geolocation, registration, and maintenance information.
- Driver: Contains driver-specific information, including qualifications, licenses, and tachograph cards.
Integration Guidelines
To integrate the KEYSTONE API Standard into your system:
- Understand the Data Flow: Familiarize yourself with the data models (schemas) and interactions between endpoints.
- Authentication: Implement secure authentication mechanisms to ensure only authorized systems can interact with the API.
- Error Handling: Use standard HTTP status codes to handle errors gracefully.
- Data Validation: Validate input data before sending requests to the API.
- Version Control: Monitor updates to the API specification to ensure compatibility.
- Data Privacy: Adhere to data privacy regulations when handling sensitive information.
Follow these steps to smoothly integrate and use the KEYSTONE API Standard in your logistics management system or related applications.
Contact
For inquiries, technical support, or feedback, contact the AETHON Engineering team at info@aethon.gr.
License
PENDING