List of channels connected to a specified thing
GEThttps://apis.<domain>/iot/things/:thingId/channels
Authorization: http
name: bearerTokentype: httpscheme: bearerin: headerdescription: Authorization Header: `Authorization: Bearer <user_token>`
Retrieves list of channels connected to a specified thing.
Authorization Action:
core:things:getChannels
Request
Path Parameters
thingId uuidrequired
Unique thing identifier.
Query Parameters
offset integer
Number of items to skip during retrieval.
limit integer
Possible values: >= 1
and <= 100
Default value: 10
Size of the subset to retrieve.
connected boolean
Default value: true
Connection state of the subset to retrieve.
Responses
- 200
- 400
- 401
- 404
- 422
- 500
Data retrieved.
- application/json
- Schema
- Example (from schema)
Schema
channels object[]
total integer
Total number of items.
offset integer
Number of items to skip during retrieval.
limit integer
Maximum number of items to return in one page.
{
"channels": [
{
"id": "string",
"name": "string",
"metadata": {}
}
],
"total": 0,
"offset": 0,
"limit": 0
}
Bad request.
Unauthorized.
Thing not found.
Unprocessable entity.
Unexpected server error.
- application/json
- Schema
Schema
- string byte
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X GET 'https://apis.<domain>/iot/things/:thingId/channels' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'