---
title: "Get the spec of this Workload Artefact Version"
method: GET
path: "/orgs/{orgId}/artefact-versions/{artefactVersionId}/workload-spec"
tags: ["public", "Artefact"]
---

# Get the spec of this Workload Artefact Version

`GET /orgs/{orgId}/artefact-versions/{artefactVersionId}/workload-spec`

Returns the spec of this Artefact Version if it is of type workload. An error will be
returned if it is not.

## Path parameters

- `orgId` string, required
- `artefactVersionId` string, required

## Headers

- `Accept` string

## Response `200`

The workload spec, returned in JSON format by default or in YAML if specified by the Accept header.

- object

## Other responses

- `400` — Malformed Artefact Version ID.
- `404` — Artefact Version not found.

---

[API](https://skmtc.net/humanitec/apis/humanitec-api.md) · [All operations](https://skmtc.net/humanitec/apis/humanitec-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/humanitec/humanitec-api/revisions/e21ad140ec3c/schema)
