# 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://1996175074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3cdPul5g3lHEzkm2UkSf%2Fuploads%2FT2BT3X5DgywaaXybcF7N%2FLocating%20the%20Data%20Stream%20Manager.png?alt=media&#x26;token=c6a5cea3-8b02-41f4-a01b-b16a1556e99d" 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://1996175074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3cdPul5g3lHEzkm2UkSf%2Fuploads%2F9YGtUPQhjaMB2bQENnc1%2FCreating%20a%20new%20data%20stream.png?alt=media&#x26;token=dec994d4-d372-4e20-bf8c-ba6ffe008c8a" 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) 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).

   <figure><img src="https://1996175074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3cdPul5g3lHEzkm2UkSf%2Fuploads%2FnNDhpfenNeP3wsvKAC3H%2FGetting%20data%20stream%20tokens.png?alt=media&#x26;token=390e89e6-9a55-4bc6-990d-85b26385ff25" 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).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

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

The question should be specific, self-contained, and written in natural language.
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.
