---
title: "GET /portfolios/{accountId}"
method: GET
path: "/portfolios/{accountId}"
tags: ["Portfolios"]
---

# GET /portfolios/{accountId}

`GET /portfolios/{accountId}`

Get the list of your account’s portfolios and the workspaces they are connected with

## Path parameters

- `accountId` string, required

## Response `200`

A list of portfolios

- Portfolio[]
  - `id` string
  - `name` string, nullable
  - `workspaces` Workspace[], required
    - `id` string
    - `name` string, nullable
    - `key` string
    - `webUrl` string — Canonical Craft.io app URL for this workspace. Computed in PublishService.
  - `webUrl` string — Canonical Craft.io app URL for this portfolio. Computed in PublishService.

## Other responses

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

---

[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/2d001661c781/schema)
