> For the complete documentation index, see [llms.txt](https://docs.kpnthings.com/kpn-things/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kpnthings.com/kpn-things/getting-started/tutorials/connect-a-https-destination.md).

# Connect a HTTPS destination

Learn how to connect your application through HTTPS

You can use [KPN Things Destinations](/kpn-things/building-blocks/destinations.md) to forward your device data to any supported platform or destination. The tool Webhook.site is used for this tutorial. Although we have good experience with this tool, KPN is not responsible for the proper working of the tool.

## 1. Create test HTTPS endpoint <a href="#create-test-https-endpoint" id="create-test-https-endpoint"></a>

Go to [https://webhook.site](https://webhook.site/). Webhook.site is a service with which you can easily inspect incoming HTTP requests. When vising the site it will automatically create a unique HTTPS endpoint for you. Use the **Copy to clipboard** button that is highlighted in the screenshot below to copy the URL of your new endpoint.

<figure><img src="https://files.gitbook.com/v0/b/gitbook-legacy-files/o/assets%2F-Lk--W63k9ANNPlqjsHK%2F-M8MQeVjaywTaaxW9q7L%2F-M8MSLVJI1JX86DNIdjL%2Fimage.png?alt=media&#x26;token=acfc69db-c10c-439d-9caa-fe441ef92d68" alt=""><figcaption></figcaption></figure>

## 2. Create your first Destination <a href="#create-your-first-destination" id="create-your-first-destination"></a>

Go to the **Flows** > **My first flow** and click *Link destination*

<figure><img src="https://1453626848-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl6RrePMSAjRvOgcHjMBZ%2Fuploads%2F0grZHuvBuVOR15jTCZAK%2FScreenshot-2023-01-30-at-13.39.10.jpg?alt=media&amp;token=a02d339d-0f32-413d-9ebd-f168f22787da" alt=""><figcaption></figcaption></figure>

Choose *Create a new Destination.*

<figure><img src="https://1453626848-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl6RrePMSAjRvOgcHjMBZ%2Fuploads%2FfUBXKZ84lXzRPMZ7vLbS%2FScreenshot%202023-01-30%20at%2013.43.33.png?alt=media&amp;token=59ce8289-1ca1-46fd-8441-719e781ba0de" alt=""><figcaption></figcaption></figure>

Select *HTTPS endpoint* as destination type.

<figure><img src="https://1453626848-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl6RrePMSAjRvOgcHjMBZ%2Fuploads%2FU2psgrF1zJKmxUeVIKCj%2FScreenshot%202023-01-30%20at%2013.45.33.png?alt=media&amp;token=56464a0a-7c22-4f2f-a807-e57b8e6887f3" alt=""><figcaption></figcaption></figure>

## 3. Fill in your Destination Information <a href="#fill-in-your-destination-information" id="fill-in-your-destination-information"></a>

After selecting HTTPS Endpoint, fill in the following information:

* **Destination name**: you can think of a good recognisable name for your first destination, like *My First Destination*.
* **URL**: this should be the URL you just copied from webhook.site.
* **Shared secret**: this is a kind of password that an application should use to verify that KPN Things sent the data to the endpoint. It should be at least 32 characters long and should contain at least an uppercase character, lowercase character, digit, and special character.

## 4. Test connection with test message

Send a test message, e.g. by using the [Device simulator app](/kpn-things/getting-started/quickstart/device-simulator-web-app.md). You should see incoming information on your webhook.

<figure><img src="https://1453626848-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl6RrePMSAjRvOgcHjMBZ%2Fuploads%2FRhvHEvP4CNx6ap7h0LBt%2FScreenshot%202023-01-30%20at%2013.50.20.png?alt=media&amp;token=3d366bfa-52c8-4d1a-a5e1-204193787bfc" alt=""><figcaption></figcaption></figure>

## Congratulations! 🎉

You successfully set up your first IoT solution!&#x20;

To continue learning you can continue with:


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.kpnthings.com/kpn-things/getting-started/tutorials/connect-a-https-destination.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
