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

# Get Project Website

> Get website data for a project ID.

By default, returns the most recent website document.
If version parameter is provided, returns that specific version.

Args:
    project_id: The project ID to fetch
    version: Optional specific version to retrieve

Returns:
    The website data



## OpenAPI

````yaml openapi.json get /codenull/ai/api/v1/website/{project_id}
openapi: 3.1.0
info:
  title: codenull-ai-backend
  version: 0.1.0
servers: []
security: []
paths:
  /codenull/ai/api/v1/website/{project_id}:
    get:
      tags:
        - generate-website-get
      summary: Get Project Website
      description: |-
        Get website data for a project ID.

        By default, returns the most recent website document.
        If version parameter is provided, returns that specific version.

        Args:
            project_id: The project ID to fetch
            version: Optional specific version to retrieve

        Returns:
            The website data
      operationId: api-get_project_website
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
            title: Project Id
        - name: version
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            description: Specific version to retrieve
            title: Version
          description: Specific version to retrieve
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebsiteResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    WebsiteResponse:
      properties:
        project_id:
          type: string
          title: Project Id
          description: Project ID
        version:
          type: integer
          title: Version
          description: Version number
        pages:
          anyOf:
            - items:
                $ref: '#/components/schemas/PageData'
              type: array
            - type: 'null'
          title: Pages
          description: Website pages
        navigation:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Navigation
          description: Navigation structure
        created_at:
          type: string
          format: date-time
          title: Created At
          description: Creation timestamp
        status:
          type: string
          title: Status
          description: Status of the website
      type: object
      required:
        - project_id
        - version
        - created_at
        - status
      title: WebsiteResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PageData:
      properties:
        path:
          type: string
          title: Path
          description: URL path for the page (e.g., '/', '/about', '/contact')
        name:
          type: string
          title: Name
          description: Name of the page
        code:
          type: string
          title: Code
          description: Generated code for this page
      type: object
      required:
        - path
        - name
        - code
      title: PageData
    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

````