---
title: "List a team's packs with contents (admin; pack-test source)"
method: GET
path: "/api/admin/packs"
tags: ["Admin", "Packs"]
---

# List a team's packs with contents (admin; pack-test source)

`GET /api/admin/packs`

## Request

- Base URL: `https://app.d-sports.org`
- URL: `https://app.d-sports.org/api/admin/packs`
- Auth: HTTP bearer

Requires canAccessTeam: platform admin/superadmin, or any TeamAdmin role on the team (owner, editor, viewer). `teamId` is a team id or slug. Always includes contents (`includeContents: true`) with the full collectible, plus `maxReveal`, so web PackTesting and native (engage-native#1248) can run weightedRandomSelect(pack.contents, pack.maxReveal) locally. There is no pack-test start/stop session API: simulated opens are never sent to or stored by the server. Newest first, no pagination. `archived=true` lists archived packs only (status archived, ordered by updatedAt desc) with the same contents shape. Staging JSON capture is deferred; the example is a fixture, not a live capture.

## Query parameters

- `teamId` string, required
- `status` string
- `archived` boolean

## Response `200`

{ success: true, data: Pack[] }

- object
  - `success` true, required
  - `data` object[], required
    - `id` string, required
    - `teamId` string
    - `name` string, required
    - `slug` string
    - `status` string
    - `maxReveal` integer, required: Cards revealed per open. Default 3.
    - `contents` object[], required
      - `id` string, required
      - `packId` string, required
      - `collectibleId` string, required
      - `quantity` integer, required: Copies per draw of this collectible. Default 1.
      - `weight` integer, required: Relative draw weight. Default 100. Used by the client-side weightedRandomSelect simulation.
      - `collectible` object, required: Full Collectible row (every scalar column), not a narrowed select.
        - `id` string, required
        - `name` string, required
        - `description` string, required
        - `image` string, required
        - `rarity` 'COMMON' | 'RARE' | 'EPIC' | 'LEGENDARY' | 'MYTHIC', required

## Other responses

- `400`: { success: false, error: "Team ID required" }
- `401`: { success: false, error, code: UNAUTHORIZED }
- `403`: { success: false, error, code: FORBIDDEN }
- `500`: { success: false, error: "Failed to list packs" } ("Failed to list archived packs" with archived=true)

## Changes

- **2026-11-18** `6de639c52609`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/d-sports-ecosystem/apis/d-sports-api/changes/api/admin/packs/get.md)

---

[API](https://skmtc.dev/d-sports-ecosystem/apis/d-sports-api.md) - [All operations](https://skmtc.dev/d-sports-ecosystem/apis/d-sports-api/llms.txt) - [OpenAPI document](https://skmtc.dev/d-sports-ecosystem/apis/d-sports-api/revisions/63735cf90a04?raw)
