---
title: "Get artifacts related to task-script"
method: GET
path: "/v1/artifacts/task-scripts/{namespace}/{slug}/{version}/relationships"
tags: ["Task Scripts"]
---

# Get artifacts related to task-script

`GET /v1/artifacts/task-scripts/{namespace}/{slug}/{version}/relationships`

## Request

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

Returns a list of the relationships a task-script artifact has with other artifacts

## Path parameters

- `namespace` string, required
- `slug` string, required
- `version` string, required

## Query parameters

- `include_prereleases` boolean

## Response `200`

Successfully fetched Relationships

- Relationships
  - `ids` Key[]
    - `type` string, required
    - `namespace` string, required
    - `slug` string, required
    - `version` string, required
  - `taskScripts` Key[]
    - `type` string, required
    - `namespace` string, required
    - `slug` string, required
    - `version` string, required
  - `protocols` Key[]
    - `type` string, required
    - `namespace` string, required
    - `slug` string, required
    - `version` string, required
  - `connectors` Key[]
    - `type` string, required
    - `namespace` string, required
    - `slug` string, required
    - `version` string, required

## Other responses

- `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)
