{"info":{"_postman_id":"c46b21d5-b25d-4946-9d8a-a6dac5298296","name":"Sendpk.com","description":"<html><head></head><body><p>This documentation will provide instructions on how to quickly integrate Sendpk.Com messaging services into various solutions.</p>\n<p><strong>Services:</strong></p>\n<p>Based on standard communication channels, we have developed a set of feature rich services, to help with your business needs:</p>\n<ul>\n<li><p><a href=\"https://sendpk.com/blog/semi_branded_sms/\">Semi Branded</a></p>\n</li>\n<li><p><a href=\"https://sendpk.com/blog/branded-sms/\">Branded SMS</a></p>\n</li>\n<li><p><a href=\"https://sendpk.com/blog/short-code-sms/\">Short Code (OTP) SMS</a></p>\n</li>\n<li><p><a href=\"https://sendpk.com/voice-api.php\">Voice Message</a></p>\n</li>\n<li><p><a href=\"http://msgpk.com/\">Whatsapp Message</a></p>\n</li>\n</ul>\n<h2 id=\"how-to-get-started\">How to get started</h2>\n<ol>\n<li><p><a href=\"https://sendpk.com/Register.php\">Register</a><br> In order to use our API, you will need credentials. You will need <code>username</code> , <code>passowrd</code> &amp; <code>api_key</code>. These credentails can be obtained by creating an account and then by logging in <a href=\"https://sendpk.com/dashboard/profile.php\">cutomer portal</a>.</p>\n</li>\n<li><p><a href=\"https://sendpk.com/verification\">Account Verification<br></a>Verify Your Account By Providing<br> a) CNIC<br> b) Face ID<br> c) Legal Agreement On Your Letter Head<br> e) NTN</p>\n</li>\n</ol>\n<p><strong>Note!</strong><br>This is a local channel for <strong><code>terminating local/Pakistani origin companies/products/services traffic only</code></strong>, terminating traffic of any international entity directly or indirectly is considered is a crime and can lead to legal action for damages/losses incurred.</p>\n<p><strong>API Parameters</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameters</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>username</td>\n<td>your username @ sendpk.com</td>\n</tr>\n<tr>\n<td>password</td>\n<td>your password @ sendpk.com</td>\n</tr>\n<tr>\n<td>api_key</td>\n<td>your unique api key</td>\n</tr>\n<tr>\n<td>sender</td>\n<td>masking - brand - sender</td>\n</tr>\n<tr>\n<td>mobile</td>\n<td>international mobile number e.g 923xxx</td>\n</tr>\n<tr>\n<td>network</td>\n<td>The network parameter is optional. Expected values: jazz, zong, ufone, telenor. Use it to send sms on ported/mnp/converted numbers or send message from a specific network operator</td>\n</tr>\n<tr>\n<td>message</td>\n<td>your text message</td>\n</tr>\n<tr>\n<td>type</td>\n<td>message type i.e text, unicode</td>\n</tr>\n<tr>\n<td>format</td>\n<td>output response: json,xml &amp; plain</td>\n</tr>\n</tbody>\n</table>\n</div></body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"9576087","collectionId":"c46b21d5-b25d-4946-9d8a-a6dac5298296","publishedId":"2s9YyvBg5s","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-02-03T07:36:32.000Z"},"item":[{"name":"Send Single Message","id":"a8661c86-d3cf-4640-b588-128cfbc8e38e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"api_key","value":"{{API_KEY}}","description":"<p>Your Unuque API Key, Get From Your Profile:\n<a href=\"https://sendpk.com/dashboard/profile.php\">https://sendpk.com/dashboard/profile.php</a></p>\n","type":"text"},{"key":"sender","value":"{{BRAND NAME}}","description":"<p>Sender - Masking - Brand Name</p>\n","type":"text"},{"key":"mobile","value":"{{923XXXX}}","description":"<p>International Format Like 92300XXX</p>\n","type":"text"},{"key":"template_id","value":"{{Template_ID}}","description":"<p>Your approved Fixed-SMS template ID.\nManage Your Templates: <a href=\"https://sendpk.com/dashboard/templates_fixed.php\">https://sendpk.com/dashboard/templates_fixed.php</a>\nOr fetch them via the List My Templates request below.</p>\n","type":"text"},{"key":"message","value":"{\"name\":\"Aslam\",\"otp\":\"1234\"}","description":"<p>Your template's variable values as a JSON string, e.g. {\"name\":\"Aslam\",\"otp\":\"1234\"} for the template \"Hello #name#, your OTP code is #otp#\". The wording itself is fixed in your approved template — this is only the values that change.</p>\n","type":"text"},{"key":"format","value":"json","description":"<p>output response: json - xml - plain</p>\n","type":"text"}]},"url":"https://sendpk.com/api/sms.php","urlObject":{"protocol":"https","path":["api","sms.php"],"host":["sendpk","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"a8661c86-d3cf-4640-b588-128cfbc8e38e"},{"name":"Send Multiple Messages","id":"9260a066-c7ef-4f92-bc9a-e6b6669f7f9a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"api_key","value":"{{API_KEY}}","description":"<p>Your Unuque API Key, Get From Your Profile:\n<a href=\"https://sendpk.com/dashboard/profile.php\">https://sendpk.com/dashboard/profile.php</a></p>\n","type":"text"},{"key":"sender","value":"{{BRAND NAME}}","description":"<p>Sender - Masking - Brand Name</p>\n","type":"text"},{"key":"mobile","value":"{{92300XXX,92313XXX,9233XXX}}","description":"<p>Comma-separated list, International Format</p>\n","type":"text"},{"key":"template_id","value":"{{Template_ID}}","description":"<p>Your approved Fixed-SMS template ID.\nManage Your Templates: <a href=\"https://sendpk.com/dashboard/templates_fixed.php\">https://sendpk.com/dashboard/templates_fixed.php</a>\nOr fetch them via the List My Templates request below.</p>\n","type":"text"},{"key":"message","value":"{\"name\":\"Aslam\",\"amount\":\"2500\",\"date\":\"15 Sep\"}","description":"<p>Your template's variable values as a JSON string, e.g. {\"name\":\"Aslam\",\"otp\":\"1234\"} for the template \"Hello #name#, your OTP code is #otp#\". The wording itself is fixed in your approved template — this is only the values that change.</p>\n","type":"text"},{"key":"format","value":"json","description":"<p>output response: json - xml - plain</p>\n","type":"text"}]},"url":"https://sendpk.com/api/sms.php","urlObject":{"protocol":"https","path":["api","sms.php"],"host":["sendpk","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"9260a066-c7ef-4f92-bc9a-e6b6669f7f9a"},{"name":"Send Unicode Message","id":"5ecc020b-0809-4fb1-ba8a-350b710408cf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"api_key","value":"{{API_KEY}}","description":"<p>Your Unuque API Key, Get From Your Profile:\n<a href=\"https://sendpk.com/dashboard/profile.php\">https://sendpk.com/dashboard/profile.php</a></p>\n","type":"text"},{"key":"sender","value":"{{BRAND NAME}}","description":"<p>Sender - Masking - Brand Name</p>\n","type":"text"},{"key":"mobile","value":"{{923XXXX}}","description":"<p>International Format Like 92300XXX</p>\n","type":"text"},{"key":"template_id","value":"{{Template_ID}}","description":"<p>Your approved Fixed-SMS template ID.\nManage Your Templates: <a href=\"https://sendpk.com/dashboard/templates_fixed.php\">https://sendpk.com/dashboard/templates_fixed.php</a>\nOr fetch them via the List My Templates request below.</p>\n","type":"text"},{"key":"message","value":"{\"name\":\"اسلم\",\"order_id\":\"4471\"}","description":"<p>Your template's variable values as a JSON string, e.g. {\"name\":\"Aslam\",\"otp\":\"1234\"} for the template \"Hello #name#, your OTP code is #otp#\". The wording itself is fixed in your approved template — this is only the values that change. URL-encode this value when it contains non-Latin characters.</p>\n","type":"text"},{"key":"format","value":"json","description":"<p>output response: json - xml - plain</p>\n","type":"text"},{"key":"type","value":"unicode","description":"<p>Set to unicode for emoji / non-Latin script text.</p>\n","type":"text"}]},"url":"https://sendpk.com/api/sms.php","urlObject":{"protocol":"https","path":["api","sms.php"],"host":["sendpk","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"5ecc020b-0809-4fb1-ba8a-350b710408cf"},{"name":"Send Schedule Message","id":"07c61c83-a691-4013-a91b-cc580ac0254d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"api_key","value":"{{API_KEY}}","description":"<p>Your Unuque API Key, Get From Your Profile:\n<a href=\"https://sendpk.com/dashboard/profile.php\">https://sendpk.com/dashboard/profile.php</a></p>\n","type":"text"},{"key":"sender","value":"{{BRAND NAME}}","description":"<p>Sender - Masking - Brand Name</p>\n","type":"text"},{"key":"mobile","value":"{{923XXXX}}","description":"<p>International Format Like 92300XXX</p>\n","type":"text"},{"key":"message","value":"Hello World - This Is A Service Test Message From SENDPK.COM - Via API","description":"<p>Your Text Message</p>\n","type":"text"},{"key":"format","value":"json","description":"<p>output response: json - xml - plain</p>\n","type":"text"}]},"url":"https://sendpk.com/api/sms.php","urlObject":{"protocol":"https","path":["api","sms.php"],"host":["sendpk","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"07c61c83-a691-4013-a91b-cc580ac0254d"},{"name":"Send Dynamic Message","id":"d45328d0-cf92-4225-b67f-251f48f15c15","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"api_key","value":"{{API_KEY}}","description":"<p>Your Unuque API Key, Get From Your Profile:\n<a href=\"https://sendpk.com/dashboard/profile.php\">https://sendpk.com/dashboard/profile.php</a></p>\n","type":"text"},{"key":"sender","value":"{{MASK}}","description":"<p>Sender - Masking - Brand Name</p>\n","type":"text"},{"key":"url","value":"https://sendpk.com/api/xls_sample.xls","description":"<p>Publicly reachable link to your .txt/.csv/.xls/.xlsx file.</p>\n","type":"text"},{"key":"template_id","value":"{{Template_ID}}","description":"<p>Your approved Fixed-SMS template ID.\nManage Your Templates: <a href=\"https://sendpk.com/dashboard/templates_fixed.php\">https://sendpk.com/dashboard/templates_fixed.php</a>\nOr fetch them via the List My Templates request below.</p>\n","type":"text"},{"key":"message","value":"{\"name\":\"#B#\",\"marks\":\"#C#\",\"subject\":\"#D#\"}","description":"<p>Your template's variable values as JSON, with a #COLUMN# reference for each one — e.g. #B# pulls from column B of the file, so every recipient gets their own row's values.</p>\n","type":"text"},{"key":"duplicate","value":"1","description":"<p>0 removes duplicate numbers, 1 keeps them.</p>\n","type":"text"},{"key":"format","value":"json","description":"<p>output response: json - xml - plain</p>\n","type":"text"}]},"url":"https://sendpk.com/api/personalised.php","description":"<p>Send bulk SMS with unique information for every contact in a file (.txt, .csv, .xls, .xlsx) — no need to loop single sends.</p>\n","urlObject":{"protocol":"https","path":["api","personalised.php"],"host":["sendpk","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"d45328d0-cf92-4225-b67f-251f48f15c15"},{"name":"Send OTP Message (Short Code Users Only)","id":"0fd78800-6408-4fd8-95b9-cfa4d2ec56d3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"api_key","value":"{{API_KEY}}","description":"<p>Your Unuque API Key, Get From Your Profile:\n<a href=\"https://sendpk.com/dashboard/profile.php\">https://sendpk.com/dashboard/profile.php</a></p>\n","type":"text"},{"key":"sender","value":"{{BRAND NAME}}","description":"<p>Sender - Masking - Brand Name</p>\n","type":"text"},{"key":"mobile","value":"{{923XXXX}}","description":"<p>International Format Like 92300XXX</p>\n","type":"text"},{"key":"template_id","value":"{{Template_ID}}","description":"<p>Fixed Message Template ID</p>\n<p>Manage Your Templates:\n<a href=\"https://sendpk.com/dashboard/templates_fixed.php\">https://sendpk.com/dashboard/templates_fixed.php</a></p>\n","type":"text"},{"key":"message","value":"{\"name\":\"Aslam\",\"otp\":\"1234\"}","description":"<p>Example: {\"name\":\"Aslam\", \"otp\":\"1234\"}</p>\n","type":"text"},{"key":"format","value":"json","description":"<p>output response: json - xml - plain</p>\n","type":"text"}]},"url":"https://sendpk.com/api/sms.php","description":"<p><strong>Please Visit This Blog Post For More Details</strong></p>\n<p><a href=\"https://sendpk.com/blog/fixed-sms-api/\">https://sendpk.com/blog/fixed-sms-api/</a></p>\n","urlObject":{"protocol":"https","path":["api","sms.php"],"host":["sendpk","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"0fd78800-6408-4fd8-95b9-cfa4d2ec56d3"},{"name":"Send Voice Message | Text To Speech","id":"c6269ac6-998c-440e-b1d3-c7240f049d8b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"api_key","value":"{{Your_API_KEY}}","description":"<p>Your Unuque API Key, Get From Your Profile:\n<a href=\"https://sendpk.com/dashboard/profile.php\">https://sendpk.com/dashboard/profile.php</a></p>\n","type":"text"},{"key":"type","value":"3","description":"<p>1=Template Message, 2=Recorded Message, 3=Text To Speech</p>\n","type":"text"},{"key":"mobile","value":"{{923XXX}}","description":"<p>International Format Like 92300XXX,92313XXX</p>\n","type":"text"},{"key":"text","value":"Your Verification Code is 12345","description":"<p>Your Message</p>\n","type":"text"}]},"url":"https://sendpk.com/api/voicesms.php","urlObject":{"protocol":"https","path":["api","voicesms.php"],"host":["sendpk","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"c6269ac6-998c-440e-b1d3-c7240f049d8b"},{"name":"Send Voice Message | Template Message","id":"747d9cf7-f33f-4dd7-9bfb-580e6bc23a36","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"api_key","value":"{{Your_API_KEY}}","description":"<p>Your Unuque API Key, Get From Your Profile:\n<a href=\"https://sendpk.com/dashboard/profile.php\">https://sendpk.com/dashboard/profile.php</a></p>\n","type":"text"},{"key":"type","value":"1","description":"<p>1=Template Message, 2=Recorded Message, 3=Text To Speech</p>\n","type":"text"},{"key":"mobile","value":"{{923XXX}}","description":"<p>International Format Like 92300XXX,92313XXX</p>\n","type":"text"},{"key":"audio","value":"{{Template_ID}}","description":"<p>Saved Templated ID</p>\n<p>Manage Your Templates:\n<a href=\"https://sendpk.com/dashboard/Voicetemplates.php\">https://sendpk.com/dashboard/Voicetemplates.php</a></p>\n","type":"text"}]},"url":"https://sendpk.com/api/voicesms.php","urlObject":{"protocol":"https","path":["api","voicesms.php"],"host":["sendpk","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"747d9cf7-f33f-4dd7-9bfb-580e6bc23a36"},{"name":"Send Voice Message | Recorded Message","id":"a0d6a045-e70b-4a5f-b928-ab1255ede9dc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"api_key","value":"{{Your_API_KEY}}","description":"<p>Your Unuque API Key, Get From Your Profile:\n<a href=\"https://sendpk.com/dashboard/profile.php\">https://sendpk.com/dashboard/profile.php</a></p>\n","type":"text"},{"key":"type","value":"2","description":"<p>1=Template Message, 2=Recorded Message, 3=Text To Speech</p>\n","type":"text"},{"key":"mobile","value":"{{923xxx}}","description":"<p>International Format Like 92300XXX,92313XXX</p>\n","type":"text"},{"key":"format","value":"json","description":"<p>output response: json - xml - plain</p>\n","type":"text"},{"key":"file","description":"<p>Local File: Wav - Mp3</p>\n","type":"file","value":null}]},"url":"https://sendpk.com/api/voicesms.php","urlObject":{"protocol":"https","path":["api","voicesms.php"],"host":["sendpk","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"a0d6a045-e70b-4a5f-b928-ab1255ede9dc"},{"name":"Send Voice Message | DTMF - Feed Back Call - Order Confirmation Call","id":"2a222b65-e687-4c8e-91f1-9765a2cc2318","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"api_key","value":"{{Your_API_KEY}}","description":"<p>Your Unuque API Key, Get From Your Profile:\n<a href=\"https://sendpk.com/dashboard/profile.php\">https://sendpk.com/dashboard/profile.php</a></p>\n","type":"text"},{"key":"type","value":"2","description":"<p>1=Template Message, 2=Recorded Message, 3=Text To Speech</p>\n","type":"text"},{"key":"mobile","value":"{{923xxx}}","description":"<p>International Format Like 92300XXX,92313XXX</p>\n","type":"text"},{"key":"format","value":"json","description":"<p>output response: json - xml - plain</p>\n","type":"text"},{"key":"file","description":"<p>Local File: Wav - Mp3</p>\n","type":"file","value":null},{"key":"dtmf","value":"1","description":"<p>dtmf=1 To Enable this Option To Collect The Client Response</p>\n","type":"text"},{"key":"dtmf_timeout","value":"5","description":"<p>The Waiting Time Period in Seconds For End User To Enter DTMF Digits</p>\n","type":"text"},{"key":"dtmf_max","value":"{{NUMBER OF DIGIT}}","description":"<p>Defines the maximum number of DTMF codes entered by end user that would be collected. Limit 1 - 10</p>\n","type":"text"}]},"url":"https://sendpk.com/api/voicesms.php","description":"<p>This Service Will Collect The Client Phone Keys Press Data, <strong>For Example:</strong> We Want To Confirm A Order From A Client, A Call Will Be Receive &amp; Client Will Ask To Press 1 For Order Confirmation &amp; Press 2 For Order Cancellation, As Soon As Client Press Any Key On His Mobile Device, We Will Receive His Response Instantly. This Response Will Then Be Forwarded Securely To Your Defined Callback Url (Server) Via The Post Method.<br />To Set Up Your Callback Url And Ensure Seamless Integration, Please Reach Out To Our Dedicated Support Team. They Will Assist You In Configuring The Callback Url To Meet Your Specific Needs And Preferences.</p>\n","urlObject":{"protocol":"https","path":["api","voicesms.php"],"host":["sendpk","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"2a222b65-e687-4c8e-91f1-9765a2cc2318"},{"name":"Check Remaining Balance","id":"0a5176fc-ed4a-4543-bb8f-7c89e227524f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://sendpk.com/api/balance.php?api_key={{API_KEY}}&format=json","urlObject":{"protocol":"https","path":["api","balance.php"],"host":["sendpk","com"],"query":[{"description":{"content":"<p>Your Unuque API Key, Get From Your Profile:\n<a href=\"https://sendpk.com/dashboard/profile.php\">https://sendpk.com/dashboard/profile.php</a></p>\n","type":"text/plain"},"key":"api_key","value":"{{API_KEY}}"},{"description":{"content":"<p>output response: json - xml - plain</p>\n","type":"text/plain"},"key":"format","value":"json"}],"variable":[]}},"response":[],"_postman_id":"0a5176fc-ed4a-4543-bb8f-7c89e227524f"},{"name":"Check Delivery Reports","id":"238fcf6d-7d87-4da8-a92f-b702d9e0b90f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://sendpk.com/api/delivery.php?api_key={{API_KEY}}&id={{UNIQUE_IDS}}","urlObject":{"protocol":"https","path":["api","delivery.php"],"host":["sendpk","com"],"query":[{"description":{"content":"<p>Your Unuque API Key, Get From Your Profile:\n<a href=\"https://sendpk.com/dashboard/profile.php\">https://sendpk.com/dashboard/profile.php</a></p>\n","type":"text/plain"},"key":"api_key","value":"{{API_KEY}}"},{"description":{"content":"<p>Comma Seperated Delivery IDS Like: 74d77cd4-72d1-4eb1-bcf4-100b9d5d8566,392d2fb9-5984-4baf-a326-236c705ff532</p>\n","type":"text/plain"},"key":"id","value":"{{UNIQUE_IDS}}"}],"variable":[]}},"response":[],"_postman_id":"238fcf6d-7d87-4da8-a92f-b702d9e0b90f"},{"name":"List My Templates","id":"1e2fbdd0-12aa-44f3-9e9c-9142b94de6b4","request":{"method":"GET","header":[],"url":"https://sendpk.com/apps/fetch_all_fixed_templates.php?api_key={{API_KEY}}","description":"<p>Returns every approved Fixed-SMS template on your account, each with the template_id you pass when sending, so you never have to copy an ID out of the dashboard by hand.</p>\n","urlObject":{"protocol":"https","path":["apps","fetch_all_fixed_templates.php"],"host":["sendpk","com"],"query":[{"description":{"content":"<p>Your Unuque API Key, Get From Your Profile:\n<a href=\"https://sendpk.com/dashboard/profile.php\">https://sendpk.com/dashboard/profile.php</a></p>\n","type":"text/plain"},"key":"api_key","value":"{{API_KEY}}"}],"variable":[]}},"response":[],"_postman_id":"1e2fbdd0-12aa-44f3-9e9c-9142b94de6b4"}]}