# Send Data Stream Data via HTTP POST Connector

import Tabs from '~/components/tabs/Tabs'
import JourneyAPI from '~/includes/snippets/JourneyAPI/en/snippet.mdx'


While configuring [streams](/en/documentation/products/guides/use-data-stream/), you need to set up a specific endpoint to stream your Azion data.

You can use the **Standard HTTP/HTTPS POST** option to configure a stream with a third-party platform that isn't available as a Data Stream connector that can receive data via HTTP or HTTPS POST requests.

---

## Configuring the endpoint in Data Stream

You can find detailed steps for the entire configuration on the [How to configure Data Stream main settings](/en/documentation/products/guides/use-data-stream/) guide.

Follow the next steps to configure your Azion **Data Stream** endpoint.

:::note
All `key` fields will be masked and an icon that allows revealing the field content will be only displayed to users with the `Edit Data Stream` permission. Users without the `Edit Data Stream` permission can only view the settings of the existing stream but not edit or create new ones.
:::

<Tabs client:visible>
    <Fragment slot="tab.console">Console</Fragment>
    <Fragment slot="tab.rtm">Real-Time Manager</Fragment>
    <Fragment slot="tab.api">API</Fragment>

<Fragment slot="panel.console">

In the **Destination** configurations:

1. On the **Connector** dropdown menu, select **Standard HTTP/HTTPS POST**.
2. On **URL**, add the URL of the platform that'll receive the data. Example: `http://myhost.com`
3. On **Custom Headers** (*optional*), you can provide additional data the third-party platform accepts or requires, such as an access key.
    - You can pass up to *5 headers*.
4. Click the **Save** button.

</Fragment>

<Fragment slot="panel.rtm">

In the **Destination** configurations:

1. On the **Endpoint Type** dropdown menu, select **Standard HTTP/HTTPS POST**.
2. On **Endpoint URL**, add the URL of the platform that'll receive the data. Example: `http://myhost.com`
3. On **Custom Headers** (*optional*), you can provide additional data the third-party platform accepts or requires, such as an access key.
    - You can pass up to *5 headers*.
4. Click the **Save** button.

</Fragment>

<Fragment slot="panel.api">

1. Run the following `POST` request in your terminal, replacing `[TOKEN VALUE]` with your [personal token](/en/documentation/products/guides/personal-tokens/) to create your data stream.

```bash
curl --request POST \
  --url https://api.azion.com/v4/data_stream/streams \
  --header 'Accept: application/json' \
  --header 'Authorization: [TOKEN VALUE]' \
  --header 'Content-Type: application/json' \
--data '{
    "name": "HTTPS connector",
    "template_id": 2,
    "domain_ids": [1656613172],
    "endpoint": {
        "endpoint_type": "standard",
        "url": "http://myhost.com",
        "payload_format": "$dataset",
        "log_line_separator": "\n",
        "max_size": 1000024,
        "headers":{
            "access-key": "Ph7EK3b7UD2hba6"
        }
    }
}'
```

| Key | Description |
| --- | --- |
| `name` | Name of the stream |
| `template_id` | Identifier for the template being used |
| `domain_ids` | Array value of the domain's identifiers (integers) you want to associate with the stream |
| `endpoint` | Endpoint to which you want to stream your data |

2. You'll receive a response similar to this:

```json
{
  "results": {
    "id": 1595,
    "name": "HTTPS connector",
    "template_id": 2,
    "data_source": "http",
    "active": true,
    "endpoint": {
      "endpoint_type": "standard",
      "url": "http://myhost.com",
      "log_line_separator": "\n",
      "payload_format": "$dataset",
      "max_size": 1000024,
      "headers": {
        "access-key": "Ph7EK3b7UD2hba6",
      }
    },
    "all_domains": false
  },
  "schema_version": 3
}
```

Wait a few minutes for the changes to propagate and your stream will be updated.

    <JourneyAPI />

</Fragment>
</Tabs>

After saving the configurations, your data will be streamed to the newly configured endpoint.

:::tip
With this type of connector, you can also [set up a payload](/en/documentation/products/guides/observe/data-stream-set-payload/).
:::

You can keep track of the calls made by Data Stream to Datadog on [Real-Time Events](/en/documentation/products/observe/real-time-events/). To do so, select **Data Source** > **Data Stream** and choose the filters options as you wish.
<br /><br />
---