---
title: "Get contents for an IDS file"
method: GET
path: "/v1/artifacts/ids/{namespace}/{slug}/{version}/files/{fileSlug}"
tags: ["IDS"]
---

# Get contents for an IDS file

`GET /v1/artifacts/ids/{namespace}/{slug}/{version}/files/{fileSlug}`

## Request

- Base URL: `https://api.tetrascience.com`
- URL: `https://api.tetrascience.com/v1/artifacts/ids/{namespace}/{slug}/{version}/files/{fileSlug}`
- Auth: API key in header `ts-auth-token` and API key in header `x-org-slug`

Returns the file contents for an IDS file given a namespace, slug, version, and file slug

## Path parameters

- `namespace` string, required
- `slug` string, required
- `version` string, required
- `fileSlug` 'athena' | 'build' | 'elasticsearch' | 'erd' | 'expected' | 'manifest' | 'readme' | 'schema' | 'source' | 'mapping', required

## Query parameters

- `download` boolean
- `include_prereleases` boolean

## Response `200`

Successfully fetched file

- union
  - object
    - `url` string, required
  - object
    - `content` unknown, required

## Other responses

- `400`: Incorrect input provided
- `404`: Not found or not visible to user

---

[API](https://skmtc.dev/tetrascience/apis/artifact-management-service.md) - [All operations](https://skmtc.dev/tetrascience/apis/artifact-management-service/llms.txt) - [OpenAPI document](https://skmtc.dev/tetrascience/apis/artifact-management-service/revisions/b96707d992f5?raw)
