Register a new SDK user

:zap: API Reference: Register a new SDK user


The method is described in the part SDK log in and API Authentication

It generates a unique DeviceTokenDeviceToken - It is a unique User ID that is generated by Damoov telematics platform and used by Telematics SDK as a user identifier. SDK connects all telematics data to the DeviceToken and transfers to Damoov platform. Then the DeviceToken is used across all our APIs and services as a unique app user ID. that you store in your Database and link to your user details. The DeviceToken is a unique key that you use across all our services.

Response

{
  "DeviceToken": "",
  "AccessToken": {
    "Token": "string",
    "ExpiresIn": 0
  },
  "RefreshToken": "string"
}

Where

DeviceToken - unique user ID
AccessToken - JWT access token for API access
ExpiresIn - JWT access token lifetime.
RefreshToken - a token that is required for JWT access token update after the last one expired.

Empty Body

By default, you can use an empty body to generate a DeviceToken.

curl --request POST \
  --url https://user.telematicssdk.com/v1/Registration/create \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --header 'InstanceId: UUID ' \
  --header 'InstanceKey: UUID ' \
  --data '{}'

Extended body

For your convenience, you can add user details, including Client ID, and other user details. all these fields are searchable in DataHub

curl --request POST \
  --url https://user.telematicssdk.com/v1/Registration/create \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --header 'InstanceId: UUID' \
  --header 'InstanceKey: UUID' \
  --data '
{
  "UserFields": {
    "ClientId": "ClientID"
  },
  "Email": "",
  "Phone": "",
  "Nickname": "",
  "LastName": "",
  "FirstName": ""
}
'

Did this page help you?