---
title: "Download a workspace-hosted resource archive"
method: GET
path: "/workspaces/{slug}/resources/{id}/archive"
---

# Download a workspace-hosted resource archive

`GET /workspaces/{slug}/resources/{id}/archive`

## Request

- Base URL: `https://superskill.sh/api`
- URL: `https://superskill.sh/api/workspaces/{slug}/resources/{id}/archive`
- Auth: HTTP bearer

Returns a tar.gz archive from workspace archive storage. Requires workspace archive/read scope and never falls back to upstream GitHub.

## Path parameters

- `slug` string, required
- `id` string, required

## Response `200`

Gzip tar archive

## Other responses

- `401`: Authorization required
- `403`: Authorization was provided but is not allowed for this action
- `404`: Resource not found
- `409`: Bad request

---

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