Sign in

Create CTA

documented

Create a new Call-to-Action for a Campaign with required message and campaign.

POST /api/v2/ctas/Call-To-Actions (CTAs)no implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://snip.ly/api/v2/ctas/" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"message": "{{$message}}", "campaign": "{{$campaign_id}}", "button_action": {"text": "{{$button_text}}", "url": "{{$button_url}}"}, "background_color": "{{$background_color}}", "message_color": "{{$message_color}}", "theme": "{{$theme}}", "show_sniply_logo": {{$show_sniply_logo}}, "position": "{{$position}}"}'