MailMoo
EndpointsCampaigns

List a campaign's merge fields

The personalization variables this campaign's messages may use, e.g. First Name. Write one as {{First Name | ""}} — the exact display name, plus a fallback. A merge field naming anything outside this list is not an error at send time: it resolves to an empty string, so the lead receives the sentence with a gap in it. campaigns.updateSequenceMessage rejects one rather than letting that happen.

GET/campaigns.getMergeFields

Authorization

bearerAuth
AuthorizationBearer <token>

Enter your MailMoo API key (format: sk_live_...)

In: header

Query Parameters

campaignId*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$
Formatuuid

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/campaigns.getMergeFields?campaignId=497f6eca-6276-4993-bfeb-53cbbbba6f08&input=%7B%22campaignId%22%3A%2213f8bf6d-dc27-4a04-bffe-6e5b13c19ddf%22%7D"
{  "campaignId": "13f8bf6d-dc27-4a04-bffe-6e5b13c19ddf",  "mergeFields": [    "string"  ]}