---
title: "Returns a consensus epoch."
method: GET
path: "/consensus/epochs/{epoch}"
---

# Returns a consensus epoch.

`GET /consensus/epochs/{epoch}`

## Path parameters

- `epoch` integer, required

## Response `200`

A JSON object containing a consensus epoch.

- Epoch — A consensus epoch.
  - `id` integer, required — The epoch number.
  - `start_height` integer, required — The (inclusive) height at which this epoch started.
  - `end_height` integer — The (inclusive) height at which this epoch ended. Omitted if the epoch is still active.

## Other responses

- `400` — A human-readable error message.
- `404` — An empty response indicating that the requested resource was not found.
- `500` — A human-readable error message.

---

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