---
title: "Custom Stream · WitCloud Docs"
description: "Learn how to set up Custom Stream in WitCloud to send custom data, such as user events, logs, or webhooks, directly to Google BigQuery using HTTP requests."
canonical_url: "https://witcloud.ai/docs/integrations/custom-stream"
meta:
  "og:description": "Learn how to set up Custom Stream in WitCloud to send custom data, such as user events, logs, or webhooks, directly to Google BigQuery using HTTP requests."
  "og:image": "https://witcloud.ai/og-default.png"
  "og:title": "Custom Stream · WitCloud Docs"
---

> Index of every page on this site: [llms.txt](https://witcloud.ai/llms.txt)

# Integration of Custom Stream with BigQuery

Learn how to set up Custom Stream in WitCloud to send custom data, such as user events, logs, or webhooks, directly to Google BigQuery using HTTP requests.

Updated 8 Oct 2026

## Introduction

The **Custom Stream** integration lets you send any custom data to **Google Cloud BigQuery** through a dedicated collector URL. Whether you capture user actions, form submissions, logs or events from third-party systems, you decide what you send; every request is saved as a new row in your BigQuery dataset.

## Configuration guide

Follow the steps below to create a Custom Stream. Once it is created, you get a collector URL you can send data to.

### Module setup

Go to **Integrations** in the menu and click **Add integration**.

![Integrations list with a few example integrations and the Add integration button](https://api.witcloud.ai/api/docs/assets/5671310d15793a78c18ed7b89c91cb68.png)

Select **Custom Stream** from the list of available integrations.

![Integration catalog with Custom Stream selected](https://api.witcloud.ai/api/docs/assets/05f69d6ac8c7f57c11ea71a28367cc9d.png)

Enter the **Collect name**, e.g., "Custom Stream PL".

![Collect name field filled in with the example name Custom Stream PL](https://api.witcloud.ai/api/docs/assets/65772c1eddd22da665552e16bef02b87.png)

Click **Show advanced settings**. With the **Client IP** option you decide what happens with the IP address of the sender: **Full** saves it as it is (the default), **Masked** saves a masked version of it and **None** does not save it.

![Advanced settings open with the Client IP options Full, Masked and None](https://api.witcloud.ai/api/docs/assets/02f92b22aa56e186e6c90a9c7942a515.png)

With the **Collect location** option you choose which geographic data is saved with each row: **Region**, **Country**, **City** and **Latitude and Longitude**. All four are selected by default; remove the ones you do not want to collect.

![Collect location field with the geographic data choices Region, Country, City and Latitude and Longitude](https://api.witcloud.ai/api/docs/assets/fbc2f30652f1f3fce1754fd84f088fe3.png)

Click **Create**.

### How to use the stream

After you create the stream, its page opens. In the **Setup instructions** section, click the copy icon next to **Collector URL** to copy the address of your stream. You can open this page again at any time from the **Integrations** list.

![Collector URL shown on the stream page after it is created (example)](https://api.witcloud.ai/api/docs/assets/460f9f141e163c668ddb0b5e04ff923e.png)

### Sending data

To send data, make a `POST` request to your collector URL with a JSON body. Each request is saved as a new row in the stream's table in your BigQuery dataset. You can also send the data as query parameters in a `GET` request.

The whole body is saved as text in the `payload` column, so you can send any fields you like. The only field with a special meaning is `eventId`: if you send it as a string, it is saved in the `eventId` column; otherwise a unique identifier is generated for the row. The `timestamp` column holds the time the request was received.

The URL is unique to your stream. Keep it secure and do not expose it publicly.

### Example request

Here is a sample `curl` request:

```bash
curl -X POST https://stream.cloud.witbee.com/custom/your-unique-id \
  -H "Content-Type: application/json" \
  -d '{
        "event": "form_submitted",
        "email": "john@example.com",
        "source": "landing_page"
      }'
```

## Data schema

Expand the table below to view the full data schema collected from Custom Stream.

<details>

<summary>

Columns of <code>custom_stream</code></summary>



| Field Name | Mode | Type |
| --- | --- | --- |
| eventId | NULLABLE | STRING |
| payload | NULLABLE | STRING |
| timestamp | NULLABLE | TIMESTAMP |
| ip | NULLABLE | STRING |
| geo | NULLABLE | RECORD |
| ├─ geo.city | NULLABLE | STRING |
| ├─ geo.region | NULLABLE | STRING |
| ├─ geo.country | NULLABLE | STRING |
| ├─ geo.cityLatitude | NULLABLE | STRING |
| ├─ geo.cityLongitude | NULLABLE | STRING |

</details>

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://witcloud.ai/#website","@type":"WebSite","description":"WitCloud is a marketing and e-commerce analytics platform: connect your data, ask AI and track KPIs in one place.","inLanguage":"en-US","name":"WitCloud","url":"https://witcloud.ai/","publisher":{"@id":"https://witcloud.ai/#identity"}},{"@id":"https://witcloud.ai/docs/integrations/custom-stream#webpage","@type":"WebPage","dateModified":"2026-10-08T07:43:27.262Z","description":"Learn how to set up Custom Stream in WitCloud to send custom data, such as user events, logs, or webhooks, directly to Google BigQuery using HTTP requests.","name":"Custom Stream · WitCloud Docs","url":"https://witcloud.ai/docs/integrations/custom-stream","breadcrumb":{"@id":"https://witcloud.ai/docs/integrations/custom-stream#breadcrumb"},"isPartOf":{"@id":"https://witcloud.ai/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://witcloud.ai/docs/integrations/custom-stream"]}],"primaryImageOfPage":{"@id":"https://witcloud.ai/#logo"}},{"@id":"https://witcloud.ai/#identity","@type":"Organization","name":"WitCloud","url":"https://witcloud.ai","logo":{"@id":"https://witcloud.ai/#logo"},"sameAs":[]},{"@id":"https://witcloud.ai/docs/integrations/custom-stream#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Integrations","item":"https://witcloud.ai/docs/integrations","position":1},{"@type":"ListItem","name":"Custom Stream","item":"https://witcloud.ai/docs/integrations/custom-stream","position":2}]},{"@id":"https://witcloud.ai/docs/integrations/custom-stream#article","dateModified":"2026-10-08T07:43:27.262Z","description":"Learn how to set up Custom Stream in WitCloud to send custom data, such as user events, logs, or webhooks, directly to Google BigQuery using HTTP requests.","headline":"Custom Stream","inLanguage":"en-US","thumbnailUrl":"https://witcloud.ai/og-default.png","@type":["Article","TechArticle"],"author":{"@id":"https://witcloud.ai/docs/integrations/custom-stream#/schema/person/1"},"image":{"@id":"https://witcloud.ai/docs/integrations/custom-stream#/schema/image/1"},"isPartOf":{"@id":"https://witcloud.ai/docs/integrations/custom-stream#webpage"},"mainEntityOfPage":{"@id":"https://witcloud.ai/docs/integrations/custom-stream#webpage"},"publisher":{"@id":"https://witcloud.ai/#identity"}},{"@id":"https://witcloud.ai/docs/integrations/custom-stream#/schema/person/1","@type":"Person","name":"WitCloud"},{"@id":"https://witcloud.ai/#logo","@type":"ImageObject","caption":"WitCloud","contentUrl":"https://witcloud.ai/logo.svg","inLanguage":"en-US","url":"https://witcloud.ai/logo.svg"},{"@id":"https://witcloud.ai/docs/integrations/custom-stream#/schema/image/1","@type":"ImageObject","contentUrl":"https://witcloud.ai/og-default.png","inLanguage":"en-US","url":"https://witcloud.ai/og-default.png"}]}
```

## Sitemap

See the full [sitemap](https://witcloud.ai/sitemap.md) for all pages.
