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

# Get Portfolio By Id

> Returns information about a portfolio.



## OpenAPI

````yaml GET /v1/portfolios/{id}
openapi: 3.0.1
info:
  title: c-mass API
  description: API for managing carbon credits, projects, portfolios, and orders
  version: 1.0.0
servers:
  - url: https://carbon-engine.onrender.com
security:
  - bearerAuth: []
paths:
  /v1/portfolios/{id}:
    get:
      tags:
        - Portfolios
      summary: Retrieve a specific portfolio by ID
      parameters:
        - name: id
          in: path
          schema:
            type: string
          required: true
          description: The ID of the portfolio
      responses:
        '200':
          description: Portfolio details along with associated projects
          content:
            application/json:
              schema:
                type: object
                properties:
                  portfolio:
                    $ref: '#/components/schemas/Portfolio'
                  projects:
                    type: array
                    items:
                      type: object
                      properties:
                        _id:
                          type: string
                          description: The project ID
                        name:
                          type: string
                          description: The project name
                        description:
                          type: string
                          description: The project description
                        projectCategory:
                          type: string
                          description: The project category
        '404':
          description: Portfolio not found
        '500':
          description: Server error
      security:
        - bearerAuth: []
components:
  schemas:
    Portfolio:
      required:
        - name
      type: object
      properties:
        name:
          description: The name of the portfolio
          type: string
        description:
          description: A brief description of the portfolio
          type: string
        projects:
          type: array
          items:
            type: string
            description: The project IDs associated with this portfolio
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````