This topic describes how to use OAuth tokens on the HERE developer portal. For instructions on using tokens on the HERE platform, see OAuth tokens.
Token credentials conform to the OAuth 2.0 industry standard protocol for bearer access tokens. HERE provides REST APIs to obtain these secure access tokens that your application can use for the purpose of authenticating requests to the HERE platform for up to 24 hours.
To use OAuth 2.0 tokens, follow these steps:
For instructions on getting a token, see Code an OAuth 2.0 token request.
You have now successfully obtained an access bearer token to use in making REST requests to HERE APIs.
Include the token in the HTTP Authorization header of your REST requests as a bearer token:
Authorization: Bearer <token>
Sample REST Request
GET /maptile/2.1/maptile/newest/normal.day/13/4400/2686/256/png8 Host: 1.base.maps.ls.hereapi.com Authorization: Bearer eyJhbGceOyJSAMPLEiIsImN0eSISAMPLEt7VTFIllwIM0cKNCjN2WCCTqlwEEmk-t3gx1BpqUFoeBSAMPLEvhj8nl-RBGcyoljY... Cache-Control: no-cache
If you are upgrading to API key and currently have old app code credentials, you can remove them by clicking Remove APP CODE credentials and use your new API key credentials in their place.