Skip to main content

HTTP API Quickstart

Prerequisite

If you do not have an account, register for SenseCraft Data Platform (formerly SenseCAP Portal) on the service for your region:

note

LoRaWAN devices are used with the Global Station.

Get an Access Key

  1. Log in to SenseCraft Data Platform.
  2. Navigate to SecurityAccess API keys.
  3. Click Create Access Key.
  4. Enter your password, then copy the API ID and Access API Key.

Access API keys page in SenseCraft Data Platform

API ID and Access API Key dialog

Get all the Device Groups

Use curl to make an HTTP request. The following example gets all device groups under the account.

  • username = API ID
  • password = Access API keys
curl --user "username":"password" \
https://sensecap.seeed.cc/openapi/list_groups

Replace username and password with the API ID and Access API Key obtained above. The command returns a response similar to the following:

{
"code": "0",
"data": [
{
"group_name": "Default",
"group_uuid": ""
},
{
"group_name": "test group",
"group_uuid": "80523B280630E611"
},
{
"group_name": "demo",
"group_uuid": "EBAD5387C4FC8711"
}
]
}

Tech Support & Product Discussion

Thank you for choosing our products! We are here to provide you with different support to ensure that your experience with our products is as smooth as possible. We offer several communication channels to cater to different preferences and needs.

Loading Comments...