Link Search Menu Expand Document

Response and Accessibility Information

Jan 1 2022 at 12:00 AM

  1. Definitions
  2. HTTP Status Codes
  3. API Response Types
    1. Success Response
    2. Error Response
  4. API Access Area
  5. API Environment Classification

Definitions

IoT
Internet of Things
DAPI
Dynamic Application Programming Interface
Tenant
Tenant is an isolated environment configuration done per client. Only the client has access to the Tenant environment.
Portal
Portal gives users the ability to manage and configure edge devices and gateways.
Commander™
The Commander™ is a web application that enables users to visually represent telemetry, manipulate edge telemetry and interact with edge devices or gateways.
URL
Uniform Resource Locator
API
Application Programming Interface
HTTP
Hyper Text Transfer Protocol
HTTPS
Hyper Text Transfer Protocol Secure
SignalR
SignalR is a software library for Microsoft ASP.NET that allows server code to send asynchronous notifications to client-side web applications.

HTTP Status Codes

Http Status codes are issued by a server in response to a client’s request made to the server. Below is a list of commonly used status codes:

Status codeComment
200OK - Standard response for successful HTTP requests
201The request has been fulfilled, resulting in the creation of a new resource
202The request has been accepted for processing, but the processing has not been completed
400The server cannot or will not process the request due to an apparent client error (e.g., malformed request syntax, size too large, invalid request
401The client authentication is required and has failed or has not yet been provided.
404The requested resource could not be found.
408The server timed out waiting for the request.
500The server has encountered a situation it doesn’t know how to handle.
501The server either does not recognize the request method, or it lacks the ability to fulfil the request.
502The server was acting as a gateway or proxy and received an invalid response from the upstream server.
504The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.

API Response Types

Success Response

{
  "result": {
  },
  "messageType": "OK",
  "state": null,
  "sourceMessageID": "d760b76cb4f246e1a0c8a0a3ed7b2ad2"
}

Error Response

{
  "result": null,
  "messageType": "error",
  "errorCode": 1,
  "errorMessage": "",
  "exceptionType": "",
  "state": null,
  "sourceMessageID": "063828e55f2c43189541787b6da2d856"
}

API Access Area

Core Only
Api can only be accessed through the Core url.
Tenant Root Only
Api can only be accessed by the tenant owner through the Tenant url.
Tenant Account Only
Api can only be accessed on account level through the Tenant url.
Tenant Account and Root Only
Api can be accessed by both account level users and tenant owners, but only through the Tenant url.
Core and Tenant
Api can be accessed by both Core and Tenant urls. This includes both account level users and tenant owners.

API Environment Classification

EnvironmentPlatformsURL
DEVTenanthttps://t00.commander.dev/{accountId}/_apis/dapi/
 Portalhttps://portal.dev.iotnxt.io/
 Commanderhttps://commander.dev.iotnxt.io
QATenanthttps://t00-qa.commander.dev/{accountId}/_apis/dapi/
 Portalhttps://portal.qa.iotnxt.io/
 Commanderhttps://commander.QA.iotnxt.io
ProdTenanthttps://{platform}/{accountId}/_apis/dapi/
 Portalhttps://portal.iotnxt.io/
 Commanderhttps://{platform}