Privi Car: issue a digital key
car_key_issueIssue a time-limited, scope-limited key for a driver, valet, shop or buyer, signed Ed25519 + ML-DSA-87. Returns a token (shown once) for the grantee. A 'history' key opens car_history. unlock / drive / trunk / valet / service keys are credentials for hardware that checks them with car_key_check; Privi Car itself never opens or starts a vehicle.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"vehicle": "<vehicle>",
"owner_key": "<owner_key>",
"grantee": "<grantee>",
"scopes": "<scopes>"
},
"name": "car_key_issue"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hours | No | How long the key lasts, in hours (default 24, up to 366 days) | |
| scopes | Yes | One or more of: history, unlock, drive, trunk, valet, service | |
| grantee | Yes | Who the key is for (stored only as a hash) | |
| vehicle | Yes | vehicle_id (car_...) or the 17-character VIN | |
| owner_key | Yes | The owner_key (carkey_...) returned by car_register | |
| not_before | No | Optional ISO 8601 start time; default now |