> ## Documentation Index
> Fetch the complete documentation index at: https://docs.realtimelca.com/llms.txt
> Use this file to discover all available pages before exploring further.

# CreateStreamAndDefaultBranches

> Creates a new Speckle stream along with its default branches. This endpoint initializes a stream by name and associates it with a predefined set of branch IDs, setting up the default branch structure for the project.

**Base URL:** `{{lcabaseUrl}}`  
**Endpoint:** `POST /Speckle/streamDefaultBranches`



## OpenAPI

````yaml /api-reference/realtime-lca-openapi.yaml post /Speckle/streamDefaultBranches
openapi: 3.0.0
info:
  title: Real-Time LCA REST Documentation
  version: 1.0.0
  description: >-
    ### Description 📝


    This collection contains a set of REST API requests for the Real-Time LCA
    (Life Cycle Assessment) service.


    ### Authenticate user 👤🔑


    In the `Auth` folder there's a `POST` request for authenticating the user.


    In this request body you can type in the user RTLCA user credentials
    (username & password) and a succesfull (`200 OK`) response will set the
    collection `BearerToken` variable which is then inherited by all other
    requests.
servers:
  - url: https://api.realtimelca.com/rest/api
    description: REST API.
  - url: https://api.realtimelca.com/epd/api
    description: EPD API.
  - url: https://auth.realtimelca.com/frontegg/identity/resources/auth/v1
    description: Authentication API (Frontegg identity v1).
  - url: https://realtimelca-prod.hasura.app
    description: GraphQL API (Hasura).
security:
  - BearerAuth: []
tags:
  - name: Auth
  - name: User
  - name: Overview
  - name: Project
  - name: Dashboard
  - name: Mapping
  - name: Automapping
  - name: Transport
  - name: Waste
  - name: Inspect
  - name: Report
  - name: Images
  - name: Library
  - name: Datasource
  - name: Owner
  - name: Material
  - name: Constructions
  - name: Enums
paths:
  /Speckle/streamDefaultBranches:
    servers:
      - url: https://api.realtimelca.com/rest/api
    post:
      tags:
        - Project
        - Create Project
      summary: CreateStreamAndDefaultBranches
      description: >-
        Creates a new Speckle stream along with its default branches. This
        endpoint initializes a stream by name and associates it with a
        predefined set of branch IDs, setting up the default branch structure
        for the project.


        **Base URL:** `{{lcabaseUrl}}`  

        **Endpoint:** `POST /Speckle/streamDefaultBranches`
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                streamName:
                  type: string
                branches:
                  type: array
                  items:
                    type: string
            example:
              streamName: Langt fra
              branches:
                - 755b67d3-7190-4902-b481-ca19a1f1f5e2
                - 0178923a-3892-4700-92a3-6dcaba1b84d8
                - 7ab2e724-dcad-49db-a873-63cce32c7166
      responses:
        default:
          description: Response schema not yet documented in the upstream Postman spec.
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````