Skip to main content
GET
/
v1
/
emails
/
devices
/
supported
Node.js SDK
import Migma from 'migma';

const migma = new Migma('YOUR_API_KEY');

const { data, error } = await migma.previews.getSupportedDevices();
{
  "success": true,
  "data": {
    "total": 123,
    "categories": {
      "desktop": [
        {}
      ],
      "mobile": [
        {}
      ],
      "web": [
        {}
      ]
    },
    "defaultDevices": [
      "<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.

Response

Supported devices list

success
boolean
data
object