JavaScript
import Migma from 'migma'; const migma = new Migma('YOUR_API_KEY'); const { data, error } = await migma.projects.getImportStatus('PROJECT_ID');
{ "success": true, "data": { "status": "pending", "name": "<string>", "description": "<string>", "progress": { "stage": "initializing", "percentage": 50 }, "projectId": "<string>", "domain": "<string>", "error": "<string>" }, "error": "<string>" }
Check the status of a project import.
API key authentication. Use 'Authorization: Bearer YOUR_API_KEY' where YOUR_API_KEY is obtained from the Migma dashboard under Settings → API Integration.
Project ID (MongoDB ObjectId)
Import status response
Show child attributes
Was this page helpful?