---
title: "External System Importing Files"
method: GET
path: "/snapshots/{snapshot_id}/external-systems/{package_key}/graph/files"
tags: ["external-systems"]
---

# External System Importing Files

`GET /snapshots/{snapshot_id}/external-systems/{package_key}/graph/files`

## Request

- Base URL: `https://api.repowise.dev` (the document declares no server; this is the origin it was published from)
- URL: `https://api.repowise.dev/snapshots/{snapshot_id}/external-systems/{package_key}/graph/files`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/repowise/apis/repowise-hosted-api/docs/snapshots/:snapshot_id/external-systems/:package_key/graph/files/get.ts> (a function with typed inputs; its response is checked against the schema)

One bounded page of the files behind an opened relationship aggregate.

Declared before the `/graph` route below it: both share the
`{package_key:path}` prefix, and a path converter would otherwise swallow
the trailing `/graph/files` into the key.

## Path parameters

- `snapshot_id` string, required
- `package_key` string, required

## Query parameters

- `aggregate_key` string, required
- `scope` 'primary' | 'all'
- `limit` integer
- `offset` integer

## Response `200`

Successful Response

- ExternalSystemImportingFilesResponse: One independently bounded page of files behind an aggregate node.
  - `package_key` string
  - `aggregate_key` string
  - `items` ExternalSystemImportingFile[]
    - `path` string, required
    - `language` string, required
    - `import_edge_count` integer, required
    - `matched_external_node_count` integer, required
  - `total` integer
  - `returned` integer
  - `limit` integer
  - `offset` integer
  - `truncated` boolean
  - `scope` 'primary' | 'all'
  - `state` string
  - `reason` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/repowise/apis/repowise-hosted-api.md) - [All operations](https://skmtc.dev/repowise/apis/repowise-hosted-api/llms.txt) - [OpenAPI document](https://skmtc.dev/repowise/apis/repowise-hosted-api/revisions/3037f631a606?raw)
