Skip to main content
POST
/
v1
/
export
/
hubspot
Export HubSpot
curl --request POST \
  --url https://api.migma.ai/v1/export/hubspot \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "conversationId": "<string>",
  "customOptions": {
    "customInstructions": "<string>"
  }
}
'
{
  "success": true,
  "data": {
    "files": [
      {
        "filename": "<string>",
        "url": "<string>",
        "content": "<string>",
        "format": "html",
        "description": "<string>",
        "fileSize": 123
      }
    ],
    "executionTime": 123,
    "exportType": "html"
  },
  "error": "<string>"
}

Authorizations

Authorization
string
header
required

JWT Bearer token authentication. Use 'Authorization: Bearer ' where the JWT token is obtained from the login endpoint.

Body

application/json
conversationId
string
required

The conversation ID to export

customOptions
object

Custom options for HubSpot export

Response

HubSpot export successful

success
boolean
required
data
object
error
string | null