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

# Get contract

`GET /v0/contracts/{id}`

Get a contract

## Path parameters

- `id` string, required

## Response `200`

Contract details

- MarketApiContractResponse
  - `object` 'contract', required
  - `status` 'active' | 'pending', required
  - `id` string, required
  - `created_at` string, date-time, required — An ISO 8601 datetime string
  - `instance_type` string, required
  - `shape` MarketApiExternalShape, required — A schedule representing a change of a quantity over time. The schedule changes at intervals[i] to quantity[i]. Intervals are sorted from first to last change.
    - `intervals` MarketApiISO8601DateTime[], required — The times at which changes in quantity occur
    - `quantities` integer[], required — The quantity changed to at that time
  - `colocate_with` MarketApiContractId[]
  - `cluster_id` string
  - `zone` string
  - `state` 'Upcoming' | 'Active' | 'Expired', required
  - `is_node` boolean, required — Specifies whether this contract is managed by the Nodes API
  - `procurement_id` string, nullable — The procurement which ordered this contract, if any

## Other responses

- `401` — Unauthorized - missing or invalid authentication token
- `403` — Forbidden - account frozen
- `404` — Contract not found
- `500` — Internal server error

---

[API](https://skmtc.net/sfcompute/apis/san-francisco-compute-documentation.md) · [All operations](https://skmtc.net/sfcompute/apis/san-francisco-compute-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sfcompute/san-francisco-compute-documentation/revisions/93dd7661e9bb/schema)
