---
title: "returns the epoch start block for a given epoch, following the protocol structure"
method: GET
path: "/internal/raw/startofepoch/metablock/by-epoch/{epoch}"
tags: ["internal"]
---

# returns the epoch start block for a given epoch, following the protocol structure

`GET /internal/raw/startofepoch/metablock/by-epoch/{epoch}`

## Request

- The document declares no server URL.
- Auth: none declared
- TypeScript: <https://skmtc.dev/multiversx/apis/multiversx-gateway-api/docs/internal/raw/startofepoch/metablock/by-epoch/:epoch/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `epoch` integer, required

## Response `200`

successful operation

- GenericResponse
  - `data` object
  - `error` string
  - `code` string

## Other responses

- `400`: validation error

## Changes

- **2023-02-09** `eaf76635324d`: 1 breaking, 1 info
  - api path removed without deprecation
  - endpoint added
- **2023-02-08** `82d543636074`: 1 breaking, 1 info
  - api path removed without deprecation
  - endpoint added

[Operation history](https://skmtc.dev/multiversx/apis/multiversx-gateway-api/changes/internal/raw/startofepoch/metablock/by-epoch/:epoch/get.md)

---

[API](https://skmtc.dev/multiversx/apis/multiversx-gateway-api.md) - [All operations](https://skmtc.dev/multiversx/apis/multiversx-gateway-api/llms.txt) - [OpenAPI document](https://skmtc.dev/multiversx/apis/multiversx-gateway-api/revisions/44c49bc12621?raw)
