API Response with 401 - apiKey invalid. apiKey not enabled

Problem statement: When using HERE APIs, and the API responds with a 401 error code with a message "apiKey invalid. apiKey not enabled".

Root cause: the apiKey is not enabled.

Solution:

please check if you have enable the apiKey on platform.here.com/admin/apps :