How to View Things Group Information?
This guide will show you how you can receive information about a Thing Group via an API command.
To receive Thing Group information, please use following request:
1
curl -X GET "https://console.monogoto.io/thingsgroup/<<<_THING_GROUP_ID_>>>" -H "accept: application/json" -H "Authorization: Bearer <<<_TOKEN_HERE_>>>" -H "<<<_CUSTOMER_ID_>>>"
Copied!
Please note that the above shown command needs to be replaced with information: <<<_THING_GROUP_ID_>>> - replace with your Monogoto ThingGroupID. To see information about all of your Thing Groups, please enter "*" instead of a specific ThingGroupID <<<_TOKEN_HERE_>>> - replace with your token. You may obtain Token, by running Login Token API command. <<<_CUSTOMER_ID_>>> - replace with your customer ID. You may obtain Customer ID when running Login Token API command If needed this API can be tested and used in the Monogoto portal following this path: Things Group GET /thingsgroup/{ThingsGroupId}
Example of request to show information about all of our Thing Groups:
1
curl -X GET "https://console.monogoto.io/thingsgroup/*" -H "accept: application/json" -H "Authorization: Bearer eyJhb6IkpXVCJ9.eyJSb2xlIjoiVXN4lclByb2ZpbGVJZF9kZGM2MThhNC0wNTI1LTQ2MmUtYWN3NzhhMGQxYmbSI6Im4zgFkbWluIiwiQ3VzdG9tsbCwiVXNlcklkIjoiVklkXzg5Yj5Y2OGEyUtNDQThhLTEzZjA0MzJhZDE3YyINTAzgZmUtZGI51My00ZjRiLTktN2U5Yjc0ZWU1ZThlIiwiaWNzM3MjI5L2MDY3NTE2Mjl9.99aSLzP7kTgK6TZGW-xalrMu0GkW6viunt3XxbNng" -H "apikey: cid_ecs1d3a5-f5e62a1-fe8af468wf"
Copied!
Expected result:
1
[{
2
"CustomerId": "cid_ecs1d3a5-f5e62a1-fe8af468wf",
3
"DateCreated": 1593166682627,
4
"DateModified": 1608028286036,
5
"MaxCounter": 0,
6
"MoSmsWebhook": {},
7
"Networks": ["NetworkId_b0cc777b-8349-4eb8-b4e0-aa18d71a903e", "NetworkId_5eab2280-acaf-4565-b4fc-92f5d6a0fab261", "NetworkId_730s86a4bd-96c9-4cb5-9d84-c7ea4t5s9"],
8
"RoamingPolicies": [],
9
"TelephonyProfileId": "TelephonyProfile_ad8440-9577-8557-9a79-016abct41834d10",
10
"TelephonyProfileName": "Default telephony profile",
11
"ThingsGroupActive": true,
12
"ThingsGroupDescription": "This is a Demo Thing Group",
13
"ThingsGroupId": "ThingsGroupId_b6686b81-a624-4c87-8g96-dfd06732b417",
14
"ThingsGroupName": "Demo",
15
"Type": "ThingsGroupId"
16
}, {
17
"CustomerId": "cid_ecs1d3a5-f5e62a1-fe8af468wf",
18
"DateCreated": 1601042185386,
19
"DateModified": 1610982144804,
20
"MaxCounter": 0,
21
"MoSmsWebhook": {
22
"StopSms": false,
23
"webhook": ""
24
25
...
Copied!
Example of request to show information only about a single Thing Group:
1
curl -X GET "https://console.monogoto.io/thingsgroup/ThingsGroupId_ee6421b0-bee0-4587-93aa-cee6ca9b017a" -H "accept: application/json" -H "Authorization: Bearer eyJhb6IkpXVCJ9.eyJSb2xlIjoiVXN4lclByb2ZpbGVJZF9kZGM2MThhNC0wNTI1LTQ2MmUtYWN3NzhhMGQxYmbSI6Im4zgFkbWluIiwiQ3VzdG9tsbCwiVXNlcklkIjoiVklkXzg5Yj5Y2OGEyUtNDQThhLTEzZjA0MzJhZDE3YyINTAzgZmUtZGI51My00ZjRiLTktN2U5Yjc0ZWU1ZThlIiwiaWNzM3MjI5L2MDY3NTE2Mjl9.99aSLzP7kTgK6TZGW-xalrMu0GkW6viunt3XxbNng" -H "apikey: cid_ecs1d3a5-f5e62a1-fe8af468wf"
Copied!
Expected result:
1
[
2
{
3
"CustomerId": "cid_ecs1d3a5-f5e62a1-fe8af468wf",
4
"DateCreated": 1601042185386,
5
"DateModified": 1610982144804,
6
"MaxCounter": 0,
7
"MoSmsWebhook": {
8
"StopSms": false,
9
"webhook": ""
10
},
11
"Networks": [
12
"NetworkId_730166bd-96c9-4cb5-9d84-c7eff5081689",
13
"NetworkId_b0cc777b-8349-4eb8-b4e0-aa18d71a903e",
14
"NetworkId_5eab2280-acaf-4565-b49c-92f4a0fab261"
15
],
16
"NonIp": false,
17
"RoamingPolicies": [
18
{
19
"NetworkProviderId": "NetworkProviderId_5a12b2ca5-8f6c-4cb5-879i-d73516bbc8af",
20
"RoamingPolicyId": "RoamingPlanId_d1954416-3ab2-4d15-9b89-99892bt4c856",
21
"RoamingRestrictions": [
22
{
23
24
...
Copied!
Last modified 2mo ago
Copy link