---
title: "Get file contents"
method: GET
path: "/files/{fileID}/contents"
tags: ["Wire Files"]
---

# Get file contents

`GET /files/{fileID}/contents`

Assembles the existing file, computes sequence numbers and totals. Returns plaintext file.

## Path parameters

- `fileID` string, required

## Query parameters

- `format` string
- `newline` boolean

## Headers

- `X-Request-ID` string

## Response `200`

File built successfully without errors.

## Other responses

- `404` — A resource with the specified ID was not found

## Changes

- **2022-08-31** `b9d727667c4a` — 1 warning, 2 info
  - deleted the `query` request parameter `type`
  - added the new optional `query` request parameter `format`
  - added the new optional `query` request parameter `newline`
- **2022-08-31** `ca6ae3d67d1c` — 1 info
  - added the new optional `query` request parameter `type`
- **2021-06-20** `3cd11beb422b` — 1 info
  - added the non-success response with the status `404`
- **2019-03-27** `7e3e24800c15` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/moov-io/apis/wire-api/changes/files/:fileID/contents/get.md)

---

[API](https://skmtc.dev/moov-io/apis/wire-api.md) · [All operations](https://skmtc.dev/moov-io/apis/wire-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/moov-io/wire-api/revisions/9edefe9f84bb/schema)
