---
title: "List fragments"
method: GET
path: "/papi/project/{projectId}/fragments"
tags: ["Fragments"]
---

# List fragments

`GET /papi/project/{projectId}/fragments`

## Request

- Base URL: `https://api.websitepublisher.ai`
- URL: `https://api.websitepublisher.ai/papi/project/{projectId}/fragments`
- Auth: OAuth 2 (authorization code, authorization URL `https://api.websitepublisher.ai/dapi/oauth/authorize`, token URL `https://api.websitepublisher.ai/dapi/oauth/token`, scopes: `read`, `write`)

List all reusable HTML fragments in a project. Returns fragment_name, include_tag, content and version info.

## Path parameters

- `projectId` integer, required

## Response `200`

List of fragments with include_tag and content

---

[API](https://skmtc.dev/websitepublisher/apis/websitepublisher-ai-api.md) · [All operations](https://skmtc.dev/websitepublisher/apis/websitepublisher-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/websitepublisher/apis/websitepublisher-ai-api/revisions/e9df1ef10551?raw)
