Skip to main content
POST
Node.js SDK

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.

Body

application/json
email
string<email>
required

Email address of the contact

status
enum<string>
required

New status for the contact

Available options:
subscribed,
unsubscribed,
bounced,
non-subscribed
projectId
string
required

Project ID

allLists
boolean
default:true

Apply to all lists

tags
string[]

Specific tag IDs to scope the status change

Response

Status updated

success
boolean
required
data
object
error
string | null