LogoLogo
HomeSupportCommunity
  • Introduction
    • Overview
    • Get Started
      • Platforms & Packages
      • Use Cases
    • Glossary of Terms
  • Software
    • Bluetooth Wifi Onboarding Package (r3onboard)
    • Device Package
      • Supported Platforms
      • Installation
      • Usage
    • NPM Package
    • CLI
      • Supported Platforms
      • Installation
    • Docker
      • Remote.It Agent
      • Remote.it Docker Extension
    • Desktop
      • Installation
    • Web Portal & Mobile
    • Custom Solutions
  • Features
    • Services
      • SSH
      • RDP and VNC
      • SMB and CIFS
      • HTTP/S
      • Database
      • Redis
      • UDP
      • Gaming
      • VPN
    • Connection Options
      • LAN Sharing
      • Jump Service
      • Peer-2-Peer & Proxy
    • Logging
    • Organizations
  • Developer Tools
    • Authentication
    • API
      • Using Developer Tools
      • Usage
        • Devices and Services
        • Event Logs
        • Connections
        • Access Keys
        • Device Sharing
        • Custom Attributes
        • Scripting
    • CLI Usage
    • Webhooks
      • Slack Integration
    • Docker
    • Device Scripting
    • Zero-Trust AWS Access
      • AWS RDS (Postgres and MySQL)
    • Zero Trust Azure Cloud Access
    • Zero Trust Google Cloud Access
  • OEM & Bulk Provisioning
    • Overview
    • Auto Registration into Your Account
      • Create a Product
      • Production Image
      • Field Production
    • Registration into a User's Account
Powered by GitBook
On this page
  • Insomnia Set Up
  • Download and Install Insomnia
  • Add the Plugin to Insomnia
  • Remote.it Insomnia Collection
  • Building a graphQL request on your own
  • Using graphQL in your application
  • Postman Set Up
  • Download and Install Postman
  • Remote.it Postman Collection
  • Building a graphQL request on your own
  • Using graphQL in your application

Was this helpful?

  1. Developer Tools
  2. API

Using Developer Tools

There are multiple developer tool IDEs such as Insomnia, Postman, and Altair. Here are examples using Insomnia and Postman.

PreviousAPINextUsage

Last updated 1 month ago

Was this helpful?

Insomnia and Postman are API request IDEs and a sample collection is provided for both tools to get you started. Insomnia also has a remote.it plugin available to assist with authentication to allow you to experiment before you develop code.

For graphQL, you can explore the schema, generate queries and mutations. For the REST-API, you can create http requests.

Insomnia Set Up

Download and Install Insomnia

It is recommended that you install Insomnia Core rather than Insomnia Designer, but the plugin should work for both versions.

Add the Plugin to Insomnia

We will be using a remote.it provided plugin to create queries which will automatically sign the requests.

Go to preferences:

Enter insomnia-plugin-remoteit and click Install Plugin

Remote.it Insomnia Collection

You can download all our examples here:

$ git clone https://github.com/remoteit/code_samples.git

The collection is found in the api_tools folder.

Here is a quick overview of the UI once you have imported the collection

Building a graphQL request on your own

Make sure to create a POST request and select GraphQL Query as Body type. NOTE: All graphQL queries and mutations are made with POST

{
  login {
    email
  }
}

Select the Auth tab of the query and select Bearer Token authentication.

Click on theToken field and CTRL+Spaceto select the remote.it API authentication tag, and select a specific profile otherwise the default profile will be used.

You now can send the request and execute the query using the credentials stored earlier.

Using graphQL in your application

Postman Set Up

Download and Install Postman

Remote.it Postman Collection

We have developed an example set of GraphQL queries and mutations in a collection that you can import directly into Postman to get started. Be sure to set up your environment variables before using these.

$ git clone https://github.com/remoteit/code_samples.git

The collection is found in the api_tools folder

Import the environment and collection

You will need to import both the environment file and the collection file.

This is a quick overview of the UI. Please refer to the Postman documentation if yours doesn't look the same as versions may change.

Building a graphQL request on your own

A Pre-request Script is required which handles the request signing. The script can be found in the Collection, under the main folder. Any new requests that you create under this collection should inherit this script.

Make sure to create any new request as a POST request and select GraphQL Query as Body type. and use your variable for the url. NOTE: All graphQL queries and mutations are made with POST

{
  login {
    email
  }
}

Using graphQL in your application

We have developed an example set of GraphQL queries and mutations in a collection that you can import directly into insomnia to get started. You will still need to install the authentication plug-in and in your account before getting started.

If you want to start using the API requests in your code, you cannot use the generated code out of Insomnia as the generated signature is only good for that specific request. You will need to use the http request signing methodology. Some examples can be found on the .

You can type a sample GraphQL query to like:

If you haven't already set up your machine with the credentials file, see and do so now.

Once you have your query or your mutation working as you expect, then you can work to integrate it into your application. Examples of request signing can be found .

Update the environment variable values (R3_ACCESS_KEY_ID, R3_DEVELOPER_API_KEY, and R3_SECRET_ACCESS_KEY) retrieved from your into the Current value field and then "Save" at the top of the variables list.

If you want to start using the API requests in your code, you cannot use the generated code out of Insomnia as the generated signature is only good for that specific request. You will need to use the http request signing methodology. Some examples can be found on the .

You can type a sample GraphQL query to like:

If you haven't already set up your machine with the credentials file, see and do so now.

Once you have your query or your mutation working as you expect, then you can work to integrate it into your application. Examples of request signing can be found .

https://api.remote.it/graphql/v1
here
https://api.remote.it/graphql/v1
here
create your access keys
here
authentication page
here
credentials file
authentication page
here
The API Design Platform and API ClientGetInsomnia
Logo
https://raw.githubusercontent.com/remoteit/code_samples/refs/heads/main/api_tools/Remoteit_Prod_Insomnia.json
Remote.It Insomnia Collection
Postman
These instructions have been written using Version 11.2.1
Logo