# View IoThub API Access

To View your IoT Hub API Access:

1. Login to your Fogwing account through web control center.&#x20;
2. The Home page will appear after you log in to your Fogwing account.
3. Toward the left side of the Home page, click on Edge Network. a menu list will slip down.
4. Select 'IoT Hub Access' from the Edge Network menu list. You will be directed to IoT Hub Access list view page.&#x20;
5. On the right end of each IoT hub Access you have created is a 'View' button, click on that.
6. Upon clicking view button, you will arrive on the 'View IoT hub Options page'.
7. Here you can choose either MQTT or API.  Select API option now.
8. This should open a new browser window to showcase the swagger page of the Fogwing IoThub API.

![Fogwing IoThub API Documentation Page](/files/-MDcAdfc45A5YXQjem4n)

In the above page, you have to create an API token using the IoThub user credentials created in the previous steps.  Once the token generated by the API, using the token you should access the "PostPayload" method to send device data directly to IoThub. &#x20;

In this approach, device can directly generate token and send data to IoThub as and when required. If you already have third party IoThub (such as  AWS IoT, Azure IoT or TTN) , you can use this API approach to forward the data into Fogwing IIoT Platform for data aggregation and analytics. &#x20;


---

# 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://docs.fogwing.io/fogwing-platform/manage-iot-hub-access-as-an-admin-user/view-iothub-api-access.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.
