Skip to main content

Get devices list

GET 

http://localhost/api/v2/devices

.devices.get.description

Request

Responses

Devices list

Authorization: http

name: Tokentype: httpscheme: bearerdescription: For this method, user should acquire  token with a call to `POST /api/v2/auth/login` using [Basic Authentication](#section/Authentication/Basic-Authentication)  

In case of success response will contain token (see [reference](#tag/Authorization)  for response format)

Every subsequent query should contain next header:

```
Authorization:  Bearer abcdefg1234567
```

where `abcdefg1234567` is previously received token.

:::note

Access  token has expiration time, when it is expired, **Refresh Token** should be user  to acquire new one.

:::
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/api/v2/devices");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
http://localhost/api/v2
Auth
Parameters
— queryrequired
— query
— query
— query
ResponseClear

Click the Send API Request button above and see the response here!