Customer API

API

Customer API Scope

Scopes API Endpoint
device:GetList GET /device/
device:GetDetail GET /device/:id
device:GetDataUsage GET /device/:id/datausage
device:GetLocation GET /device/:id/location

Supported use cases:

  • The admin displays all existing api (id, application, scopes).
  • The admin creates an API Key for customer:
    • The admin provides the application name and scopes.
    • The admin can copy the key and give it to the customer.
  • The admin updates the existing application and/or scopes.
  • The admin regenerates new key (replace existing) for existing application:
    • The admin can copy the key and give it to the customer.
  • The admin deletes an existing API Key.

device:GetList

curl --request GET \
  --url https://abc.gomobile.work/device/ \
  --header 'Authorization: Bearer <YourAPIKey>' \
  --header 'x-enterprise-id: <YourEnterpriseID>'

device:GetDetail

curl --request GET \
  --url https://abc.gomobile.work/device/:id \
  --header 'Authorization: Bearer <YourAPIKey>' \
  --header 'x-enterprise-id: <YourEnterpriseID>'

device:GetDataUsage

curl --request GET \
  --url https://abc.gomobile.work/device/:id/datausage \
  --header 'Authorization: Bearer <YourAPIKey>' \
  --header 'x-enterprise-id: <YourEnterpriseID>'

device:GetLocation

curl --request GET \
  --url https://dpc.vostra.xyz/device/:id/location \
  --header 'Authorization: Bearer <YourAPIKey>' \
  --header 'x-enterprise-id: <YourEnterpriseID>'