Create car
const url = 'https://api-uat.flinkey.de/v3/cars';const options = { method: 'PUT', headers: { 'Customer-ID': 'example', 'flinkey-API-Key': '<flinkey-API-Key>', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"name":"VW Golf Fleet-01"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api-uat.flinkey.de/v3/cars \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Customer-ID: example' \ --header 'flinkey-API-Key: <flinkey-API-Key>' \ --data '{ "name": "VW Golf Fleet-01" }'Purpose
Create a new car in the selected customer context.
A car represents the vehicle access object used by the flinkey API.
For developer integrations, the flinkey BLE Box is abstracted behind the Car concept.
The returned car ID can be used to inspect, update or assign access to the created car.
When to use this operation
Use this operation when the partner backend needs to create a new flinkey car for a partner vehicle.
Typical situations:
- initial vehicle setup,
- adding a new vehicle to the partner fleet,
- creating a flinkey car after no existing mapping was found,
- preparing a vehicle before assignment creation,
- onboarding a new vehicle type or fleet segment.
In most integrations, the partner backend should first check whether a flinkey car already exists for the partner vehicle.
Do not create duplicate cars for the same partner vehicle without reconciliation.
After successful creation, persist the mapping between the partner vehicle ID and the flinkey carId.
Validation notes
PROD validation result:
PUT /carswith the minimal body{ "name": "{{CAR_NAME}}" }returned201 Created.- The response body contained only a numeric
id. - A subsequent
GET /cars/{carId}returned the supplied name. - Optional fields omitted during creation were returned as empty strings in the validated lookup response:
description,vin,licensePlate,brandandmodel. - The operation completed synchronously and produced no webhook.
Async behavior
Synchronous.
The new car ID is returned directly in the API response. Retrieve the complete car object with GET /cars/{carId}.
Webhook result
No.
This operation does not produce a webhook result.
Security notes
Never log:
flinkey-API-Key,- bearer token,
- full request headers.
Car identifiers are environment-specific.
Do not mix UAT and PROD car IDs.
Use placeholders in documentation, examples, screenshots and AI prompts.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Customer database ID
Request Bodyrequired
Section titled “Request Bodyrequired”object
Car name
Optional car description
Vehicle identification number
Vehicle license plate
Vehicle brand
Vehicle model
Example
{ "name": "VW Golf Fleet-01"}Responses
Section titled “Responses”Car was created successfully
object
Newly created car database ID
Example
{ "id": 12345}Invalid subscription key or missing / invalid access token
Recommended handling: Check flinkey-API-Key, bearer token and environment configuration
Server-side error
Recommended handling: Retry later if appropriate and escalate if persistent
