automation
dm_variations

Generate Dm Variations

Generate slight AI variations of the payload's DM content.

Only text (message, card titles, button labels) is rewritten — URLs and images are copied from the payload verbatim. Not supported for Attachment automations (nothing textual to vary). Returns null when the model fails so the client can fall back to manual entry.

post/v1/automation/dm_variations/generate

Request

  • Base URL
    https://api.linktodm.com (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Request body

namestring required
type'Auto DM Link' | 'Auto DM Products' | 'Button Text' | 'Attachment' required

Stub schema.

facebook_account_idstring nullable
instagram_business_account_idstring nullable
instagram_user_idstring nullable
media_type'IMAGE' | 'VIDEO' | 'CAROUSEL_ALBUM'
media_urlstring nullable
media_idstring nullable
keywordsstring[] nullable
dm_messagestring nullable
attachment_idinteger nullable
disable_auto_replyboolean nullable
auto_reply_messagesstring[] nullable
auto_reply_mode'MANUAL' | 'AI'
auto_reply_ai_promptstring nullable
auto_reply_limitinteger nullable
ask_to_followboolean nullable
is_activeboolean
is_draftboolean
is_storyboolean nullable
is_universalboolean nullable
trigger_type'STORY_MENTION' | 'CURRENT_MEDIA' | 'AD_MEDIA'
disable_url_trackingboolean nullable
disable_dmboolean nullable
one_dm_per_userboolean nullable
one_dm_per_user_window_hoursinteger nullable
share_media_for_dmboolean
enable_opener_messageboolean nullable
keyword_trigger_type'ANY' | 'EXACT_MATCH' | 'EXCLUDE' | 'AI_INTENT'
media_source'INSTAGRAM' | 'FACEBOOK'
trigger_ai_promptstring nullable
use_next_postboolean nullable
use_next_storyboolean nullable
use_rewindboolean nullable
countinteger

Response

Successful Response

Changes

No recorded changes to this operation across all 1 revision of this API.