JavaScript
import Migma from 'migma'; const migma = new Migma('YOUR_API_KEY'); const { data, error } = await migma.export.hubspot({ conversationId: 'CONVERSATION_ID' });
{ "success": true, "data": { "files": [ { "filename": "<string>", "url": "<string>", "content": "<string>", "format": "html", "description": "<string>", "fileSize": 123 } ], "executionTime": 123, "exportType": "html" }, "error": "<string>" }
Export conversation as HubSpot-compatible HTML and HubL files.
API key authentication. Use 'Authorization: Bearer YOUR_API_KEY' where YOUR_API_KEY is obtained from the Migma dashboard under Settings → API Integration.
The conversation ID to export
Custom options for HubSpot export
Show child attributes
HubSpot export successful
Was this page helpful?