listmonk unofficial
POST/campaigns/{id}/content

Submit campaign content

Submits updated content for a campaign and converts it to the campaign's content format. Use the campaign identifier in the path and provide any campaign content fields you want to submit.

  • IdempotentThe SDK sends Idempotency-Key, so a retried request is only applied once.

1 parameter · 24 body fields
idintegerrequired
The integer identifier of the campaign to submit content for.

Optional updated campaign content.

idintegeroptional
The integer identifier in the campaign content data.
created_atstringoptional
The campaign content creation timestamp.
updated_atstringoptional
The campaign content update timestamp.
CampaignIDintegeroptional
The integer identifier of the associated campaign.
viewsintegeroptional
The campaign's view count.
clicksintegeroptional
The campaign's click count.
listsarray<object>optional
List entries associated with the campaign content.
started_atstringoptional
The campaign start timestamp.
to_sendintegeroptional
The number of messages to send.
sentintegeroptional
The number of messages sent.
uuidstringoptional
The campaign content UUID.
typestringoptional
The campaign type: `regular` or `optin`.
Allowed:regularoptin
namestringoptional
The campaign name.
subjectstringoptional
The campaign subject line.
from_emailstringoptional
bodystringoptional
send_atstringoptional
statusstringoptional
content_typestringoptional
Allowed:richtexthtmlmarkdownplain
tagsarray<string>optional
template_idintegeroptional
messengerstringoptional
fromstringoptional
tostringoptional

1 status code
200Returns a string containing the response data for the campaign content operation.
datastringoptional

Error handling

The id path parameter must identify the campaign whose content you are submitting. If provided, type must be regular or optin.