# Parts API Documentation

Last updated: 2026-07-06

The current REST API is versioned under:

```text
/api/v1
```

Authentication uses Laravel Sanctum bearer tokens created from the admin panel:

```text
Admin > Webhooks & APIs > API Tokens
```

Current core API areas:

* Products and categories.
* Dynamic attribute groups and attributes.
* Vehicle makes and vehicle variants.
* Vehicle management resources: fuel types, body styles, drive trains, manufacturers, makes, models, generations, engines, gearboxes, and variants.
* Blog categories, tags, and articles.
* Customers and orders.
* Webhook endpoints, delivery logs, and retry actions.

Currency defaults to `EUR` and can be overridden with `PARTS_DEFAULT_CURRENCY`.

Plugin APIs can be added under plugin-defined prefixes such as:

```text
/api/v1/plugins/{plugin-slug}
```

Core API documentation:

* [Developer API Guide](DEVELOPER_API_GUIDE.md)

Operator and extension documentation:

* [Administrator Guide](ADMINISTRATOR_GUIDE.md)
* [Plugin Development Guide](PLUGIN_DEVELOPMENT.md)
* [Deployment Guide](DEPLOYMENT.md)

Verification commands required before work is considered complete:

```bash
composer lint:check
php artisan test
npm run format:check
npm run lint:check
npm run types:check
npm run build
```
