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

# ListWorkstreamsAPI mirrors erdo_list_workstreams.




## OpenAPI

````yaml /api/openapi.json get /v1/workstreams
openapi: 3.0.0
info:
  title: Erdo API
  description: >-
    Erdo's REST API: query and write datasets, run agents, manage threads,
    integrations, pages, evals, workstreams, and experiments. Authenticate with
    a Bearer API key (erdo_api_...) or scoped token (erdo_token_...).
  version: '2026-07-25'
servers:
  - url: https://api.erdo.ai
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/workstreams:
    get:
      summary: |
        ListWorkstreamsAPI mirrors erdo_list_workstreams.
      operationId: GET:mcp.ListWorkstreamsAPI
      parameters:
        - allowEmptyValue: true
          explode: true
          in: query
          name: status
          required: false
          schema:
            items:
              type: string
            type: array
          style: form
        - allowEmptyValue: true
          explode: true
          in: query
          name: limit
          required: false
          schema:
            format: int32
            maximum: 2147483647
            minimum: -2147483648
            type: integer
          style: form
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  followed_workstream_ids:
                    description: >
                      follows (Wave E), so the list page and quiet board can
                      render a follow toggle per cell without an extra fetch.
                      Ids not present are not followed.
                    items:
                      type: string
                    title: >
                      FollowedWorkstreamIDs lists which of the returned
                      workstreams the caller
                    type: array
                  open_urgent_by_workstream_id:
                    additionalProperties:
                      format: int64
                      type: integer
                    description: >
                      urgent attention items, for the quiet board (work-engine
                      D10). Only workstreams with at least one are present; a
                      missing entry means zero (a quiet cell). Embedded here so
                      the board reads a single existing endpoint rather than
                      fanning out a per-workstream attention query.
                    title: >
                      OpenUrgentByWorkstreamID maps workstream_id (string) → its
                      count of open,
                    type: object
                  open_urgent_standalone:
                    description: >
                      NO owning workstream (an org-level alert like a failing
                      automation). These never appear in
                      OpenUrgentByWorkstreamID and have no workstream cell, so
                      the quiet board needs this to answer "is everything OK?"
                      honestly — it must not read "all quiet" while standalone
                      urgents sit red in the feed.
                    format: int64
                    title: >
                      OpenUrgentStandalone counts open urgent attention items
                      org-wide that have
                    type: integer
                  phases_by_workstream_id:
                    additionalProperties:
                      items:
                        $ref: '#/components/schemas/types.WorkstreamPhase'
                      type: array
                    description: >
                      Embedded so list-page cards can render phase pips without
                      N+1 fetches. Workstreams with no phases are omitted from
                      the map (frontend should treat a missing entry as an empty
                      slice).
                    title: >
                      PhasesByWorkstreamID maps workstream_id (string) → its
                      ordered phases.
                    type: object
                  workstreams:
                    items:
                      $ref: '#/components/schemas/types.Workstream'
                    type: array
                type: object
          description: Success response
        default:
          $ref: '#/components/responses/APIError'
components:
  schemas:
    types.WorkstreamPhase:
      properties:
        completed_at:
          format: date-time
          type: string
        created_at:
          format: date-time
          type: string
        id:
          format: uuid
          type: string
        skill_slug:
          type: string
        slug:
          type: string
        sort_order:
          format: int32
          maximum: 2147483647
          minimum: -2147483648
          type: integer
        started_at:
          format: date-time
          type: string
        status:
          type: string
        thread_id:
          format: uuid
          type: string
        title:
          type: string
        updated_at:
          format: date-time
          type: string
        workstream_id:
          format: uuid
          type: string
      title: |
        WorkstreamPhase is an ordered step within a workstream.
      type: object
    types.Workstream:
      description: >
        Operational state machine for multi-step work (campaign launches,
        reports, monitors).
      properties:
        autonomy_mode:
          description: >
            (autopilot|propose|strict); nil inherits the org-level setting. The
            engine gate resolves effective mode = workstream ?? org ?? propose.
          title: |
            AutonomyMode is this workstream's autonomy override
          type: string
        completed_at:
          format: date-time
          type: string
        created_at:
          format: date-time
          type: string
        description:
          type: string
        escalation_budget_per_day:
          format: int32
          maximum: 2147483647
          minimum: -2147483648
          type: integer
        id:
          format: uuid
          type: string
        organization_id:
          format: uuid
          type: string
        primary_thread_id:
          format: uuid
          type: string
        project_id:
          format: uuid
          type: string
        slug:
          type: string
        source_template_id:
          format: uuid
          type: string
        spent_millicents:
          format: int64
          type: integer
        started_at:
          format: date-time
          type: string
        status:
          type: string
        title:
          type: string
        token_budget_millicents:
          description: >
            ceiling (nil = unlimited); SpentMillicents is the running total
            accrued from completed engine work; EscalationBudgetPerDay caps
            urgent items per rolling 24h (nil = org default). Millicents =
            tenths of a cent.
          format: int64
          title: |
            Budget envelope (work-engine D6). TokenBudgetMillicents is the spend
          type: integer
        updated_at:
          format: date-time
          type: string
      title: |
        Workstream represents a piece of business work in motion.
      type: object
  responses:
    APIError:
      content:
        application/json:
          schema:
            externalDocs:
              url: https://pkg.go.dev/encore.dev/beta/errs#Error
            properties:
              code:
                description: Error code
                example: not_found
                externalDocs:
                  url: https://pkg.go.dev/encore.dev/beta/errs#ErrCode
                type: string
              details:
                description: Error details
                type: object
              message:
                description: Error message
                type: string
            title: APIError
            type: object
      description: Error response
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: An Erdo API key (erdo_api_...) or scoped token (erdo_token_...).

````