Getting Started
- Accounts
- Charging Sessions
- Charging Stations
- Drivers
- Estimations
- Fleets
- Invoices
- Payment Methods
- Reports
- Reservations
- Transactions
- Vehicles
- Vehicle Telemetries
- Webhook Endpoints
Drivers
Create a driver
Creates a new Driver object. Drivers store personal, licensing, and notification preferences so you can track who is responsible for vehicle usage and charging sessions.
POST
/
drivers
Copy
curl --request POST \
--url https://api.chargeapi.co/v1/drivers \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"email": "<string>",
"phone": "<string>",
"license_number": "<string>",
"preferences": {
"charging_speed": null,
"notifications": null,
"currency": null,
"payment_method": null,
"max_price_per_kwh": null,
"preferred_cpos": null,
"preferred_charging_stations": null
},
"metadata": {}
}'
Copy
{
"id": null,
"object": null,
"created": null,
"email": null,
"license_number": null,
"name": null,
"phone": null,
"preferences": {
"charging_speed": null,
"notifications": null,
"currency": null,
"payment_method": null,
"max_price_per_kwh": null,
"preferred_cpos": null,
"preferred_charging_stations": null
},
"status": null,
"updated": null,
"vehicles": null,
"wallet_balance": null
}
Body
application/json
Response
200
application/json
Returns the newly created Driver object.
Copy
curl --request POST \
--url https://api.chargeapi.co/v1/drivers \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"email": "<string>",
"phone": "<string>",
"license_number": "<string>",
"preferences": {
"charging_speed": null,
"notifications": null,
"currency": null,
"payment_method": null,
"max_price_per_kwh": null,
"preferred_cpos": null,
"preferred_charging_stations": null
},
"metadata": {}
}'
Copy
{
"id": null,
"object": null,
"created": null,
"email": null,
"license_number": null,
"name": null,
"phone": null,
"preferences": {
"charging_speed": null,
"notifications": null,
"currency": null,
"payment_method": null,
"max_price_per_kwh": null,
"preferred_cpos": null,
"preferred_charging_stations": null
},
"status": null,
"updated": null,
"vehicles": null,
"wallet_balance": null
}
Assistant
Responses are generated using AI and may contain mistakes.