Skip to main content

White Label API Reference

The myDevices IoT platform is composed of microservices. This allows us to maintain a high level of uptime and allows us to ensure speed and code quality in each feature. The API is therefore naturally organized in a group of services based upon the feature provided.

Companies

Methods

MethodURINameSummary
GET/v1.0/admin/companiesCompanyRetrieve all companies for current application
GET/v1.0/admin/companies/{company_id}Company ListRetrieve a company
GET/v1.0/admin/companies/countCompany CountCount all companies for current application

Query Parameters

NameSourceTypeGo typeSeparatorRequiredDefaultDescription
application_idquerystringstring
limitquerynumberfloat6450
pagequerynumberfloat64
user_idquerystringstring

Responses

CodeStatusDescriptionHas headersSchema
200OKSuccessful company retrievalschema
400Bad RequestBad request sent to serverschema
401UnauthorizedYou are unauthorizedschema
403ForbiddenYou are forbidden to perform this actionschema

Locations

GET /v1.0/admin/locations

Security Requirements

  • token
  • jwt
  • explicit

Parameters

NameSourceTypeGo typeSeparatorRequiredDefaultDescription
application_idquerystringstring
company_idquerynumberfloat64
limitquerynumberfloat6450
pagequerynumberfloat64
user_idquerystringstring

All responses

CodeStatusDescriptionHas headersSchema
200OKSuccessful location retrievalschema
400Bad RequestBad request sent to serverschema
401UnauthorizedYou are unauthorizedschema
403ForbiddenYou are forbidden to perform this actionschema

Responses

200 - Successful location retrieval

Status: OK

Schema

Model11

400 - Bad request sent to server

Status: Bad Request

Schema

ErrorsBadRequestModel

401 - You are unauthorized

Status: Unauthorized

Schema

ErrorsUnauthorizedModel

403 - You are forbidden to perform this action

Status: Forbidden

Schema

ErrorsForbiddenModel

Count all locations for current application (getV10AdminLocationsCount)

GET /v1.0/admin/locations/count

Security Requirements

  • token
  • jwt
  • explicit

Parameters

NameSourceTypeGo typeSeparatorRequiredDefaultDescription
application_idquerystringstring
company_idquerynumberfloat64
user_idquerystringstring

All responses

CodeStatusDescriptionHas headersSchema
200OKSuccessful location count retrievalschema
400Bad RequestBad request sent to serverschema
401UnauthorizedYou are unauthorizedschema
403ForbiddenYou are forbidden to perform this actionschema

Responses

200 - Successful location count retrieval

Status: OK

Schema

CountResponseModel

400 - Bad request sent to server

Status: Bad Request

Schema

ErrorsBadRequestModel

401 - You are unauthorized

Status: Unauthorized

Schema

ErrorsUnauthorizedModel

403 - You are forbidden to perform this action

Status: Forbidden

Schema

ErrorsForbiddenModel

Retrieve a location (getV10AdminLocationsLocation_id)

GET /v1.0/admin/locations/{location_id}

Security Requirements

  • token
  • jwt
  • explicit

Parameters

NameSourceTypeGo typeSeparatorRequiredDefaultDescription
location_idpathnumberfloat64

Responses

CodeStatusDescriptionHas headersSchema
200OKSuccessful location retrievalschema
400Bad RequestBad request sent to serverschema
401UnauthorizedYou are unauthorizedschema
403ForbiddenYou are forbidden to perform this actionschema
404Not FoundRequested resource not foundschema