> For the complete documentation index, see [llms.txt](https://docs.imperialcad.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.imperialcad.app/api-and-integrations/api-integrations/civilian-endpoints/register-vehicle.md).

# Register Vehicle

This endpoint allows you to create a vehicle.

{% hint style="warning" %}
This endpoint requires **any** ImperialCAD subscription.
{% endhint %}

### CreateVehicle(data, callback)

<mark style="color:green;">`POST`</mark> `https://imperialcad.app/api/1.1/wf/registerVehicle`

***

#### Request Body

| Name           | Type   | Description                        |
| -------------- | ------ | ---------------------------------- |
| `ssn`          | string | Social Security Number of Civilian |
| `plate`        | string | License Plate                      |
| `vehicleModel` | string | Model                              |
| `color`        | string | Color                              |
| `year`         | string | Year                               |
| `make`         | string | Make                               |

***

{% tabs %}
{% tab title="Example" %}

```lua
exports["ImperialCAD"]:CreateVehicle({
    ssn = "JD321",
    plate = "ABC123",
    vehicleModel = "Charger",
    color = "Black",
    year = "2022",
    make = "Dodge"
  }, function(success, res)
    if success then print("Vehicle registered.") else print("❌ Failed:", res) end
end)
```

{% endtab %}

{% tab title="Response of Example" %}

```lua
{
  "status": "success",
  "response": {
    "vin": "Z57SM7X7WKLW8AM0Z"
  }
}
```

{% endtab %}
{% endtabs %}
