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

# List all goals

> Retrieve a list of all goals in the specified workspace



## OpenAPI

````yaml /openapi/squad-api.json get /organisations/{orgId}/workspaces/{workspaceId}/outcomes
openapi: 3.1.0
info:
  title: Squad API
  version: 4.8.0
  description: API for managing Squad resources
  contact:
    name: Squad Support
    url: https://www.meetsquad.ai/support
    email: help@meetsquad.ai
servers:
  - url: https://api.meetsquad.ai
    description: Production server
  - url: https://uat.api.meetsquad.ai
    description: Staging server
  - url: https://dev.api.meetsquad.ai
    description: Development server
security: []
tags:
  - name: Organisations
  - name: Workspaces
  - name: Goals
  - name: Opportunities
  - name: Solutions
  - name: Feedback
  - name: Submit Feedback
  - name: Insights
  - name: Knowledge
  - name: Metrics
  - name: Topics
  - name: Integrations
  - name: AI & Search
  - name: Onboarding
paths:
  /organisations/{orgId}/workspaces/{workspaceId}/outcomes:
    get:
      tags:
        - Goals
      summary: List all goals
      description: Retrieve a list of all goals in the specified workspace
      operationId: listGoals
      parameters:
        - in: path
          name: orgId
          schema:
            type: string
          required: true
          description: Organization ID
          example: a5f3c6e1-9d20-4f7b-8e31-d09a2b63c184
        - in: path
          name: workspaceId
          schema:
            type: string
          required: true
          description: Workspace ID
          example: c0e195d9-b918-4a3a-bd8b-f730361d044f
        - $ref: '#/components/parameters/OutcomeRelationshipsParam'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                description: Response containing an array of outcomes
                type: object
                properties:
                  data:
                    description: Array of outcomes
                    type: array
                    items:
                      $ref: '#/components/schemas/Outcome'
                required:
                  - data
                additionalProperties: false
        '401':
          description: Unauthorized - Authentication required
          content:
            application/json:
              schema:
                description: Unauthorized - Missing or invalid authentication token
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        description: Error code identifier
                        example: UNAUTHORISED_ERROR
                        type: string
                      description:
                        description: Human-readable error description
                        example: User is unauthenticated
                        type: string
                    required:
                      - code
                      - description
                    additionalProperties: false
                required:
                  - error
                additionalProperties: false
        '403':
          description: Forbidden - Insufficient permissions
          content:
            application/json:
              schema:
                description: Forbidden - Insufficient permissions to access this resource
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        description: Error code identifier
                        example: UNAUTHORISED_ERROR
                        type: string
                      description:
                        description: Human-readable error description
                        example: User is unauthorised
                        type: string
                    required:
                      - code
                      - description
                    additionalProperties: false
                required:
                  - error
                additionalProperties: false
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                description: >-
                  Internal Server Error - An unexpected error occurred on the
                  server
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        description: Error code identifier
                        example: INTERNAL_SERVER_ERROR
                        type: string
                      description:
                        description: Human-readable error description
                        example: An unexpected error occurred on the server
                        type: string
                    required:
                      - code
                      - description
                    additionalProperties: false
                required:
                  - error
                additionalProperties: false
      security:
        - bearerAuth: []
components:
  parameters:
    OutcomeRelationshipsParam:
      in: query
      name: relationships
      schema:
        type: string
      required: false
      description: Comma-separated list of relationships to include in the response
      example: opportunities,solutions,insights,metrics
  schemas:
    Outcome:
      description: Outcome data representing a business objective
      type: object
      properties:
        id:
          description: Unique identifier for the outcome
          example: 7b9e5d2c-f314-48a9-be56-9843a2f6c019
          type: string
          format: uuid
          pattern: >-
            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        title:
          description: Title of the outcome
          example: Increase User Engagement
          type: string
        description:
          description: Detailed description of the outcome
          example: We aim to increase daily active users by 25% in Q3
          type: string
        priority:
          description: Priority level of the outcome
          example: 1
          type: number
        trend:
          description: Trend indicator for the outcome
          example: 0
          type: number
        analyticEvents:
          description: List of analytic events associated with the outcome
          example:
            - event1
            - event2
          type: array
          items:
            type: string
        hideContent:
          description: Whether the outcome is hidden
          example: false
          type: boolean
        ownerId:
          description: ID of the owner of the outcome
          example: 7b9e5d2c-f314-48a9-be56-9843a2f6c019
          type: string
        createdAt:
          description: Timestamp of when the outcome was created
          example: '2023-01-01T00:00:00.000Z'
          type: string
        updatedAt:
          description: Timestamp of when the outcome was last updated
          example: '2023-01-01T00:00:00.000Z'
          type: string
      required:
        - id
        - title
        - description
        - priority
        - hideContent
        - createdAt
        - updatedAt
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT authentication for organization-scoped endpoints.

````