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

# Get Space Sections

> Retrieves all sections within a specific space. Sections are organizational units within spaces that help categorize conversations and content. Requires valid space access permissions.



## OpenAPI

````yaml api-reference/openapi.json get /api/v1/integration/spaces/{space_id}/sections
openapi: 3.1.0
info:
  title: Thesis.io APIs
  description: >-
    Thesis.io provides comprehensive AI-powered research and conversation APIs
    for DeFi analysis and blockchain research. Create conversations with
    customizable research modes including chat, deep research, and specialized
    DeFi tools for real-time market analysis. Join existing conversations via
    streaming endpoints to participate in collaborative research sessions with
    advanced AI agents.
  version: 0.32.1
servers:
  - url: https://app-be.thesis.io
    description: Production Thesis APIs
security:
  - APIKeyAuth: []
  - {}
paths:
  /api/v1/integration/spaces/{space_id}/sections:
    get:
      tags:
        - spaces
        - spaces
      summary: Get Space Sections
      description: >-
        Retrieves all sections within a specific space. Sections are
        organizational units within spaces that help categorize conversations
        and content. Requires valid space access permissions.
      operationId: get_space_sections_api_v1_integration_spaces__space_id__sections_get
      parameters:
        - name: space_id
          in: path
          required: true
          schema:
            type: string
            title: Space Id
      responses:
        '200':
          description: Space sections retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SpaceSectionsResponse'
        '400':
          description: Invalid request data or missing required fields
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SpaceErrorResponse'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/openhands__server__routes__integration__space__FastAPIUnauthorizedErrorResponse
        '404':
          description: Space not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FastAPIResourceNotFoundErrorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FastAPIErrorResponse'
      x-codeSamples:
        - lang: bash
          label: Get space sections
          source: >-
            curl -X GET
            'https://app-be.thesis.io/api/v1/integration/spaces/space_123/sections'
            \
              -H 'Authorization: Bearer YOUR_SPACE_API_TOKEN'
        - lang: python
          label: Get space sections
          source: >-
            import requests


            space_id = 'space_123'

            url =
            f'https://app-be.thesis.io/api/v1/integration/spaces/{space_id}/sections'

            headers = {
                'Authorization': 'Bearer YOUR_SPACE_API_TOKEN'
            }


            response = requests.get(url, headers=headers)

            print(response.json())
        - lang: typescript
          label: Get space sections
          source: >-
            const spaceId = 'space_123';

            const response = await
            fetch(`https://app-be.thesis.io/api/v1/integration/spaces/${spaceId}/sections`,
            {
              method: 'GET',
              headers: {
                'Authorization': 'Bearer YOUR_SPACE_API_TOKEN'
              }
            });


            const data = await response.json();

            console.log(data);
components:
  schemas:
    SpaceSectionsResponse:
      properties:
        data:
          anyOf:
            - items:
                $ref: '#/components/schemas/SpaceSection'
              type: array
            - type: 'null'
          title: Data
          description: List of sections in the space
          default: []
        status:
          type: string
          title: Status
          description: Response status message
          example: Get space sections success
      type: object
      required:
        - status
      title: SpaceSectionsResponse
    SpaceErrorResponse:
      properties:
        detail:
          type: string
          title: Detail
          description: Error details from FastAPI
          example: Invalid request data or missing required fields
      type: object
      required:
        - detail
      title: SpaceErrorResponse
    openhands__server__routes__integration__space__FastAPIUnauthorizedErrorResponse:
      properties:
        detail:
          type: string
          title: Detail
          description: Error details from FastAPI
          example: Unauthorized
      type: object
      required:
        - detail
      title: FastAPIUnauthorizedErrorResponse
    FastAPIResourceNotFoundErrorResponse:
      properties:
        detail:
          type: string
          title: Detail
          description: Error details from FastAPI
          example: Resource not found
      type: object
      required:
        - detail
      title: FastAPIResourceNotFoundErrorResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    FastAPIErrorResponse:
      properties:
        detail:
          type: string
          title: Detail
          description: Error details from FastAPI
          example: Internal server error
      type: object
      required:
        - detail
      title: FastAPIErrorResponse
    SpaceSection:
      properties:
        id:
          type: string
          title: Id
          description: Unique section identifier
          example: '555'
        spaceId:
          type: string
          title: Spaceid
          description: Space identifier
          example: '724'
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
          description: Section name
          example: Overview
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
          description: Section description
          example: ''
        prompt:
          anyOf:
            - type: string
            - type: 'null'
          title: Prompt
          description: Section prompt
          example: Create a chart...
        conversationId:
          type: string
          title: Conversationid
          description: Conversation ID
          example: abc123
        outputType:
          anyOf:
            - type: string
            - type: 'null'
          title: Outputtype
          description: Output type
          example: bar_chart
        mcpDisable:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Mcpdisable
          description: Disabled MCP services
        dataSource:
          anyOf:
            - items: {}
              type: array
            - type: 'null'
          title: Datasource
          description: Data sources
        x:
          anyOf:
            - items: {}
              type: array
            - type: 'null'
          title: X
          description: X data
        status:
          anyOf:
            - type: integer
            - type: 'null'
          title: Status
          description: Section status
          example: 1
        createdAt:
          anyOf:
            - type: string
            - type: 'null'
          title: Createdat
          description: Creation timestamp
          example: '2025-08-28T10:30:17.926Z'
        updatedAt:
          anyOf:
            - type: string
            - type: 'null'
          title: Updatedat
          description: Update timestamp
          example: '2025-09-10T11:04:56.465Z'
        interval:
          anyOf:
            - type: string
            - type: 'null'
          title: Interval
          description: Refresh interval
        lastRefreshedAt:
          anyOf:
            - type: string
            - type: 'null'
          title: Lastrefreshedat
          description: Last refresh timestamp
        autoRefresh:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Autorefresh
          description: Auto refresh enabled
          example: false
      type: object
      required:
        - id
        - spaceId
        - conversationId
      title: SpaceSection
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: 'Enter your API token in the format: Bearer <your_token_here>'

````