Datamigration sources API
6 operations. Back to the API overview. Examples use synthetic data.
Fetch migration file
POST /admin/v1/data-migrations/{id}/fetch
A further permission depends on the resource (for configuration, the write permission of its kind: config:write, or senders:write for senders).
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
id | path | string | required | - |
Request body
{}Response 202
| Field | Type | Presence | Description |
|---|---|---|---|
project | object (MigrationJSON) | optional | - |
project.approved_at | string (date-time) | optional | - |
project.approved_by | string | optional | - |
project.approved_version | integer | optional | - |
project.catalog | any | optional | - |
project.completed_at | string (date-time) | optional | - |
project.created_at | string (date-time) | optional | - |
project.created_by | string | optional | - |
project.dry_run | any | optional | - |
project.dry_run_version | integer | optional | - |
project.error_code | string | optional | - |
project.error_text | string | optional | - |
project.id | string | optional | - |
project.name | string | optional | - |
project.next | string | optional | Next is the step the project needs next, in plain language. |
project.pass | integer | optional | - |
project.profile | any | optional | - |
project.profile_version | integer | optional | - |
project.progress | object (DatamigrationProgress) | optional | Progress is a pass's durable state, saved after every batch. |
project.report_sha256 | string | optional | - |
project.run_version | integer | optional | - |
project.signed_off_at | string (date-time) | optional | - |
project.signed_off_by | string | optional | - |
project.spec | any | optional | - |
project.started_at | string (date-time) | optional | - |
project.started_by | string | optional | - |
project.status | string | optional | - |
project.updated_at | string (date-time) | optional | - |
project.version | integer | optional | - |
staged | object (StagedJSON) | optional | - |
staged.error | string | optional | - |
staged.error_code | string | optional | - |
staged.id | string | optional | - |
staged.origin | string | optional | - |
staged.part_bytes | integer | optional | - |
staged.received | integer | optional | - |
staged.sha256 | string | optional | - |
staged.size | integer | optional | - |
staged.state | string | optional | - |
staged.table | string | optional | - |
{
"project": {
"approved_at": "2026-01-15T14:30:00Z",
"approved_by": "example",
"approved_version": 1,
"catalog": {},
"completed_at": "2026-01-15T14:30:00Z",
"created_at": "2026-01-15T14:30:00Z",
"created_by": "example",
"dry_run": {},
"dry_run_version": 1,
"error_code": "Example text",
"error_text": "Example text",
"id": "example-id",
"name": "example-name",
"next": "example",
"pass": 1,
"profile": {},
"profile_version": 1,
"progress": {
"counts": {
"already_migrated": 1,
"excluded": 1,
"excluded_sum": "example",
"exclusions": {
"example": 1
},
"lines": 1,
"migrated": 1,
"migrated_sum": "example",
"optional_orphans": 1,
"read": 1,
"read_sum": "example",
"reasons": {
"example": 1
},
"rejected": 1,
"rejected_sum": "example",
"rule_changes": {
"example": 1
}
},
"cursor": {
"key": "example",
"line": 1,
"set": true,
"type": "example"
},
"done": true,
"file_stats": {
"blank_lines": 1,
"header_lines": 1,
"lines": 1,
"records": 1,
"skipped_lines": 1
}
},
"report_sha256": "example",
"run_version": 1,
"signed_off_at": "2026-01-15T14:30:00Z",
"signed_off_by": "example",
"spec": {},
"started_at": "2026-01-15T14:30:00Z",
"started_by": "example",
"status": "ok",
"updated_at": "2026-01-15T14:30:00Z",
"version": 1
},
"staged": {
"error": "Example text",
"error_code": "Example text",
"id": "example-id",
"origin": "example",
"part_bytes": 1,
"received": 1,
"sha256": "example",
"size": 1,
"state": "ok",
"table": "example"
}
}Other responses
400Bad Request401Authentication required403Not permitted404Not Found409Conflict (changed since read, or a state conflict)502Bad Gateway503Unavailable (nothing was changed)504Gateway Timeout
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{}' \
"https://YOUR-CONSOLE-HOST/admin/v1/data-migrations/example-id/fetch"Staged migration file
GET /admin/v1/data-migrations/{id}/staged/{sid}
A further permission depends on the resource (for configuration, the write permission of its kind: config:write, or senders:write for senders).
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
id | path | string | required | - |
sid | path | string | required | - |
Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
staged | object (StagedJSON) | optional | - |
staged.error | string | optional | - |
staged.error_code | string | optional | - |
staged.id | string | optional | - |
staged.origin | string | optional | - |
staged.part_bytes | integer | optional | - |
staged.received | integer | optional | - |
staged.sha256 | string | optional | - |
staged.size | integer | optional | - |
staged.state | string | optional | - |
staged.table | string | optional | - |
{
"staged": {
"error": "Example text",
"error_code": "Example text",
"id": "example-id",
"origin": "example",
"part_bytes": 1,
"received": 1,
"sha256": "example",
"size": 1,
"state": "ok",
"table": "example"
}
}Other responses
400Bad Request401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request GET \
--header "Authorization: Bearer $ID_TOKEN" \
"https://YOUR-CONSOLE-HOST/admin/v1/data-migrations/example-id/staged/example-sid"Cancel staged file
POST /admin/v1/data-migrations/{id}/staged/{sid}/cancel
A further permission depends on the resource (for configuration, the write permission of its kind: config:write, or senders:write for senders).
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
id | path | string | required | - |
sid | path | string | required | - |
Request body
{}Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
staged | object (StagedJSON) | optional | - |
staged.error | string | optional | - |
staged.error_code | string | optional | - |
staged.id | string | optional | - |
staged.origin | string | optional | - |
staged.part_bytes | integer | optional | - |
staged.received | integer | optional | - |
staged.sha256 | string | optional | - |
staged.size | integer | optional | - |
staged.state | string | optional | - |
staged.table | string | optional | - |
{
"staged": {
"error": "Example text",
"error_code": "Example text",
"id": "example-id",
"origin": "example",
"part_bytes": 1,
"received": 1,
"sha256": "example",
"size": 1,
"state": "ok",
"table": "example"
}
}Other responses
400Bad Request401Authentication required403Not permitted404Not Found409Conflict (changed since read, or a state conflict)503Unavailable (nothing was changed)
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{}' \
"https://YOUR-CONSOLE-HOST/admin/v1/data-migrations/example-id/staged/example-sid/cancel"Use staged file
POST /admin/v1/data-migrations/{id}/staged/{sid}/use
A further permission depends on the resource (for configuration, the write permission of its kind: config:write, or senders:write for senders).
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
id | path | string | required | - |
sid | path | string | required | - |
Request body
{}Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
detection | any | optional | - |
project | object (MigrationJSON) | optional | - |
project.approved_at | string (date-time) | optional | - |
project.approved_by | string | optional | - |
project.approved_version | integer | optional | - |
project.catalog | any | optional | - |
project.completed_at | string (date-time) | optional | - |
project.created_at | string (date-time) | optional | - |
project.created_by | string | optional | - |
project.dry_run | any | optional | - |
project.dry_run_version | integer | optional | - |
project.error_code | string | optional | - |
project.error_text | string | optional | - |
project.id | string | optional | - |
project.name | string | optional | - |
project.next | string | optional | Next is the step the project needs next, in plain language. |
project.pass | integer | optional | - |
project.profile | any | optional | - |
project.profile_version | integer | optional | - |
project.progress | object (DatamigrationProgress) | optional | Progress is a pass's durable state, saved after every batch. |
project.report_sha256 | string | optional | - |
project.run_version | integer | optional | - |
project.signed_off_at | string (date-time) | optional | - |
project.signed_off_by | string | optional | - |
project.spec | any | optional | - |
project.started_at | string (date-time) | optional | - |
project.started_by | string | optional | - |
project.status | string | optional | - |
project.updated_at | string (date-time) | optional | - |
project.version | integer | optional | - |
staged | object (StagedJSON) | optional | - |
staged.error | string | optional | - |
staged.error_code | string | optional | - |
staged.id | string | optional | - |
staged.origin | string | optional | - |
staged.part_bytes | integer | optional | - |
staged.received | integer | optional | - |
staged.sha256 | string | optional | - |
staged.size | integer | optional | - |
staged.state | string | optional | - |
staged.table | string | optional | - |
{
"detection": {},
"project": {
"approved_at": "2026-01-15T14:30:00Z",
"approved_by": "example",
"approved_version": 1,
"catalog": {},
"completed_at": "2026-01-15T14:30:00Z",
"created_at": "2026-01-15T14:30:00Z",
"created_by": "example",
"dry_run": {},
"dry_run_version": 1,
"error_code": "Example text",
"error_text": "Example text",
"id": "example-id",
"name": "example-name",
"next": "example",
"pass": 1,
"profile": {},
"profile_version": 1,
"progress": {
"counts": {
"already_migrated": 1,
"excluded": 1,
"excluded_sum": "example",
"exclusions": {
"example": 1
},
"lines": 1,
"migrated": 1,
"migrated_sum": "example",
"optional_orphans": 1,
"read": 1,
"read_sum": "example",
"reasons": {
"example": 1
},
"rejected": 1,
"rejected_sum": "example",
"rule_changes": {
"example": 1
}
},
"cursor": {
"key": "example",
"line": 1,
"set": true,
"type": "example"
},
"done": true,
"file_stats": {
"blank_lines": 1,
"header_lines": 1,
"lines": 1,
"records": 1,
"skipped_lines": 1
}
},
"report_sha256": "example",
"run_version": 1,
"signed_off_at": "2026-01-15T14:30:00Z",
"signed_off_by": "example",
"spec": {},
"started_at": "2026-01-15T14:30:00Z",
"started_by": "example",
"status": "ok",
"updated_at": "2026-01-15T14:30:00Z",
"version": 1
},
"staged": {
"error": "Example text",
"error_code": "Example text",
"id": "example-id",
"origin": "example",
"part_bytes": 1,
"received": 1,
"sha256": "example",
"size": 1,
"state": "ok",
"table": "example"
}
}Other responses
400Bad Request401Authentication required403Not permitted404Not Found409Conflict (changed since read, or a state conflict)502Bad Gateway503Unavailable (nothing was changed)504Gateway Timeout
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{}' \
"https://YOUR-CONSOLE-HOST/admin/v1/data-migrations/example-id/staged/example-sid/use"Start migration upload
POST /admin/v1/data-migrations/{id}/uploads
A further permission depends on the resource (for configuration, the write permission of its kind: config:write, or senders:write for senders).
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
id | path | string | required | - |
size | query | string | optional | - |
table | query | string | optional | - |
Request body
{}Response 201
| Field | Type | Presence | Description |
|---|---|---|---|
project | object (MigrationJSON) | optional | - |
project.approved_at | string (date-time) | optional | - |
project.approved_by | string | optional | - |
project.approved_version | integer | optional | - |
project.catalog | any | optional | - |
project.completed_at | string (date-time) | optional | - |
project.created_at | string (date-time) | optional | - |
project.created_by | string | optional | - |
project.dry_run | any | optional | - |
project.dry_run_version | integer | optional | - |
project.error_code | string | optional | - |
project.error_text | string | optional | - |
project.id | string | optional | - |
project.name | string | optional | - |
project.next | string | optional | Next is the step the project needs next, in plain language. |
project.pass | integer | optional | - |
project.profile | any | optional | - |
project.profile_version | integer | optional | - |
project.progress | object (DatamigrationProgress) | optional | Progress is a pass's durable state, saved after every batch. |
project.report_sha256 | string | optional | - |
project.run_version | integer | optional | - |
project.signed_off_at | string (date-time) | optional | - |
project.signed_off_by | string | optional | - |
project.spec | any | optional | - |
project.started_at | string (date-time) | optional | - |
project.started_by | string | optional | - |
project.status | string | optional | - |
project.updated_at | string (date-time) | optional | - |
project.version | integer | optional | - |
staged | object (StagedJSON) | optional | - |
staged.error | string | optional | - |
staged.error_code | string | optional | - |
staged.id | string | optional | - |
staged.origin | string | optional | - |
staged.part_bytes | integer | optional | - |
staged.received | integer | optional | - |
staged.sha256 | string | optional | - |
staged.size | integer | optional | - |
staged.state | string | optional | - |
staged.table | string | optional | - |
{
"project": {
"approved_at": "2026-01-15T14:30:00Z",
"approved_by": "example",
"approved_version": 1,
"catalog": {},
"completed_at": "2026-01-15T14:30:00Z",
"created_at": "2026-01-15T14:30:00Z",
"created_by": "example",
"dry_run": {},
"dry_run_version": 1,
"error_code": "Example text",
"error_text": "Example text",
"id": "example-id",
"name": "example-name",
"next": "example",
"pass": 1,
"profile": {},
"profile_version": 1,
"progress": {
"counts": {
"already_migrated": 1,
"excluded": 1,
"excluded_sum": "example",
"exclusions": {
"example": 1
},
"lines": 1,
"migrated": 1,
"migrated_sum": "example",
"optional_orphans": 1,
"read": 1,
"read_sum": "example",
"reasons": {
"example": 1
},
"rejected": 1,
"rejected_sum": "example",
"rule_changes": {
"example": 1
}
},
"cursor": {
"key": "example",
"line": 1,
"set": true,
"type": "example"
},
"done": true,
"file_stats": {
"blank_lines": 1,
"header_lines": 1,
"lines": 1,
"records": 1,
"skipped_lines": 1
}
},
"report_sha256": "example",
"run_version": 1,
"signed_off_at": "2026-01-15T14:30:00Z",
"signed_off_by": "example",
"spec": {},
"started_at": "2026-01-15T14:30:00Z",
"started_by": "example",
"status": "ok",
"updated_at": "2026-01-15T14:30:00Z",
"version": 1
},
"staged": {
"error": "Example text",
"error_code": "Example text",
"id": "example-id",
"origin": "example",
"part_bytes": 1,
"received": 1,
"sha256": "example",
"size": 1,
"state": "ok",
"table": "example"
}
}Other responses
400Bad Request401Authentication required403Not permitted404Not Found409Conflict (changed since read, or a state conflict)503Unavailable (nothing was changed)
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{}' \
"https://YOUR-CONSOLE-HOST/admin/v1/data-migrations/example-id/uploads"Migration upload part
PUT /admin/v1/data-migrations/{id}/uploads/{sid}
A further permission depends on the resource (for configuration, the write permission of its kind: config:write, or senders:write for senders).
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
id | path | string | required | - |
sid | path | string | required | - |
offset | query | string | optional | - |
Request body
{}Response 200
{
"staged": {
"error": "Example text",
"error_code": "Example text",
"id": "example-id",
"origin": "example",
"part_bytes": 1,
"received": 1,
"sha256": "example",
"size": 1,
"state": "ok",
"table": "example"
}
}Other responses
400Bad Request401Authentication required403Not permitted404Not Found409Conflict (changed since read, or a state conflict)422Unprocessable (invalid configuration or input)502Bad Gateway503Unavailable (nothing was changed)504Gateway Timeout
curl --request PUT \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{}' \
"https://YOUR-CONSOLE-HOST/admin/v1/data-migrations/example-id/uploads/example-sid"Something unclear or missing? Ask Help in the Velacent Bridge console; answers link to the right screen. How support works.