# Recieving ApiError: 400 when using local host

**URL:** https://ask.openrouteservice.org/t/recieving-apierror-400-when-using-local-host/4782
**Category:** openrouteservice
**Created:** [April 14, 2023, 6:33am UTC](https://ask.openrouteservice.org/t/recieving-apierror-400-when-using-local-host/4782 "2023-04-14T06:33:43Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![amandus](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/amandus/32/669_2.png) [@amandus](https://ask.openrouteservice.org/u/amandus)
#### Post date: [April 17, 2023, 9:10am UTC](https://ask.openrouteservice.org/t/recieving-apierror-400-when-using-local-host/4782/3 "2023-04-17T09:10:04Z")

</div>

Hi @sander_ruben,

i’m not sure how adding `/driving-car` to the API key would fix any request 😅 .  
Also please provide the full request in these cases.

With a local ors instance you won’t get the `/optimization` endpoint. For vroom setup see e.g.

> [@I started vroom + ors, but I cannot use optimization endpoint](https://ask.openrouteservice.org/t/i-started-vroom-ors-but-i-cannot-use-optimization-endpoint/3637):
>
> I’ve already started a docker compose instance and everything seems to be running, directions api works, all health check green. Vroom also started listening on port 3000. But I cannot make any api calls to [http://localhost:8080/ors/v2/optimization](http://localhost:8080/ors/v2/optimization) endpoint, it gives me 404 error. Is there something else I need to setup to enable optimization? Thanks a lot!

or their documentation.

Best regards.

---

_[View the full topic](https://ask.openrouteservice.org/t/recieving-apierror-400-when-using-local-host/4782)._
