> For the complete documentation index, see [llms.txt](https://developer.singular.live/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.singular.live/data-stream-api/how-to-guides/create-a-data-stream.md).

# Create a data stream

The first step in sending data to a control app with the data stream API is to create a data stream. Here's how:

1. Open the Singular Dashboard and select **Data Stream Manager** in the user menu.

   <figure><img src="https://3821697355-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOb9Y6sfr2vQu3cBPM871%2Fuploads%2Fgit-blob-93960913d2a7df9a29bd44dc2c5b01545a84f19c%2FLocating%20the%20Data%20Stream%20Manager.png?alt=media" alt=""><figcaption><p>Opening the data stream manager</p></figcaption></figure>
2. Select **New** to create and name a new data stream.

   <figure><img src="https://3821697355-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOb9Y6sfr2vQu3cBPM871%2Fuploads%2Fgit-blob-be9dd20b2cb452eb1432c7a589fc9b559d5cd68a%2FCreating%20a%20new%20data%20stream.png?alt=media" alt=""><figcaption><p>Creating a new data stream</p></figcaption></figure>
3. Locate the private token and public token, which you'll need to [link a data stream to a composition](https://developer.singular.live/data-stream-api/how-to-guides/link-a-data-stream-to-a-composition.md) and [send data to a control app using the data stream API](https://developer.singular.live/data-stream-api/how-to-guides/send-data-to-an-app-using-the-data-stream-api.md).

   <figure><img src="https://3821697355-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOb9Y6sfr2vQu3cBPM871%2Fuploads%2Fgit-blob-a126f6f25f40a99f0a2721ba14347fa1e26c7ec3%2FGetting%20data%20stream%20tokens.png?alt=media" alt=""><figcaption><p>Getting a data stream's tokens</p></figcaption></figure>

### Next steps

Now that you've set up a new data stream, continue to the next how-to-guide to learn how to [link a data stream to a composition](https://developer.singular.live/data-stream-api/how-to-guides/link-a-data-stream-to-a-composition.md).


---

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developer.singular.live/data-stream-api/how-to-guides/create-a-data-stream.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
