Create a device licence

To create a new device licence, you must be a Project Admin. This means that you have either created a new project through admin.tracking.here.com or you are a member of a project with Project Admin role. The project is assigned a unique appId that should be used for provisioning a new device license.

Creating a licence

Prerequisites

Log in

curl -X POST \
  https://tracking.api.here.com/users/v2/login \
  -H 'Content-Type: application/json' \
  -d '{
    "email": "{userEmail}",
    "password": "{userPassword}"
}'

This will return a HERE Account accessToken.

Get project's application id

curl -X GET \
  'https://tracking.api.here.com/registry/v2/licenses' \
  -H 'Authorization: Bearer {accessToken}' \
  -H 'Content-Type: application/json'

This will return a list of projects you are member of. Each project has a unique appId. From the list select appId you want to provision the device to. In this guide, we will refer to this as the projectAppId.

Request one device licence

You may request one device license using this request

curl -X POST \
  https://tracking.api.here.com/registry/v2/{projectAppId}/one-device \
  -H 'Authorization: Bearer {accessToken}' \
  -H 'Content-Type: application/json'

Request multiple device licences

Create device license job

curl -X POST \
  https://tracking.api.here.com/registry/v2/{projectAppId}/devices \
  -H 'Authorization: Bearer {accessToken}' \
  -H 'Content-Type: application/json' \
  -d '{
    "count": 5
}'

This will return a jobId which can be used to track the progress of the licence creation. For a small number of devices, this will be almost instantaneous. For evaluation, you can create a maximum of 10 device licences.

Check job progress

curl -X GET \
  'https://tracking.api.here.com/registry/v2/{jobId}/status' \
  -H 'Authorization: Bearer {accessToken}' \
  -H 'Content-Type: application/json'

Retrieve licences

curl -X GET \
  'https://tracking.api.here.com/registry/v2/{jobId}/results' \
  -H 'Authorization: Bearer {accessToken}' \
  -H 'Content-Type: application/json'

results matching ""

    No results matching ""