> For the complete documentation index, see [llms.txt](https://devhub.autograb.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://devhub.autograb.com/vehicle-search/vin-and-registration-conversion.md).

# VIN & Registration Conversion

You can use this service to convert a VIN to Registration or the same in reverse. This can be useful when you require only that datapoint and no other descriptive information about the vehicle. If you need more data like year, make or model you should use the standard[ registration search](/vehicle-search/registration-plate-search.md) endpoint.

## Get vehicle registration details by VIN

> Get vehicle registration details by VIN

```json
{"openapi":"3.1.1","info":{"title":"AutoGrab API","version":"2.0.0"},"servers":[{"url":"https://api.autograb.com.au"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"ApiKey"}}},"paths":{"/v2/vehicles/vins/{vin}/registration":{"get":{"summary":"Get vehicle registration details by VIN","description":"Get vehicle registration details by VIN","parameters":[{"name":"vin","type":"string","required":true,"description":"The VIN number to lookup","in":"path"},{"name":"region","type":"string","enum":["au","nz","uk","my"],"description":"The region to perform this request in","in":"query"},{"name":"reference_id","type":"string","required":false,"description":"An optional reference id which will be stored against usage records if supplied","in":"query"}],"responses":{"200":{"description":"Success","schema":{"type":"object","properties":{"success":{"type":"boolean"},"plate":{"type":"string"},"plate_state":{"type":"string"},"vin":{"type":"string"}},"required":["success","plate","plate_state","vin"]}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ErrorSchema"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ErrorSchema"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ErrorSchema"}}},"tags":["Vehicles"]}}}}
```

### Example Usage

#### Convert a VIN to a plate

You can convert a VIN to its current related registration plate and state using the request below.&#x20;

{% code overflow="wrap" %}

```json
curl --location 'https://api.autograb.com.au/v2/vehicles/vins/LRWYHCFS6NC428809/registration?region=au' \
--header 'ApiKey: YOURKEY'
```

{% endcode %}

{% code overflow="wrap" %}

```json
{
    "success": true,
    "plate": "CCU542",
    "plate_state": "VIC",
    "vin": "LRW3F7FA1MC176142"
}
```

{% endcode %}

#### Convert a plate and state to a VIN

You can convert a plate and state to its current related VIN using the request below.&#x20;

{% code title="" overflow="wrap" %}

```json
curl --location 'https://api.autograb.com.au/v2/vehicles/registrations/CCU542/vin?region=au&state=VIC' \
--header 'ApiKey: YOURKEY'
```

{% endcode %}

```json
{
    "success": true,
    "plate": "CCU542",
    "plate_state": "VIC",
    "vin": "LRWYHCFS6NC428809"
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://devhub.autograb.com/vehicle-search/vin-and-registration-conversion.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
