> For the complete documentation index, see [llms.txt](https://docs.skysens.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.skysens.io/sources/connection-types/http.md).

# HTTP

Skysens AgPM can be connect your HTTP server to receive data or generate an endpoint to receive data.

For Adding A HTTP source, select HTTP on add new source menu.&#x20;

<figure><img src="/files/QakJCpHMA0gVaszGDW5d" alt=""><figcaption><p>Add Source Menu</p></figcaption></figure>

Adding a HTTP source is three-step process: Source Information, Endpoint Information and Field Information.&#x20;

<figure><img src="/files/8Mx5hS7J3YZdh5jXigfe" alt=""><figcaption></figcaption></figure>

**Source Information**

Adding a HTTP source depends on your HTTP server management architecture. You can configure Skysens AgPM can connect your HTTP server and receive data or you can generate a custom integration URL that you can send your data. In second method you do not need to manage a HTTP server, you only need a simple HTTP client that sends data.

Name: Descriptive name for your HTPP device

If you want to use your HTTP server thats Skysens AgPM will connect your server and receive data. Select the "Use Your Http Server" option on the menu.&#x20;

Url: HTTP  server public host name or IP address

Port: HTTP server port number

Request Type: Select the HTTP request method POST or GET

If your HTTP server have some authentication method then select the authentication method according your authentication method; Basic, Bearer Token or Custom header.

<figure><img src="/files/k16I21JW5IDB6uo1N6UR" alt=""><figcaption></figcaption></figure>

If you want to use Skysens HTTP server, you only need to generate a custom URL for your device. Than create a HTTP client that sends request into your generated custom URL.

<figure><img src="/files/wNpddyfDlVb9BGfiKR9h" alt=""><figcaption></figcaption></figure>

**Endpoint Information**

Endpoint is data set exposed by the server's API, points different functions that returns different responses.

<figure><img src="/files/KS8E67u9fFXErcGBYxS9" alt=""><figcaption></figcaption></figure>

**Field Information**

Field Name: An identifier for HTTP data object

Field Key: Key name on HTTP data object

Unit: Reading data's unit&#x20;

Format: Data format. Such as: int32, float&#x20;


---

# 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 dynamically by asking a question.

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

```
GET https://docs.skysens.io/sources/connection-types/http.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
