# Get Migration By Id

<Heading
  as={"h1"}
  className={"openapi__heading"}
  children={"Get Migration By Id"}
>
</Heading>

<MethodEndpoint
  method={"get"}
  path={"/api/v1/workspaces/{workspace_name}/pipelines/{pipeline_name}/migrations/{job_id}"}
  context={"endpoint"}
>
  
</MethodEndpoint>

Return a specific migration job by its ID.

<Heading
  id={"request"}
  as={"h2"}
  className={"openapi-tabs__heading"}
  children={"Request"}
>
</Heading>

<ParamsDetails
  parameters={[{"description":"The name of the pipeline you want to fetch.","in":"path","name":"pipeline_name","required":true,"schema":{"description":"The name of the pipeline you want to fetch.","title":"Pipeline Name","type":"string"}},{"description":"The ID of the migration job.","in":"path","name":"job_id","required":true,"schema":{"description":"The ID of the migration job.","format":"uuid","title":"Job Id","type":"string"}},{"description":"Type the name of the workspace.","in":"path","name":"workspace_name","required":true,"schema":{"description":"Type the name of the workspace.","title":"Workspace Name","type":"string"}}]}
>
  
</ParamsDetails>

<RequestSchema
  title={"Body"}
  body={undefined}
>
  
</RequestSchema>

<StatusCodes
  id={undefined}
  label={undefined}
  responses={{"200":{"content":{"application/json":{"schema":{"description":"Status of an async pipeline migration job.","properties":{"created_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Timestamp when the migration job was created.","title":"Created At"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Error message if the migration failed.","title":"Error Message"},"job_id":{"description":"Unique identifier for the migration job.","format":"uuid","title":"Job Id","type":"string"},"new_version_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"The version ID of the newly created draft. Set once the migration completes successfully.","title":"New Version Id"},"status":{"description":"Current status of the migration job: PENDING, IN_PROGRESS, COMPLETED, or FAILED.","title":"Status","type":"string"},"version_id":{"description":"The source pipeline version ID being migrated.","format":"uuid","title":"Version Id","type":"string"}},"required":["job_id","status","version_id"],"title":"MigrationJobStatusResponse","type":"object"}}},"description":"The migration job details."},"404":{"description":"Migration job or pipeline not found."},"422":{"content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"ctx":{"title":"Context","type":"object"},"input":{"title":"Input"},"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"title":"Location","type":"array"},"msg":{"title":"Message","type":"string"},"type":{"title":"Error Type","type":"string"}},"required":["loc","msg","type"],"title":"ValidationError","type":"object"},"title":"Detail","type":"array"}},"title":"HTTPValidationError","type":"object"}}},"description":"Validation Error"}}}
>
  
</StatusCodes>
