---
title: "List favorites for the authenticated principal"
method: GET
path: "/api/favorites"
tags: ["Favorites"]
---

# List favorites for the authenticated principal

`GET /api/favorites`

## Query parameters

- `itemType` 'page' | 'workflow' | 'schedule'
- `itemIds` string

## Response `200`

Favorite rows and favorite item ids

- object
  - `favorites` UserFavorite[], required
    - `id` string, required
    - `userId` string
    - `itemType` 'page' | 'workflow' | 'schedule', required
    - `itemId` string, required
    - `createdAt` string, required
    - `lastUpdatedAt` string, required
    - `createdBy` string
    - `updatedBy` string
  - `favoriteIds` string[], required

## Other responses

- `401` — No authenticated principal context

---

[API](https://skmtc.net/desplega-ai/apis/agent-swarm-api.md) · [All operations](https://skmtc.net/desplega-ai/apis/agent-swarm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/desplega-ai/agent-swarm-api/versions/0375890be8c4/schema)
