Skip to main content
POST
Create Contact Export

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 → Developers → API Keys.

Headers

Idempotency-Key
string
Required string length: 1 - 100

Body

application/json
projectId
string
required
Pattern: ^[a-fA-F0-9]{24}$
segmentId
string
Pattern: ^[a-fA-F0-9]{24}$
filters
object

Each group combines its conditions and child groups using match: all (AND) by default, or any (OR). Values within one condition keep their existing semantics. At most 3 nested group levels below the root (root depth 0), 10 child groups per group, and 50 conditions across the entire tree. Each nonempty tags or excludeTags array, status, validationStatus, nonempty customFields key, fields entry, or activity entry counts as one condition; group containers do not count. Nested groups must contain a condition or a nonempty child group; the root may be empty. Campaign-specific activity requires all in its own group and every ancestor, but an any sibling is allowed. Send eligibility and project scope always apply outside these conditions.

Response

Export queued (or existing replay job returned)

success
boolean
required
data
object
error
string | null
Last modified on October 1, 2026