Unable to use JWT-style API key with Directions REST API — need classic API key

Hi,

I created a new account on OpenRouteService and received a JWT-style API key (starting with “eyJ…”). However, when I try to use this key with the Directions REST API (e.g. for foot-walking directions), I receive errors such as 403 Forbidden or empty responses.

From documentation and previous posts, I understand that a classic (plain-text) API key is required for the REST endpoints, but I cannot find any option in my dashboard to generate one. I only see the JWT key.

How can I obtain a classic API key for using with the /v2/directions/foot-walking REST endpoint?

Thank you in advance!

Hey,

this API key should work regardless - it is an artifact of the migration of our user management, see this post: Upcoming Migration to HeiGIT User Management (2025-02-25 10:00 CET)

It is not a JWT token - have a look at our API docs on how to use the key:

If you still have issues with your key, get in touch at support [at] smartmobility.heigit.org
Please include the request you issued and how you did so in your message.

Best regards