# 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="https://803875272-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsUGOLnOOPZHTcQBNC5GI%2Fuploads%2F0xIGriNv1hkmvBAHsPA9%2Fimage.png?alt=media&#x26;token=0e0d1aed-de25-4643-a476-005078f5b4ec" 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="https://803875272-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsUGOLnOOPZHTcQBNC5GI%2Fuploads%2FaSnVk2lzQiPZYKvkzjY2%2Fimage.png?alt=media&#x26;token=f455a121-fd8d-418d-bed2-b411cba288b4" 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="https://803875272-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsUGOLnOOPZHTcQBNC5GI%2Fuploads%2FqJWrm8hZAKEEjonZp7qA%2Fimage.png?alt=media&#x26;token=582d0a70-fd61-4b99-9f12-03ca067ca324" 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="https://803875272-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsUGOLnOOPZHTcQBNC5GI%2Fuploads%2F07N44ih0Gi2EJ0OxMZ1H%2Fimage.png?alt=media&#x26;token=f064668f-645c-4bf4-a9b2-c475d25a704d" 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="https://803875272-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsUGOLnOOPZHTcQBNC5GI%2Fuploads%2Fd9rioNXTNAIbA2mpsu3B%2Fimage.png?alt=media&#x26;token=fe75de46-cbbe-49a7-8195-3ebfca4450fd" 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;
