POST
/
v1
/
email
/
unsubscribe
TypeScript client
import { TxAgentKitClient } from '@tx-agent-kit/sdk'

const client = new TxAgentKitClient({
  token: process.env.TX_AGENT_KIT_TOKEN
})

const response = await client.emailUnsubscribe.postUnsubscribe({
  body: {},
})
{
  "unsubscribed": true,
  "userId": "<string>",
  "campaignId": "<string>"
}

Body

application/json
token
string
required

Response

Success

unsubscribed
boolean
required
userId
string
required
campaignId
string | null
required