Skip to main content
POST
/
v1
/
subscribers
/
unsubscribe
Unsubscribe Subscriber
curl --request POST \
  --url https://api.migma.ai/v1/subscribers/unsubscribe \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "[email protected]",
  "projectId": "<string>",
  "allLists": true,
  "tags": [
    "<string>"
  ]
}
'
{
  "success": true,
  "data": {
    "success": true
  },
  "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
email
string<email>
required
projectId
string
required
allLists
boolean
default:true
tags
string[]

Response

Unsubscribe success

success
boolean
required
data
object
error
string | null