---
title: "Get artifact content by ID"
method: GET
path: "/ids/contentIds/{contentId}"
tags: ["Artifacts"]
---

# Get artifact content by ID

`GET /ids/contentIds/{contentId}`

## Request

- The document declares no server URL.
- Auth: none declared

Gets the content for an artifact version in the registry using the unique content
identifier for that content.  This content ID may be shared by multiple artifact
versions in the case where the artifact versions are identical.

This operation may fail for one of the following reasons:

* No content with this `contentId` exists (HTTP error `404`)
* A server error occurred (HTTP error `500`)

## Response `200`

The content of one version of one artifact.

- string, binary

## Other responses

- `401`: Common response for all operations that can return a `401` error indicating authentication is required.
- `403`: Common response for all operations that can return a `403` error indicating the user is authenticated but not authorized.
- `404`: Common response for all operations that can return a `404` error.
- `500`: Common response for all operations that can fail with an unexpected server error.

## Changes

> 65 revisions in range; 1 not diffed.

- **2025-09-22** (v2) `0f250f528b61`: 1 breaking, 1 info
  - api path removed without deprecation
  - endpoint added
- **2021-05-05** (v2) `d3f0f99883aa`: 3 breaking, 3 info
  - removed the media type `application/json` for the response with the status `200`
  - removed the media type `application/x-protobuf` for the response with the status `200`
  - removed the media type `application/x-protobuffer` for the response with the status `200`
  - added the media type `*/*` for the response with the status `200`
  - …2 more

[Operation history](https://skmtc.dev/apicurio/apis/apicurio-registry-api-v2/changes/ids/contentIds/:contentId/get.md)

---

[API](https://skmtc.dev/apicurio/apis/apicurio-registry-api-v2.md) - [All operations](https://skmtc.dev/apicurio/apis/apicurio-registry-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/apicurio/apis/apicurio-registry-api-v2/revisions/8c48f413fa1f?raw)
