Using Developer Tools

There are multiple developer tool IDEs such as Insomnia, Postman, and Altair. This is an example using Insomnia.

Insomnia is an API request IDE and a remote.it plugin is 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.

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

Generate a graphQL Request

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

You can type a sample GraphQL query to https://api.remote.it/graphql/v1 like:

{
login {
email
}
}

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

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.

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 authentication page.