DT Developer Docs
REST APIDT StudioStatus Page
  • Getting Started
  • Overview
  • Concepts
    • Devices
    • Events
    • Topics
      • Temperature Measurement Interval
      • Motion Sensor Activity Timer
  • Data Connectors
    • Introduction to Data Connectors
    • Creating a Data Connector
    • Configuring a Data Connector
    • Receiving Events
    • Best Practices
    • Example Integrations
      • Heroku
      • Google Cloud Functions
      • AWS Lambda
      • Azure HTTP Triggers
      • IBM Cloud Actions
    • Development Guides
      • Local Development with ngrok
  • REST API
  • Introduction to REST API
  • Explore Our Endpoints
    • with cURL
    • with Python API
    • with Postman
  • Authentication
    • OAuth2
    • Basic Auth
  • Error Codes
  • Emulator API
  • Examples
    • Pagination
    • Streaming Events
    • Touch to Identify
    • Refreshing Access Token
  • Reference
  • Status Page
  • Service Accounts
    • Introduction to Service Accounts
    • Creating a Service Account
    • Managing Access Rights
    • Permissions
    • Organizational Structures
  • Other
    • Application Notes
      • Generating a Room Temperature Heatmap
      • Modeling Fridge Content Temperatures
      • Outlier Detection on Multiple Temperature Sensors
      • Simple Temperature Forecasting for Substation Transformers
      • Sensor Data Insight with Power BI and Azure
      • Third-Party Sensor Data in DT Cloud
    • Frequently Asked Question
Powered by GitBook
On this page
  • Overview
  • First Steps
  • Start Using our REST API
  • Shorthand Base URL
  • Authentication

Was this helpful?

Introduction to REST API

A quick introduction to our REST API and how to get started using it.

Last updated 1 year ago

Was this helpful?

Overview

Our REST API can be used to interact with our services programmatically. For instance, DT Studio, our easy-to-use device management web app, is itself entirely built upon the REST API. Therefore, everything you can do in DT Studio, from moving devices between projects and managing Service Accounts, can also be done via our REST API.

First Steps

The only thing you need to get started using our REST API is a Service Account with sufficient permissions for the task you want to do. While subsequent Service Accounts can be managed through the REST API itself, the initial account must be set up using DT Studio as an entry point.

Read our guide on to get started.

Start Using our REST API

Once in possession of a Service Account, a comprehensive list of every endpoint available can be found in our documentation.

Shorthand Base URL

All our REST API calls are extensions of a base URL used in either long- or short-form.

  • https://api.d21s.com/v2

  • https://api.disruptive-technologies.com/v2

This is also true for our API, an extension for the main REST API under a separate URL.

  • https://emulator.d21s.com/v2

  • https://emulator.disruptive-technologies.com/v2

Authentication

Our REST API supports two methods of authentication, both using a Service Account for access control.

  • Basic Auth: A simple username- and password-style authentication, handy for quick prototyping.

  • OAuth2 Flow: A robust exchange of credentials for an access token used to authenticate.

We recommend using the OAuth2 authentication flow when integrating with our REST API. Once implemented, OAuth2 makes sending HTTP Requests both simple and secure.

Head over to our section to get started.

Creating a Service Account
REST API Reference
Sensor Emulator
REST API Authentication