---
title: "List imports (Beta)"
method: GET
path: "/migrations"
tags: ["Migrations"]
---

# List imports (Beta)

`GET /migrations`

## Request

- Base URL: `https://api.groundmail.dev`
- URL: `https://api.groundmail.dev/migrations`
- Auth: HTTP bearer

Your recent imports from SendGrid, Postmark or Mailgun, newest first, with running totals. Previews (`dry_run: true`) are not stored.

## Query parameters

- `limit` integer

## Response `200`

Recent imports

- MigrationListResponse
  - `data` MigrationSummary[], required
    - `id` string, uuid, required
    - `provider` 'sendgrid' | 'postmark' | 'mailgun', required
    - `status` 'in_progress' | 'completed' | 'partial' | 'failed', required
    - `resources` string[], required
    - `started_at` string, date-time, required
    - `finished_at` string, date-time, nullable, required
    - `totals` object, required: Totals per resource imported

## Other responses

- `401`: Missing or invalid API key
- `403`: The key lacks a scope that can read imports (`insufficient_scope`)

---

[API](https://skmtc.dev/groundmail/apis/groundmail-api.md) · [All operations](https://skmtc.dev/groundmail/apis/groundmail-api/llms.txt) · [OpenAPI document](https://skmtc.dev/groundmail/apis/groundmail-api/revisions/479821c9fecf?raw)
