{"id":1481,"date":"2025-03-03T20:44:34","date_gmt":"2025-03-03T15:14:34","guid":{"rendered":"https:\/\/www.smsgatewaycenter.com\/blog\/?post_type=docs&#038;p=1481"},"modified":"2025-03-03T20:44:35","modified_gmt":"2025-03-03T15:14:35","password":"","slug":"how-do-i-send-a-sign-in-an-sms-using-the-api","status":"publish","type":"docs","link":"https:\/\/www.smsgatewaycenter.com\/blog\/kb\/how-do-i-send-a-sign-in-an-sms-using-the-api\/","title":{"rendered":"How Do I Send a &#8220;+&#8221; Sign in an SMS Using the API?"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Sending a &#8220;<strong>+<\/strong>&#8221; sign in an SMS via <strong>SMSGatewayCenter<\/strong>\u2019s API requires proper URL encoding to ensure the character is interpreted correctly. Follow these steps:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>URL Encode the &#8220;+&#8221; Sign<\/strong>: In your <strong><a href=\"https:\/\/www.smsgatewaycenter.com\">SMS Gateway<\/a><\/strong> API request, encode the &#8220;+&#8221; sign as %2B. For example, if you want to send a message like &#8220;Contact +919876543210,&#8221; encode it as &#8220;Contact%2B919876543210&#8221; in the <strong>msg<\/strong> parameter.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Use Sample Scripts<\/strong>: Refer to our <strong><a href=\"https:\/\/www.smsgatewaycenter.com\/developer-api\/send-sms-file\/\">SMS API documentation<\/a><\/strong> and sample scripts (e.g., PHP CURL or HTTP requests) to implement URL encoding. In PHP, you can use urlencode():<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$message = urlencode(\"Contact +919876543210\");\ncurl -X POST \\\n  https:\/\/unify.smsgateway.center\/SMSApi\/send \\\n  -H 'apikey: secretkey' \\\n  -H 'cache-control: no-cache' \\\n  -H 'content-type: application\/x-www-form-urlencoded' \\\n  -d 'userid=user&amp;password=userpass&amp;senderid=SENDER&amp;sendMethod=quick&amp;msgType=text&amp;mobile=919xxxxxxxxx9&amp;msg=$message&amp;duplicateCheck=true&amp;output=json'<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Test the Request<\/strong>: Send a test SMS to verify the &#8220;+&#8221; sign appears correctly in the message. Ensure your sender ID and recipient number are properly formatted.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br>If issues persist, check our troubleshooting tips or contact support for assistance.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sending a &#8220;+&#8221; sign in an SMS via SMSGatewayCenter\u2019s API requires proper URL encoding to ensure the character is interpreted correctly. Follow these steps: URL Encode the &#8220;+&#8221; Sign: In your SMS Gateway API request, encode the &#8220;+&#8221; sign as %2B. For example, if you want to send a message like &#8220;Contact +919876543210,&#8221; encode it [&hellip;]<\/p>\n","protected":false},"author":118,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[1334],"doc_tag":[],"class_list":["post-1481","docs","type-docs","status-publish","hentry","doc_category-api"],"year_month":"2026-07","word_count":175,"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\/api\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/www.smsgatewaycenter.com\/blog\/wp-json\/wp\/v2\/docs\/1481","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=1481"}],"version-history":[{"count":0,"href":"https:\/\/www.smsgatewaycenter.com\/blog\/wp-json\/wp\/v2\/docs\/1481\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.smsgatewaycenter.com\/blog\/wp-json\/wp\/v2\/media?parent=1481"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.smsgatewaycenter.com\/blog\/wp-json\/wp\/v2\/doc_category?post=1481"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.smsgatewaycenter.com\/blog\/wp-json\/wp\/v2\/doc_tag?post=1481"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}