# HTTP API Quickstart

## Prerequisite

You should have your SenseCAP account from SenseCAP sales, and make sure you can login the SenseCAP Web Portal <https://sensecap.seeed.cc>.

## Get an Access Key

1. Login the SenseCAP Web Portal <https://sensecap.seeed.cc>
2. Navigate to "Organization/Security Credentials"
3. Click "Create access key"
4. Set down the `Access ID` and `Access Key`&#x20;

![](https://577068983-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LRj5euaaDNQM7LM4p9j%2F-LwMViH9vOuJ7CvJlyTh%2F-LwMXA9ug8PJ9YuE36Ff%2Fgitbook_qk.png?alt=media\&token=fe171f17-1350-44a0-bab5-b793973a1caa)

## Get all the Deivice EUIs

In this quickstart, we will use `curl` to issue HTTP requests. The example below calls an API to retrieve all the device EUIs belonging to you.

```bash
curl --user "<access_id>:<access_key>" \
     https://sensecap-openapi.seeed.cc/1.0/lists/devices/eui
```

You should replace `<access_id>` and `<access_key>` with the one you got before. The command will output like the following

```javascript
{
  "code": "0",
  "data": {
    "gateway": [
      "2CF7F1121130003F",
      "2CF7F1100470001A"
    ],
    "node": [
      "2CF7F12210400031",
      "2CF7F12210400005",
      "2CF7F12210400023"
    ]
  },
  "time": 0.314
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sensecap.gitbook.io/doc/http-api/http-api-quickstart.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
