Skip to main content
POST
/
v1
/
projects
/
import
Node.js SDK
import Migma from 'migma';

const migma = new Migma('YOUR_API_KEY');

const { data, error } = await migma.projects.import({
  urls: ['https://yourbrand.com']
});

// Or wait for completion:
// const result = await migma.projects.importAndWait({ urls: ['https://yourbrand.com'] });
{
  "success": true,
  "data": {
    "projectId": "<string>",
    "status": "pending",
    "domain": "<string>",
    "urls": [
      "<string>"
    ],
    "message": "<string>"
  },
  "error": "<string>"
}

Authorizations

Authorization
string
header
required

API key authentication. Use 'Authorization: Bearer YOUR_API_KEY' where YOUR_API_KEY is obtained from the Migma dashboard under Settings → API Integration.

Body

application/json
urls
string<uri>[]
required
Required array length: 1 - 10 elements
logoUrls
object

Response

Import started

success
boolean
required
data
object
error
string | null