{"id":61281,"date":"2024-02-22T07:59:58","date_gmt":"2024-02-22T07:59:58","guid":{"rendered":"https:\/\/developer.kore.ai\/v10-1\/?p=61281"},"modified":"2024-02-26T12:03:47","modified_gmt":"2024-02-26T12:03:47","slug":"how-do-i-include-an-image-in-an-outbound-twilio-sms-mms","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/kb\/how-do-i-include-an-image-in-an-outbound-twilio-sms-mms\/","title":{"rendered":"How do I include an Image in an Outbound Twilio SMS (MMS)?"},"content":{"rendered":"<section class=\"l-section wpb_row height_auto\"><div class=\"l-section-h i-cf\"><div class=\"g-cols vc_row type_default valign_top\"><div class=\"vc_col-sm-12 wpb_column vc_column_container\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\">\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<p><span style=\"font-weight: 400;\">For the Twilio SMS channel, you can use the <\/span><b><code>MediaUrl<\/code><\/b><span style=\"font-weight: 400;\"> parameter in the response to deliver an image. Let\u2019s see an example of how to send an outbound message that includes an image and a text message.<\/span><\/p>\n<p><b>Sample API CURL Script<\/b><\/p>\n<pre><code>curl -XPOST https:\/\/api.twilio.com\/2010-04-01\/Accounts\/ACXXXXXXXXXXXXXXXX\/Messages.json \\\r\n--data-urlencode \"To=+13105555555\" \\\r\n--data-urlencode \"From=+12125551234\" \\\r\n--data-urlencode \"<b>MediaUrl=https:\/\/demo.twilio.com\/owl.png<\/b>\" \\\r\n--data-urlencode \"Body=Hello, here is how it looks!\" \\\r\n-u 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token'\r\n<\/code><\/pre>\n<p><b>Related Links\u00a0<\/b><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><a href=\"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/channel-enablement\/adding-the-sms-channel\/\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400;\">Adding the Twilio SMS Channel<\/span><\/a><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><a href=\"https:\/\/support.twilio.com\/hc\/en-us\/articles\/223133907-Simple-Example-for-Sending-Programmable-SMS-Text-or-Picture-Messages\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400;\">Simple Example for Sending Programmable SMS Text or Picture Messages (Twilio Doc)<\/span><\/a><br \/>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"ult-spacer spacer-6ae884e549f98\" data-id=\"6ae884e549f98\" data-height=\"10\" data-height-mobile=\"10\" data-height-tab=\"10\" data-height-tab-portrait=\"\" data-height-mobile-landscape=\"\" style=\"clear:both;display:block;\"><\/div><\/div><\/div><\/div><\/div><\/div><\/section><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"For the Twilio SMS channel, you can use the MediaUrl parameter in the response to deliver an image. Let\u2019s see an example of how to send an outbound message that includes an image and a text message. Sample API CURL Script curl -XPOST https:\/\/api.twilio.com\/2010-04-01\/Accounts\/ACXXXXXXXXXXXXXXXX\/Messages.json \\ --data-urlencode \"To=+13105555555\" \\ --data-urlencode \"From=+12125551234\" \\ --data-urlencode \"MediaUrl=https:\/\/demo.twilio.com\/owl.png\" \\ --data-urlencode...","protected":false},"author":35,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[205],"tags":[],"class_list":["post-61281","post","type-post","status-publish","format-standard","hentry","category-kb"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/61281","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/users\/35"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/comments?post=61281"}],"version-history":[{"count":9,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/61281\/revisions"}],"predecessor-version":[{"id":61328,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/61281\/revisions\/61328"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/media?parent=61281"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/categories?post=61281"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/tags?post=61281"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}