---
title: "contents"
method: POST
path: "/api/v1/repos/{user_id}/{repo}/packages/contents.json"
tags: ["packages"]
---

# contents

`POST /api/v1/repos/{user_id}/{repo}/packages/contents.json`

Inspect the contents of a debian source package.

**Example request:**

```
curl -X POST                                                  \
     -F "package[distro_version_id]=17"                       \
     -F "package[package_file]=@path/to/jake_1.0-7.dsc"             \
        "https://packagecloud.io/api/v1/repos/test_user/test_repo/packages/contents.json"
```

## Path parameters

- `user_id` string, required
- `repo` string, required

## Response `200`

PackageContents A JSON object with a `files` key containing an array of files referenced in this source package.

- PackageContents[]
  - `files` object[] — An array of file entries referenced by the source package; each entry has a `filename`, `size`, and `md5sum`.
    - `filename` string
    - `size` integer
    - `md5sum` string

---

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