---
title: "Get v2 contract"
method: GET
path: "/v2/contracts/{id}"
tags: ["contracts"]
---

# Get v2 contract

`GET /v2/contracts/{id}`

Returns the details of a single v2 contract by its file contract ID.

## Path parameters

- `id` string, required

## Response `200`

V2 contract details.

- V2Contract — Host v2 contract metadata.

## Other responses

- `404` — Contract not found.

---

[API](https://skmtc.dev/siafoundation/apis/hostd-api.md) · [All operations](https://skmtc.dev/siafoundation/apis/hostd-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/siafoundation/hostd-api/revisions/08ff756929fc/schema)
