---
title: "Get data file"
method: GET
path: "/data/{jobId}/{filename}"
tags: ["data"]
---

# Get data file

`GET /data/{jobId}/{filename}`

Returns the NDJSON file of data generated by an export job, which can be found via the jobs/{jobId} response.  Will be in the format <UUID>.ndjson or <UUID>-error.ndjson. Gzip is highly encouraged for faster downloads.

## Path parameters

- `jobId` integer, required
- `filename` string, required

## Headers

- `Accept-Encoding` 'gzip'

## Response `200`

File of newline-delimited JSON FHIR objects

## Other responses

- `400` — Malformed request. The body will contain a FHIR OperationOutcome resource in JSON format. https://www.hl7.org/fhir/operationoutcome.html.
- `401` — Unauthorized. The provided credentials are invalid for the requested resource.
- `404` — The requested path was not found. The body will contain a FHIR OperationOutcome resource in JSON format. https://www.hl7.org/fhir/operationoutcome.html

---

[API](https://skmtc.net/cmsgov/apis/beneficiary-claims-data-api.md) · [All operations](https://skmtc.net/cmsgov/apis/beneficiary-claims-data-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cmsgov/beneficiary-claims-data-api/revisions/3565bdea5a5f/schema)
