API ReferenceRunsRetrieve Run

Retrieve Run

GET /api/v1/payroll-migrations/{migration_id}/runs/{id}/

Retrieve the details of a specific run within a migration.

Authentication

Requires an API key with migrations:read scope. Pass via the X-API-Key header.

Path Parameters

ParameterTypeDescription
migration_idstring (UUID)The unique identifier of the parent migration.
idstring (UUID)The unique identifier of the run.

Response

Status: 200 OK

{
  "id": "d4e5f6a7-b8c9-0123-def0-123456789abc",
  "migration": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
  "run_type": "source",
  "document_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "status": "completed",
  "created_at": "2026-03-16T12:00:00Z",
  "updated_at": "2026-03-16T12:05:00Z"
}

Response Fields

FieldTypeDescription
idstring (UUID)Unique identifier for the run.
migrationstring (UUID)ID of the parent migration.
run_typestringEither "source" or "target".
document_idstring (UUID)ID of the associated document.
statusstringCurrent status of the run.
created_atstring (ISO 8601)Timestamp when the run was created.
updated_atstring (ISO 8601)Timestamp when the run was last updated.

Errors

StatusDescription
401Missing or invalid API key.
403API key does not have migrations:read scope.
404Migration or run not found.

Code Examples

curl https://api.parsifyhq.com/api/v1/payroll-migrations/b2c3d4e5-f6a7-8901-bcde-f12345678901/runs/d4e5f6a7-b8c9-0123-def0-123456789abc/ \
  -H "X-API-Key: YOUR_API_KEY"