# HTTP

HTTP provides a straightforward way to send data from your devices or applications to Qubitro.&#x20;

By making an HTTP POST request to Qubitro’s webhook endpoint, you can securely transmit JSON payloads for storage and further processing.

### Specifications

<table><thead><tr><th width="197">Parameter</th><th>Description</th></tr></thead><tbody><tr><td>Endpoint</td><td>https://webhook.qubitro.com/integrations/http</td></tr><tr><td>Method</td><td>POST</td></tr><tr><td>Data Format</td><td>Valid JSON is required by default.</td></tr><tr><td>Content-Type</td><td>application/json</td></tr><tr><td>Authorization</td><td>Basic (Device Token from Qubitro)</td></tr></tbody></table>

{% hint style="warning" %}
Qubitro rejects any request that does not contain valid JSON. Make sure your payload is properly formatted.
{% endhint %}

#### Example CURL Command

Use the Device Token as your Basic authorization header. Replace the placeholder token below with the one from your Unique IDs card.

```bash
curl --location 'https://webhook.qubitro.com/integrations/http' \
  --header 'Authorization: Basic <YOUR_DEVICE_TOKEN>' \
  --header 'Content-Type: application/json' \
  --data '{ "Temperature": 30.5 }'
```

This request sends a JSON payload containing `"Temperature": 30.5` to Qubitro. Make sure your payload follows valid JSON formatting to ensure successful ingestion.

### Create an HTTP Source

{% stepper %}
{% step %}
**Navigate to the Project Detail Page**

Go to the project where you want to create an HTTP source.
{% endstep %}

{% step %}
**Create a New Source**

Click **New Source**, then select **HTTP** from the available options.
{% endstep %}

{% step %}
**Fill Out the Required Information**

Enter details according to your configuration needs.
{% endstep %}

{% step %}
**Create & Verify**

Click **Create**. Qubitro automatically generates the **Device ID** and **Device Token**. Verify these credentials in the **Device Settings** under the **Unique IDs** card.
{% endstep %}
{% endstepper %}
