---
title: "List files or download a file from the Playground"
method: GET
path: "/api/playground"
tags: ["Playground"]
---

# List files or download a file from the Playground

`GET /api/playground`

Returns a list of filenames in the specified Playground folder, or
returns the contents of a specific file. If `folder` is `packages` and
`filename` is provided, returns a ZIP of the package.
Requires `admin`, `developer`, or the `playground_control` permission.

## Query parameters

- `folder` 'questions' | 'sources' | 'static' | 'templates' | 'modules' | 'packages'
- `project` string
- `user_id` integer
- `filename` string

## Response `200`

List of filenames or file contents.

- string[]

## Other responses

- `400` — Bad request.
- `403` — Access denied.
- `404` — File not found.

---

[API](https://skmtc.net/docassemble/apis/docassemble-api.md) · [All operations](https://skmtc.net/docassemble/apis/docassemble-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/docassemble/docassemble-api/versions/a75d7eea6826/schema)
