{"id":3004,"date":"2026-09-18T14:56:58","date_gmt":"2026-09-18T09:26:58","guid":{"rendered":"https:\/\/www.smsgatewaycenter.com\/blog\/?post_type=docs&#038;p=3004"},"modified":"2026-09-18T14:56:59","modified_gmt":"2026-09-18T09:26:59","password":"","slug":"can-i-send-rcs-messages-through-the-api","status":"publish","type":"docs","link":"https:\/\/www.smsgatewaycenter.com\/blog\/kb\/can-i-send-rcs-messages-through-the-api\/","title":{"rendered":"Can I send RCS messages through the API?"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Yes. You can send approved RCS templates from your own application with the <a href=\"https:\/\/www.smsgatewaycenter.com\/developer-api\/send-rcs-batch\/\">RCS API<\/a>. It uses the same templates and bots as the Send RCS screen.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Where to find the API details<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In your panel, go to <strong>RCS &gt; Documentation &gt; RCS API<\/strong>. There you&#8217;ll find:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Send RCS API<\/strong>: the endpoint for your account, headers, required and optional parameters, and sample responses.<\/li>\n\n\n\n<li><strong>Template RCS API<\/strong>: details for working with templates programmatically.<\/li>\n\n\n\n<li>A <strong>request builder<\/strong>: choose your username, send method, bot, template, numbers and TTL, and it generates ready-to-use cURL and PHP samples.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Key points<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Requests use <strong>POST<\/strong>. Authenticate with your user ID plus your <strong>API key<\/strong> in the request header.<\/li>\n\n\n\n<li>Two send methods: <strong>quick<\/strong> (a list of mobile numbers) and <strong>bulkupload<\/strong> (a recipients file, with the phone column named by the phone header field).<\/li>\n\n\n\n<li>The message is a JSON structure naming the <strong>templateCode<\/strong> (your approved template name), the <strong>customParams<\/strong> (variable values) and the <strong>ttl<\/strong>:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"contentMessage\": {\n    \"templateMessage\": {\n      \"templateCode\": \"WELCOME_TEMPLATE\",\n      \"customParams\": \"{\\\"custom_var\\\":\\\"John\\\",\\\"amount\\\":\\\"999\\\"}\"\n    }\n  },\n  \"ttl\": \"86400s\"\n}<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>customParams<\/code> is a JSON <em>string<\/em> (not a nested object) that maps each variable name to its value.<\/li>\n\n\n\n<li>You can add a campaign identifier and an optional schedule time.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">API-sent messages appear in the same reports as panel sends, with the channel shown as <strong>API<\/strong>. Keep your API key secret and regenerate it if it is ever exposed.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Yes. You can send approved RCS templates from your own application with the RCS API. It uses the same templates and bots as the Send RCS screen. Where to find the API details In your panel, go to RCS &gt; Documentation &gt; RCS API. There you&#8217;ll find: Key points API-sent messages appear in the same [&hellip;]<\/p>\n","protected":false},"author":118,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[2264],"doc_tag":[],"class_list":["post-3004","docs","type-docs","status-publish","hentry","doc_category-rcs-api"],"year_month":"2026-09","word_count":224,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"admin","author_nicename":"admin","author_url":"https:\/\/www.smsgatewaycenter.com\/blog\/author\/admin\/"},"doc_category_info":[{"term_name":"API","term_url":"https:\/\/www.smsgatewaycenter.com\/blog\/kb-cat\/rcs-api\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/www.smsgatewaycenter.com\/blog\/wp-json\/wp\/v2\/docs\/3004","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.smsgatewaycenter.com\/blog\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.smsgatewaycenter.com\/blog\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.smsgatewaycenter.com\/blog\/wp-json\/wp\/v2\/users\/118"}],"replies":[{"embeddable":true,"href":"https:\/\/www.smsgatewaycenter.com\/blog\/wp-json\/wp\/v2\/comments?post=3004"}],"version-history":[{"count":0,"href":"https:\/\/www.smsgatewaycenter.com\/blog\/wp-json\/wp\/v2\/docs\/3004\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.smsgatewaycenter.com\/blog\/wp-json\/wp\/v2\/media?parent=3004"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.smsgatewaycenter.com\/blog\/wp-json\/wp\/v2\/doc_category?post=3004"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.smsgatewaycenter.com\/blog\/wp-json\/wp\/v2\/doc_tag?post=3004"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}