Skip to main content
POST
/
v1
/
subscribers
/
bulk
Bulk Import Subscribers
curl --request POST \
  --url https://api.migma.ai/v1/subscribers/bulk \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "subscribers": [
    {
      "email": "[email protected]",
      "projectId": "<string>",
      "firstName": "<string>",
      "lastName": "<string>",
      "country": "<string>",
      "language": "<string>",
      "tags": [
        "<string>"
      ],
      "customFields": {}
    }
  ],
  "projectId": "<string>"
}
'
{
  "success": true,
  "data": {
    "success": 123,
    "failed": 123,
    "updated": 123,
    "errors": [
      "<string>"
    ]
  },
  "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
subscribers
object[]
required
Minimum array length: 1
projectId
string
required

Response

Bulk import result

success
boolean
required
data
object
error
string | null