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

# Get a brew session

> The session with its full brew day checklist.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/sessions/{id}
openapi: 3.1.0
info:
  title: Brewgravity API
  version: 1.0.0
  description: >-
    Read and write your recipes, brew sessions, fermentation logs, and
    ingredient inventory.


    Every request is scoped to the account its credential belongs to — there is
    no `user_id` parameter anywhere, and an id belonging to someone else returns
    `404`.


    All units are metric: kilograms, grams, litres, degrees Celsius, minutes.
  contact:
    name: Brewgravity support
    email: support@brewgravity.com
servers:
  - url: https://brewgravity.com
    description: Production
  - url: http://localhost:8787
    description: Local development
security:
  - apiKey: []
tags:
  - name: Identity
    description: Who the credential belongs to.
  - name: Recipes
    description: Recipes and their computed stats.
  - name: Fermentables
    description: Grain, sugar, and extract on a recipe.
  - name: Hops
    description: Hop additions on a recipe.
  - name: Yeasts
    description: Yeast on a recipe.
  - name: Other ingredients
    description: Finings, salts, spices, and flavourings.
  - name: Mash steps
    description: A recipe's mash schedule.
  - name: Brew sessions
    description: Individual brew days made from a recipe.
  - name: Brew day steps
    description: The checklist attached to a brew session.
  - name: Fermentation logs
    description: Timestamped readings against a brew session.
  - name: Inventory
    description: Ingredients you physically have on hand.
  - name: AI
    description: Recipe analysis and usage metering.
  - name: Chats
    description: >-
      AI chat threads. The streaming turn endpoint is not part of the REST
      surface.
paths:
  /v1/sessions/{id}:
    parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
        description: Session id
    get:
      tags:
        - Brew sessions
      summary: Get a brew session
      description: The session with its full brew day checklist.
      operationId: getSession
      responses:
        '200':
          description: The session
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BrewSessionWithSteps'
        '401':
          description: Missing, invalid, or revoked credential
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such resource, or it does not belong to you
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    BrewSessionWithSteps:
      allOf:
        - $ref: '#/components/schemas/BrewSession'
        - type: object
          properties:
            steps:
              type: array
              items:
                $ref: '#/components/schemas/BrewStep'
      description: A brew session with its full brew day checklist.
    Error:
      type: object
      properties:
        error:
          type: string
          description: Human-readable description of what went wrong
      required:
        - error
    BrewSession:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier
          format: uuid
          readOnly: true
        user_id:
          type: string
          description: Owning account
          readOnly: true
        recipe_id:
          type: string
          description: Recipe being brewed
          format: uuid
        name:
          description: Session name
          type:
            - string
            - 'null'
        status:
          type: string
          enum:
            - planning
            - brewing
            - fermenting
            - complete
          description: Current status
        brew_date:
          description: Brew date (YYYY-MM-DD)
          type:
            - string
            - 'null'
        notes:
          description: Session notes
          type:
            - string
            - 'null'
        actual_og:
          description: Measured original gravity
          type:
            - number
            - 'null'
        actual_fg:
          description: Measured final gravity
          type:
            - number
            - 'null'
        fermenting_since:
          description: When fermentation started
          type:
            - string
            - 'null'
        completed_at:
          description: When the session completed
          type:
            - string
            - 'null'
        created_at:
          type: string
          description: ISO 8601 timestamp
          format: date-time
          readOnly: true
        updated_at:
          type: string
          description: ISO 8601 timestamp
          format: date-time
          readOnly: true
    BrewStep:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier
          format: uuid
          readOnly: true
        session_id:
          type: string
          description: Parent session
          format: uuid
          readOnly: true
        title:
          type: string
          description: Step title
        description:
          description: Instructions or details
          type:
            - string
            - 'null'
        type:
          type: string
          enum:
            - prep
            - mash
            - boil
            - cool
            - ferment
            - package
            - other
          description: Step category
        completed:
          type: boolean
          description: Whether this step is done
        completed_at:
          description: When it was ticked off
          type:
            - string
            - 'null'
        timer_minutes:
          description: Timer duration in minutes
          type:
            - integer
            - 'null'
        sort_order:
          type: integer
          description: Display order
        created_at:
          type: string
          description: ISO 8601 timestamp
          format: date-time
          readOnly: true
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: An API key created from a signed-in session. See Authentication.

````