---
title: "GET /portfolio/{portfolioId}/portfolio_fields"
method: GET
path: "/portfolio/{portfolioId}/portfolio_fields"
tags: ["Portfolios"]
---

# GET /portfolio/{portfolioId}/portfolio_fields

`GET /portfolio/{portfolioId}/portfolio_fields`

Get the list of portfolio fields and their metadata

## Path parameters

- `portfolioId` string, required

## Query parameters

- `includeOptions` boolean

## Response `200`

A list of portfolio fields and their metadata

- CustomField[]
  - `id` string, required
  - `name` string, required
  - `type` string, required
  - `categoryId` string, nullable
  - `categoryName` string, nullable
  - `values` string[]
  - `options` CustomFieldOption[]
    - `id` string, required
    - `label` string, required
    - `startDate` string, nullable
    - `endDate` string, nullable
  - `optionShape` 'select' | 'date' | 'date_range'
  - `multi` boolean
  - `source` 'portal' | 'workspace'

## Other responses

- `400` — Invalid portfolio ID
- `401` — No access to portfolio
- `403` — Access denied
- `500` — An error occurred while fetching portfolio fields

---

[API](https://skmtc.net/craft/apis/craft-io-public-api.md) · [All operations](https://skmtc.net/craft/apis/craft-io-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/craft/craft-io-public-api/revisions/df0d980eb1e3/schema)
