Retrieves thing info
GEThttps://apis.<domain>/iot/things/:thingId
Retrieves thing info.
Authorization Action:
core:things:get
Request
Path Parameters
thingId uuidrequired
Unique thing identifier.
Responses
- 200
- 401
- 404
- 422
- 500
Data retrieved.
- application/json
- Schema
- Example (auto)
Schema
idstring<uuid>required
Unique thing identifier generated by the service.
namestring
Free-form thing name.
keystring<uuid>required
Auto-generated access key.
metadata object
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"key": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"metadata": {
"type": "device",
"control_channel_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"event_channel_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
}
Unauthorized.
Thing not found.
Unprocessable entity.
Unexpected server error.
- application/json
- Schema
- Example (auto)
Schema
stringstring<byte>
"string"
Authorization: http
name: bearerTokentype: httpscheme: bearerin: headerdescription: Authorization Header: `Authorization: Bearer <user_token>`
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://apis.<domain>/iot/things/:thingId");
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());