---
title: "Create a Migration Source"
method: POST
path: "/storage/migration_sources"
tags: ["Data Migration"]
---

# Create a Migration Source

`POST /storage/migration_sources`

Create a source from which data can be migrated from.

## Request body

- MigrationSourceParams
  - `bucket_name` string, required — Bucket name to migrate the data from.
  - `id` string — Unique identifier for the data migration source.
  - `provider` 'aws' | 'telnyx', required — Cloud provider from which to migrate data. Use 'telnyx' if you want to migrate data from one Telnyx bucket to another.
  - `provider_auth` object, required
    - `access_key` string — AWS Access Key. For Telnyx-to-Telnyx migrations, use your Telnyx API key here.
    - `secret_access_key` string — AWS Secret Access Key. For Telnyx-to-Telnyx migrations, use your Telnyx API key here as well.
  - `source_region` string — For intra-Telnyx buckets migration, specify the source bucket region in this field.

## Response `200`

Create Migration Source Response

- object
  - `data` MigrationSourceParams
    - `bucket_name` string, required — Bucket name to migrate the data from.
    - `id` string — Unique identifier for the data migration source.
    - `provider` 'aws' | 'telnyx', required — Cloud provider from which to migrate data. Use 'telnyx' if you want to migrate data from one Telnyx bucket to another.
    - `provider_auth` object, required
      - `access_key` string — AWS Access Key. For Telnyx-to-Telnyx migrations, use your Telnyx API key here.
      - `secret_access_key` string — AWS Secret Access Key. For Telnyx-to-Telnyx migrations, use your Telnyx API key here as well.
    - `source_region` string — For intra-Telnyx buckets migration, specify the source bucket region in this field.

## Other responses

- `401` — Unauthorized
- `422` — Unprocessable Entity

---

[API](https://skmtc.net/team-telnyx/apis/telnyx-api-2.md) · [All operations](https://skmtc.net/team-telnyx/apis/telnyx-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/team-telnyx/telnyx-api-2/revisions/1571b0380bd7/schema)
