---
title: "Get migration by id"
method: GET
path: "/v1/operations/migrations/{id}"
tags: ["Operations"]
---

# Get migration by id

`GET /v1/operations/migrations/{id}`

Returns migration operation with specified id.

## Path parameters

- `id` integer, required

## Query parameters

- `micheline` 'Json' | 'JsonString' | 'Raw' | 'RawString'
- `quote` 'None' | 'Btc' | 'Eur' | 'Usd' | 'Cny' | 'Jpy' | 'Krw' | 'Eth' | 'Gbp'

## Response `200`

- MigrationOperation
  - `type` string — Type of the operation, `migration` - result of the context (database) migration during a protocol update (synthetic type)
  - `id` integer — Unique ID of the operation, stored in the TzKT indexer database
  - `level` integer — The height of the block from the genesis block, in which the operation was included
  - `timestamp` string, date-time — Datetime of the block, in which the operation was included (ISO 8601, e.g. `2020-02-20T02:40:57Z`)
  - `block` string, required — Hash of the block, in which the operation was included
  - `kind` string, required — Kind of the migration `bootstrap` - balance updates, included in the first block after genesis `activate_delegate` - registering a new baker (delegator) during protocol migration `airdrop` - airdrop of 1 micro tez during Babylon protocol upgrade `proposal_invoice` - invoice for creation a proposal for protocol upgrade `code_change` - changing contract scripts during Babylon protocol upgrade `origination` - implicit (hardcoded in the protocol) origination of liquidity baking contracts `subsidy` - liquidity baking subsidy `remove_bigmap_key` - removing the key from the bigmap
  - `account` Alias, required
    - `alias` string, nullable — Account alias name (off-chain data).
    - `address` string, required — Account address (public key hash).
  - `balanceChange` integer — The amount for which the operation updated the balance (micro tez)
  - `storage` unknown
  - `diffs` BigMapDiff[], nullable — List of bigmap updates caused by the migration.
    - `bigmap` integer — Bigmap Id
    - `path` string, required — Path to the bigmap in the contract storage
    - `action` string, required — Action with the bigmap (`allocate`, `add_key`, `update_key`, `remove_key`, `remove`)
    - `content` BigMapKeyShort
      - `hash` string, required — Key hash
      - `key` unknown, required
      - `value` unknown, required
  - `tokenTransfersCount` integer, nullable — Number of token transfers produced by the operation, or `null` if there are no transfers
  - `quote` QuoteShort
    - `btc` number, double, nullable — XTZ/BTC price
    - `eur` number, double, nullable — XTZ/EUR price
    - `usd` number, double, nullable — XTZ/USD price
    - `cny` number, double, nullable — XTZ/CNY price
    - `jpy` number, double, nullable — XTZ/JPY price
    - `krw` number, double, nullable — XTZ/KRW price
    - `eth` number, double, nullable — XTZ/ETH price
    - `gbp` number, double, nullable — XTZ/GBP price

---

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