This guide shows how to send an SMS text message to any phone number. Businesses send text messages to notify customers about recent information, send alerts, and provide delivery status updates, among other use cases.You can start sending SMS messages either by using our PHLO visual workflow builder or our APIs. Follow the instructions in one of the tabs below.
Using API
Here’s how to use Plivo APIs to send outbound SMS text messages.
To get started, you need a Plivo account — sign up with your work email address if you don’t have one already. If this is your first time using Plivo APIs, follow our instructions to set up a Node.js development environment.
Create a file called send_sms.js and paste into it this code.
var plivo = require('plivo');(function main() { 'use strict'; var client = new plivo.Client("<auth_id>", "<auth_token>"); client.messages.create( { src: "<sender_id>", dst: "<destination_number>", text: "Hello, from Node.js!", } ).then(function (response) { console.log(response); });})();
Replace the auth placeholders with your authentication credentials from the Plivo console. Replace the phone number placeholders with actual phone numbers in E.164 format (for example, +12025551234). In countries other than the US and Canada you can use a sender ID for the message source. You must have a Plivo phone number to send messages to the US or Canada; you can buy a Plivo number from Phone Numbers > Buy Numbers on the Plivo console or via the Numbers API.
Note:
We recommend that you store your credentials in the auth_id and auth_token environment variables to avoid the possibility of accidentally committing them to source control. If you do this, you can initialize the client with no arguments and Plivo will automatically fetch the values from the environment variables. You can use process.env to store environment variables and fetch them when initializing the client.
This guide shows how to send an SMS text message to any phone number. Businesses send text messages to notify customers about recent information, send alerts, and provide delivery status updates, among other use cases.You can start sending SMS messages either by using our PHLO visual workflow builder or our APIs. Follow the instructions in one of the tabs below.
Using API
Here’s how to use Plivo APIs to send outbound SMS text messages.
To get started, you need a Plivo account — sign up with your work email address if you don’t have one already. If this is your first time using Plivo APIs, follow our instructions to set up a Ruby development environment.
Replace the auth placeholders with your authentication credentials from the Plivo console. Replace the phone number placeholders with actual phone numbers in E.164 format] (for example, +12025551234). In countries other than the US and Canada you can use a sender ID for the message source. You must have a Plivo phone number to send messages to the US or Canada; you can buy a Plivo number from Phone Numbers > Buy Numbers on the Plivo console or via the Numbers API.
Note:
We recommend that you store your credentials in the auth_id and auth_token environment variables to avoid the possibility of accidentally committing them to source control. If you do this, you can initialize the client with no arguments and Plivo will automatically fetch the values from the environment variables. You can use ENV to store environment variables and fetch them when initializing the client.
This guide shows how to send an SMS text message to any phone number. Businesses send text messages to notify customers about recent information, send alerts, and provide delivery status updates, among other use cases.You can start sending SMS messages either by using our PHLO visual workflow builder or our APIs. Follow the instructions in one of the tabs below.
Using API
Here’s how to use Plivo APIs to send outbound SMS text messages.
To get started, you need a Plivo account — sign up with your work email address if you don’t have one already. If this is your first time using Plivo APIs, follow our instructions to set up a Python development environment.
Replace the auth placeholders with your authentication credentials from the Plivo console. Replace the phone number placeholders with actual phone numbers in E.164 format (for example, +12025551234). In countries other than the US and Canada you can use a sender ID for the message source. You must have a Plivo phone number to send messages to the US or Canada; you can buy a Plivo number from Phone Numbers > Buy Numbers on the Plivo console or via the Numbers API.
Note:
We recommend that you store your credentials in the auth_id and auth_token environment variables to avoid the possibility of accidentally committing them to source control. If you do this, you can initialize the client with no arguments and Plivo will automatically fetch the values from the environment variables. You can use os module(os.environ) to store environment variables and fetch them when initializing the client.
This guide shows how to send an SMS text message to any phone number. Businesses send text messages to notify customers about recent information, send alerts, and provide delivery status updates, among other use cases.You can start sending SMS messages either by using our PHLO visual workflow builder or our APIs. Follow the instructions in one of the tabs below.
Using API
Here’s how to use Plivo APIs to send outbound SMS text messages.
To get started, you need a Plivo account — sign up with your work email address if you don’t have one already. If this is your first time using Plivo APIs, follow our instructions to set up a PHP development environment.
Create a file called SendSMS.php and paste into it this code.
<?phprequire 'vendor/autoload.php';use Plivo\RestClient;$client = new RestClient("<auth_id>","<auth_token>");$response = $client->messages->create( [ "src" => "<sender_id>", "dst" => "<destination_number>", "text" =>"Hello, from PHP!" ]);print_r($response);?>
Replace the auth placeholders with your authentication credentials from the Plivo console. Replace the phone number placeholders with actual phone numbers in E.164 format (for example, +12025551234). In countries other than the US and Canada you can use a sender ID for the message source. You must have a Plivo phone number to send messages to the US or Canada; you can buy a Plivo number from Phone Numbers > Buy Numbers on the Plivo console or via the Numbers API.
Note:
We recommend that you store your credentials in the auth_id and auth_token environment variables to avoid the possibility of accidentally committing them to source control. If you do this, you can initialize the client with no arguments and Plivo will automatically fetch the values from the environment variables. You can use ENV to store environment variables and fetch them when initializing the client.
This guide shows how to send an SMS text message to any phone number. Businesses send text messages to notify customers about recent information, send alerts, and provide delivery status updates, among other use cases.You can start sending SMS messages either by using our PHLO visual workflow builder or our APIs. Follow the instructions in one of the tabs below.
Using API
Here’s how to use Plivo APIs to send outbound SMS text messages.
To get started, you need a Plivo account — sign up with your work email address if you don’t have one already. If this is your first time using Plivo APIs, follow our instructions to set up a .NET development environment.
In Visual Studio, in the CS project, open the file Program.cs and paste into it this code.
using System;using System.Collections.Generic;using Plivo;namespace PlivoExamples{ internal class Program { public static void Main(string[] args) { var api = new PlivoApi("<auth_id>","<auth_token>"); var response = api.Message.Create( src: "<sender_id>", dst: "<destination_number>", text: "Hello, from .NET!" ); Console.WriteLine(response); } }}
Replace the auth placeholders with your authentication credentials from the Plivo console. Replace the phone number placeholders with actual phone numbers in E.164 format(for example, +12025551234). In countries other than the US and Canada you can use a sender ID for the message source. You must have a Plivo phone number to send messages to the US or Canada; you can buy a Plivo number from Phone Numbers > Buy Numbers on the Plivo console or via the Numbers API.
Note:
We recommend that you store your credentials in the auth_id and auth_token environment variables to avoid the possibility of accidentally committing them to source control. If you do this, you can initialize the client with no arguments and Plivo will automatically fetch the values from the environment variables. You can use the Environment.SetEnvironmentVariable method to store environment variables and Environment.GetEnvironmentVariable to fetch them when initializing the client.
This guide shows how to send an SMS text message to any phone number. Businesses send text messages to notify customers about recent information, send alerts, and provide delivery status updates, among other use cases.You can start sending SMS messages either by using our PHLO visual workflow builder or our APIs. Follow the instructions in one of the tabs below.
Using API
Here’s how to use Plivo APIs to send outbound SMS text messages.
To get started, you need a Plivo account — sign up with your work email address if you don’t have one already. If this is your first time using Plivo APIs, follow our instructions to set up a Java development environment.
Replace the auth placeholders with your authentication credentials from the Plivo console. Replace the phone number placeholders with actual phone numbers in E.164 format (for example, +12025551234). In countries other than the US and Canada you can use a sender ID for the message source. You must have a Plivo phone number to send messages to the US or Canada; you can buy a Plivo number from Phone Numbers > Buy Numbers on the Plivo console or via the Numbers API.
Note:
We recommend that you store your credentials in the auth_id and auth_token environment variables to avoid the possibility of accidentally committing them to source control. If you do this, you can initialize the client with no arguments and Plivo will automatically fetch the values from the environment variables. You can use <a rel="nofollow" href="https://docs.oracle.com/javase/tutorial/essential/environment/env.html">System.getenv()</a> to store and retrieve environment variables when initializing the client.
This guide shows how to send an SMS text message to any phone number. Businesses send text messages to notify customers about recent information, send alerts, and provide delivery status updates, among other use cases.You can start sending SMS messages either by using our PHLO visual workflow builder or our APIs. Follow the instructions in one of the tabs below.
Using API
Here’s how to use Plivo APIs to send outbound SMS text messages.
To get started, you need a Plivo account — sign up with your work email address if you don’t have one already. If this is your first time using Plivo APIs, follow our instructions to set up a Go development environment.
Replace the auth placeholders with your authentication credentials from the Plivo console. Replace the phone number placeholders with actual phone numbers in E.164 format (for example, +12025551234). In countries other than the US and Canada you can use a sender ID for the message source. You must have a Plivo phone number to send messages to the US or Canada; you can buy a Plivo number from Phone Numbers > Buy Numbers on the Plivo console or via the Numbers API.
Note:
We recommend that you store your credentials in the auth_id and auth_token environment variables to avoid the possibility of accidentally committing them to source control. If you do this, you can initialize the client with no arguments and Plivo will automatically fetch the values from the environment variables. You can use os.Setenv and os.Getenv functions to store environment variables and fetch them when initializing the client.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Plivo","colors":{"primary":"#323dfe","light":"#5b6bff","dark":"#2830cc"},"logo":{"light":"https://mintcdn.com/plivo/nlRVupwxTfmW2fPy/logo/newlogodark.svg?fit=max\u0026auto=format\u0026n=nlRVupwxTfmW2fPy\u0026q=85\u0026s=60816eb957f6b8962ef15eddde76449a","dark":"https://mintcdn.com/plivo/nlRVupwxTfmW2fPy/logo/newlogolight.svg?fit=max\u0026auto=format\u0026n=nlRVupwxTfmW2fPy\u0026q=85\u0026s=27bd82e8f16bad829a0536c7a8fa9374","href":"https://www.plivo.com/"},"favicon":"https://mintcdn.com/plivo/dmvKeqcj6my-kDvH/favicon.svg?fit=max\u0026auto=format\u0026n=dmvKeqcj6my-kDvH\u0026q=85\u0026s=1416a3d8d3d1f8f94fb88979b6b327e9","background":{"decoration":"grid"},"navbar":{"links":[{"href":"https://support.plivo.com/hc/en-us","label":"Support"},{"href":"https://cx.plivo.com/home","label":"Console"},{"href":"https://cx.plivo.com/signup","label":"Sign Up"}]},"footer":{"socials":{"x":"https://twitter.com/plivo","github":"https://github.com/plivo","linkedin":"https://www.linkedin.com/company/plivo-inc","facebook":"https://fb.com/plivo"}},"fonts":{"family":"Inter"},"icons":{"library":"lucide"},"integrations":{"ga4":{"measurementId":"G-YLW0ZWN2T7"},"posthog":{"apiKey":"phc_5ISIYiMfoaGh9TVGt9ydU6g91tlKvvj1qrDIcC4vKGP","apiHost":"https://f.plivo.com"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"plivo","hasAudioNarration":false,"actualSubdomain":"plivo","customDomains":["plivo.com"],"gitSource":{"type":"github","owner":"plivo-dev","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae9b14c22dab27fc6bfeb4b","collectionId":"43cf1a70-528e-4d52-9a81-eebd5da572f7","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae9b14c22dab27fc6bfeb4b"},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6ae9b14c22dab27fc6bfeb4b","clientVersion":"0.0.4067","searchFilterCounts":[{"language":"default","tag":"Programmable APIs","count":284},{"language":"default","tag":"Voice API","count":91},{"language":"default","tag":"Concepts","count":64},{"language":"default","tag":"Messaging API","count":61},{"language":"default","tag":"Integrations","count":44},{"language":"default","tag":"All integrations","count":43},{"language":"default","tag":"API Reference","count":42},{"language":"default","tag":"SIP Trunking","count":38},{"language":"default","tag":"Audio Streaming","count":30},{"language":"default","tag":"Voice Tutorials","count":28}]},"assistantConfig":{},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":true,"toggles":[],"googleFontsInlined":false},"customCss":[{"filePath":"styles.css","content":"/* cyrillic-ext */\n@font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/jetbrainsmono/v24/tDbv2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKwBNntkaToggR7BYRbKPx3cwhsk.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/jetbrainsmono/v24/tDbv2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKwBNntkaToggR7BYRbKPxTcwhsk.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* greek */\n@font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/jetbrainsmono/v24/tDbv2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKwBNntkaToggR7BYRbKPxPcwhsk.woff2) format('woff2');\n unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;\n}\n/* vietnamese */\n@font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/jetbrainsmono/v24/tDbv2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKwBNntkaToggR7BYRbKPx_cwhsk.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/jetbrainsmono/v24/tDbv2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKwBNntkaToggR7BYRbKPx7cwhsk.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/jetbrainsmono/v24/tDbv2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKwBNntkaToggR7BYRbKPxDcwg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* cyrillic-ext */\n@font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/jetbrainsmono/v24/tDbv2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKwBNntkaToggR7BYRbKPx3cwhsk.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/jetbrainsmono/v24/tDbv2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKwBNntkaToggR7BYRbKPxTcwhsk.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* greek */\n@font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/jetbrainsmono/v24/tDbv2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKwBNntkaToggR7BYRbKPxPcwhsk.woff2) format('woff2');\n unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;\n}\n/* vietnamese */\n@font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/jetbrainsmono/v24/tDbv2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKwBNntkaToggR7BYRbKPx_cwhsk.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/jetbrainsmono/v24/tDbv2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKwBNntkaToggR7BYRbKPx7cwhsk.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/jetbrainsmono/v24/tDbv2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKwBNntkaToggR7BYRbKPxDcwg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* cyrillic-ext */\n@font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/jetbrainsmono/v24/tDbv2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKwBNntkaToggR7BYRbKPx3cwhsk.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/jetbrainsmono/v24/tDbv2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKwBNntkaToggR7BYRbKPxTcwhsk.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* greek */\n@font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/jetbrainsmono/v24/tDbv2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKwBNntkaToggR7BYRbKPxPcwhsk.woff2) format('woff2');\n unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;\n}\n/* vietnamese */\n@font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/jetbrainsmono/v24/tDbv2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKwBNntkaToggR7BYRbKPx_cwhsk.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/jetbrainsmono/v24/tDbv2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKwBNntkaToggR7BYRbKPx7cwhsk.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/jetbrainsmono/v24/tDbv2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKwBNntkaToggR7BYRbKPxDcwg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Sora';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/sora/v17/xMQ9uFFYT72X5wkB_18qmnndmSdSnh2BAfO5mnuyOo1lfiQwWa-xsaQ.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Sora';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/sora/v17/xMQ9uFFYT72X5wkB_18qmnndmSdSnh2BAfO5mnuyOo1lfiQwV6-x.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Sora';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/sora/v17/xMQ9uFFYT72X5wkB_18qmnndmSdSnh2BAfO5mnuyOo1lfiQwWa-xsaQ.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Sora';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/sora/v17/xMQ9uFFYT72X5wkB_18qmnndmSdSnh2BAfO5mnuyOo1lfiQwV6-x.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Sora';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/sora/v17/xMQ9uFFYT72X5wkB_18qmnndmSdSnh2BAfO5mnuyOo1lfiQwWa-xsaQ.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Sora';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/sora/v17/xMQ9uFFYT72X5wkB_18qmnndmSdSnh2BAfO5mnuyOo1lfiQwV6-x.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Sora';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/sora/v17/xMQ9uFFYT72X5wkB_18qmnndmSdSnh2BAfO5mnuyOo1lfiQwWa-xsaQ.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Sora';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/sora/v17/xMQ9uFFYT72X5wkB_18qmnndmSdSnh2BAfO5mnuyOo1lfiQwV6-x.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n:root{--plivo-blue: #323dfe;--plivo-blue-text: var(--plivo-blue);--plivo-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;--plivo-font-display: 'Sora', ui-sans-serif, system-ui, sans-serif;--plivo-ink: rgba(0, 0, 0, 0.55)}.dark{--plivo-ink: rgba(255, 255, 255, 0.5);--plivo-blue-text: #6b7cff}.prose *,.card,pre,code,table,th,td,img,input,button,blockquote,[class*=\"rounded\"]{border-radius:2px!important}[class*=\"rounded-full\"],.rounded-full,[style*=\"border-radius: 50%\"],[style*=\"border-radius:50%\"]{border-radius:9999px!important}code,pre,kbd{font-family:var(--plivo-font-mono)!important}h1,h2,h3,h4,h5,h6{font-family:var(--plivo-font-display)!important;letter-spacing:-0.02em!important}main h1,main h2,main h3,main h4{font-weight:600!important}.nav-tabs-item,a[class*=\"nav-tabs\"],.card h2,.card h3,.card [class*=\"title\"]{font-family:var(--plivo-font-display)!important}div:has(>.nav-tabs){height:2.25rem!important}.nav-tabs{gap:1.25rem!important}.nav-tabs-item{font-size:13px!important}.nav-tabs-item>div[class*=\"bg-primary\"]{background-color:var(--plivo-ink)!important}main h1::after{content:'';display:block;width:2.75rem;height:2px;margin-top:0.75rem;background:var(--plivo-blue)}.prose>p:first-of-type+h2,nav[aria-label=\"Breadcrumb\"]{font-family:var(--plivo-font-mono)!important}.card{position:relative;transition:border-color 160ms ease, box-shadow 160ms ease, transform 120ms ease!important}.card::before,.card::after{content:'';position:absolute;width:11px;height:11px;pointer-events:none;transition:border-color 160ms ease;z-index:1}.card::before{top:6px;left:6px;border-left:1px solid var(--plivo-ink);border-top:1px solid var(--plivo-ink)}.card::after{right:6px;bottom:6px;border-right:1px solid var(--plivo-ink);border-bottom:1px solid var(--plivo-ink)}.card:hover{transform:translateY(1px)}.card:hover::before,.card:hover::after{border-color:var(--plivo-blue)}.card .card-icon,.card svg[class*=\"text-primary\"]{color:var(--plivo-blue)!important}.card [data-component-part=\"card-content\"]{font-size:0.8rem!important;line-height:1.5!important;margin-top:0.55rem!important}.prose pre,pre{border:none!important}.mdx-content a[href]:not([class*=\"not-prose\"]):not([class*=\"card\"]){color:inherit!important;text-decoration-line:underline!important;text-decoration-color:currentColor!important;text-decoration-thickness:1px!important;text-underline-offset:2px!important;border-bottom:0!important}.mdx-content a[href]:not([class*=\"not-prose\"]):not([class*=\"card\"]):hover{color:inherit!important;text-decoration-color:currentColor!important;border-bottom:0!important}a.button,a[role=\"button\"],button.button,a[class*=\"bg-primary-\"]:not([class*=\"/\"]):not([class*=\"text-\"]){font-family:var(--plivo-font-mono)!important;letter-spacing:0.06em}#sidebar a[class*=\"bg-primary\"],[class*=\"sidebar\"] a[class*=\"bg-primary\"]{background-color:color-mix(in srgb, var(--plivo-ink) 8%, transparent)!important;color:var(--plivo-blue-text)!important}#sidebar ul li a,#sidebar ul li button,#sidebar a.nav-anchor{padding-top:3px!important;padding-bottom:3px!important;font-size:13px!important;line-height:20px!important}#sidebar a.nav-anchor>div:first-child{padding:2px!important;background:transparent!important;box-shadow:none!important;border:0!important}#sidebar a.nav-anchor>div:first-child,#sidebar a.nav-anchor>div:first-child svg{color:inherit!important}#sidebar a.nav-anchor>div:first-child svg,#sidebar a.nav-anchor:hover>div:first-child svg{background-color:currentColor!important}#sidebar .sidebar-group-header{margin-bottom:0.4rem!important}#sidebar div:has(>.sidebar-group-header){margin-top:1rem!important}#table-of-contents a{padding-top:2px!important;padding-bottom:2px!important;font-size:13px!important;line-height:20px!important}#table-of-contents a[aria-current=\"location\"]{color:rgba(15, 16, 20, 0.95)!important;font-weight:700!important;text-shadow:none!important}.dark #table-of-contents a[aria-current=\"location\"]{color:rgba(255, 255, 255, 0.92)!important}.card:focus-visible,#sidebar a:focus-visible,#sidebar button:focus-visible,#table-of-contents a:focus-visible,.nav-tabs-item:focus-visible,a.button:focus-visible,a[role=\"button\"]:focus-visible,.mdx-content a[href]:focus-visible{outline:2px solid var(--plivo-blue-text)!important;outline-offset:2px!important;border-radius:2px}.dcon-frame::before{content:'';position:absolute;inset:-10px;pointer-events:none;opacity:0.55;background-repeat:no-repeat;background-image:linear-gradient(var(--plivo-ink), var(--plivo-ink)),\n linear-gradient(var(--plivo-ink), var(--plivo-ink)),\n linear-gradient(var(--plivo-ink), var(--plivo-ink)),\n linear-gradient(var(--plivo-ink), var(--plivo-ink)),\n linear-gradient(var(--plivo-ink), var(--plivo-ink)),\n linear-gradient(var(--plivo-ink), var(--plivo-ink)),\n linear-gradient(var(--plivo-ink), var(--plivo-ink)),\n linear-gradient(var(--plivo-ink), var(--plivo-ink));background-size:12px 1px, 1px 12px, 12px 1px, 1px 12px,\n 12px 1px, 1px 12px, 12px 1px, 1px 12px;background-position:left top, left top, right top, right top,\n left bottom, left bottom, right bottom, right bottom}.dcon{--dcon-ph: 64%;position:relative;overflow:hidden;border:1px solid rgba(0, 0, 0, 0.14);border-radius:2px;background:#fff;box-shadow:0 1px 0 rgba(0, 0, 0, 0.02), 0 30px 60px -30px rgba(0, 0, 0, 0.28);font-family:var(--plivo-font-mono)}.dark .dcon{border-color:rgba(255, 255, 255, 0.16);background:#0d0f16;box-shadow:0 1px 0 rgba(0, 0, 0, 0.2), 0 30px 60px -30px rgba(0, 0, 0, 0.6)}.dcon__bar{display:flex;align-items:center;gap:8px;height:30px;padding:0 10px;border-bottom:1px solid rgba(0, 0, 0, 0.1);font-size:10px;letter-spacing:0.08em;color:rgba(0, 0, 0, 0.55)}.dark .dcon__bar{border-color:rgba(255, 255, 255, 0.12);color:rgba(255, 255, 255, 0.6)}.dcon__bar-name{flex:1}.dcon__bar-tag{color:var(--plivo-blue-text)}.dcon__led{position:relative;flex:none;width:6px;height:6px;border-radius:1px;background:var(--plivo-blue);box-shadow:0 0 6px rgba(50, 61, 254, 0.5)}.dcon__led::after{content:'';position:absolute;inset:-1px;border:1px solid var(--plivo-blue);border-radius:1px;animation:dcon-ping 2.4s cubic-bezier(0, 0, 0.2, 1) infinite}.dcon__scope{position:relative;height:120px;overflow:hidden;border-bottom:1px solid rgba(0, 0, 0, 0.1)}.dark .dcon__scope{border-color:rgba(255, 255, 255, 0.12)}.dcon__scope::before{content:'';position:absolute;left:0;right:0;top:57px;height:1px;background:rgba(0, 0, 0, 0.1)}.dark .dcon__scope::before{background:rgba(255, 255, 255, 0.1)}.dcon__scope::after{content:'';position:absolute;left:0;right:0;bottom:0;height:14px;border-top:1px solid rgba(0, 0, 0, 0.08);background-image:repeating-linear-gradient(to right, rgba(0, 0, 0, 0.35) 0 1px, transparent 1px 28px),\n repeating-linear-gradient(to right, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 7px);background-size:100% 6px, 100% 3px;background-repeat:no-repeat;background-position:0 0, 0 0}.dark .dcon__scope::after{border-color:rgba(255, 255, 255, 0.08);background-image:repeating-linear-gradient(to right, rgba(255, 255, 255, 0.35) 0 1px, transparent 1px 28px),\n repeating-linear-gradient(to right, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 7px)}.dcon__trace{position:absolute;left:0;top:8px;bottom:14px;width:calc(100% + 240px);background-image:url(\"data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20240%2056'%3E%3Cg%20fill='%23111114'%20fill-opacity='0.32'%3E%3Crect%20x='0'%20y='26'%20width='2'%20height='4'/%3E%3Crect%20x='3'%20y='22'%20width='2'%20height='12'/%3E%3Crect%20x='6'%20y='18'%20width='2'%20height='20'/%3E%3Crect%20x='9'%20y='22'%20width='2'%20height='12'/%3E%3Crect%20x='12'%20y='25'%20width='2'%20height='6'/%3E%3Crect%20x='15'%20y='12'%20width='2'%20height='32'/%3E%3Crect%20x='18'%20y='4'%20width='2'%20height='48'/%3E%3Crect%20x='21'%20y='3'%20width='2'%20height='50'/%3E%3Crect%20x='24'%20y='11'%20width='2'%20height='34'/%3E%3Crect%20x='27'%20y='23'%20width='2'%20height='10'/%3E%3Crect%20x='30'%20y='22'%20width='2'%20height='12'/%3E%3Crect%20x='33'%20y='18'%20width='2'%20height='20'/%3E%3Crect%20x='36'%20y='20'%20width='2'%20height='16'/%3E%3Crect%20x='39'%20y='26'%20width='2'%20height='4'/%3E%3Crect%20x='42'%20y='26'%20width='2'%20height='4'/%3E%3Crect%20x='45'%20y='26'%20width='2'%20height='4'/%3E%3Crect%20x='48'%20y='21'%20width='2'%20height='14'/%3E%3Crect%20x='51'%20y='11'%20width='2'%20height='34'/%3E%3Crect%20x='54'%20y='5'%20width='2'%20height='46'/%3E%3Crect%20x='57'%20y='6'%20width='2'%20height='44'/%3E%3Crect%20x='60'%20y='16'%20width='2'%20height='24'/%3E%3Crect%20x='63'%20y='26'%20width='2'%20height='4'/%3E%3Crect%20x='66'%20y='14'%20width='2'%20height='28'/%3E%3Crect%20x='69'%20y='10'%20width='2'%20height='36'/%3E%3Crect%20x='72'%20y='13'%20width='2'%20height='30'/%3E%3Crect%20x='75'%20y='20'%20width='2'%20height='16'/%3E%3Crect%20x='78'%20y='26'%20width='2'%20height='4'/%3E%3Crect%20x='81'%20y='26'%20width='2'%20height='4'/%3E%3Crect%20x='84'%20y='22'%20width='2'%20height='12'/%3E%3Crect%20x='87'%20y='15'%20width='2'%20height='26'/%3E%3Crect%20x='90'%20y='11'%20width='2'%20height='34'/%3E%3Crect%20x='93'%20y='14'%20width='2'%20height='28'/%3E%3Crect%20x='96'%20y='24'%20width='2'%20height='8'/%3E%3Crect%20x='99'%20y='18'%20width='2'%20height='20'/%3E%3Crect%20x='102'%20y='7'%20width='2'%20height='42'/%3E%3Crect%20x='105'%20y='4'%20width='2'%20height='48'/%3E%3Crect%20x='108'%20y='9'%20width='2'%20height='38'/%3E%3Crect%20x='111'%20y='19'%20width='2'%20height='18'/%3E%3Crect%20x='114'%20y='26'%20width='2'%20height='4'/%3E%3Crect%20x='117'%20y='25'%20width='2'%20height='6'/%3E%3Crect%20x='120'%20y='26'%20width='2'%20height='4'/%3E%3Crect%20x='123'%20y='22'%20width='2'%20height='12'/%3E%3Crect%20x='126'%20y='18'%20width='2'%20height='20'/%3E%3Crect%20x='129'%20y='22'%20width='2'%20height='12'/%3E%3Crect%20x='132'%20y='25'%20width='2'%20height='6'/%3E%3Crect%20x='135'%20y='12'%20width='2'%20height='32'/%3E%3Crect%20x='138'%20y='4'%20width='2'%20height='48'/%3E%3Crect%20x='141'%20y='3'%20width='2'%20height='50'/%3E%3Crect%20x='144'%20y='11'%20width='2'%20height='34'/%3E%3Crect%20x='147'%20y='23'%20width='2'%20height='10'/%3E%3Crect%20x='150'%20y='22'%20width='2'%20height='12'/%3E%3Crect%20x='153'%20y='18'%20width='2'%20height='20'/%3E%3Crect%20x='156'%20y='20'%20width='2'%20height='16'/%3E%3Crect%20x='159'%20y='26'%20width='2'%20height='4'/%3E%3Crect%20x='162'%20y='26'%20width='2'%20height='4'/%3E%3Crect%20x='165'%20y='26'%20width='2'%20height='4'/%3E%3Crect%20x='168'%20y='21'%20width='2'%20height='14'/%3E%3Crect%20x='171'%20y='11'%20width='2'%20height='34'/%3E%3Crect%20x='174'%20y='5'%20width='2'%20height='46'/%3E%3Crect%20x='177'%20y='6'%20width='2'%20height='44'/%3E%3Crect%20x='180'%20y='16'%20width='2'%20height='24'/%3E%3Crect%20x='183'%20y='26'%20width='2'%20height='4'/%3E%3Crect%20x='186'%20y='14'%20width='2'%20height='28'/%3E%3Crect%20x='189'%20y='10'%20width='2'%20height='36'/%3E%3Crect%20x='192'%20y='13'%20width='2'%20height='30'/%3E%3Crect%20x='195'%20y='20'%20width='2'%20height='16'/%3E%3Crect%20x='198'%20y='26'%20width='2'%20height='4'/%3E%3Crect%20x='201'%20y='26'%20width='2'%20height='4'/%3E%3Crect%20x='204'%20y='22'%20width='2'%20height='12'/%3E%3Crect%20x='207'%20y='15'%20width='2'%20height='26'/%3E%3Crect%20x='210'%20y='11'%20width='2'%20height='34'/%3E%3Crect%20x='213'%20y='14'%20width='2'%20height='28'/%3E%3Crect%20x='216'%20y='24'%20width='2'%20height='8'/%3E%3Crect%20x='219'%20y='18'%20width='2'%20height='20'/%3E%3Crect%20x='222'%20y='7'%20width='2'%20height='42'/%3E%3Crect%20x='225'%20y='4'%20width='2'%20height='48'/%3E%3Crect%20x='228'%20y='9'%20width='2'%20height='38'/%3E%3Crect%20x='231'%20y='19'%20width='2'%20height='18'/%3E%3Crect%20x='234'%20y='26'%20width='2'%20height='4'/%3E%3Crect%20x='237'%20y='25'%20width='2'%20height='6'/%3E%3C/g%3E%3C/svg%3E\");background-repeat:repeat-x;background-position:0 50%;background-size:240px 56px;animation:dcon-scroll 16s linear infinite}.dark .dcon__trace{background-image:url(\"data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20240%2056'%3E%3Cg%20fill='%23ffffff'%20fill-opacity='0.35'%3E%3Crect%20x='0'%20y='26'%20width='2'%20height='4'/%3E%3Crect%20x='3'%20y='22'%20width='2'%20height='12'/%3E%3Crect%20x='6'%20y='18'%20width='2'%20height='20'/%3E%3Crect%20x='9'%20y='22'%20width='2'%20height='12'/%3E%3Crect%20x='12'%20y='25'%20width='2'%20height='6'/%3E%3Crect%20x='15'%20y='12'%20width='2'%20height='32'/%3E%3Crect%20x='18'%20y='4'%20width='2'%20height='48'/%3E%3Crect%20x='21'%20y='3'%20width='2'%20height='50'/%3E%3Crect%20x='24'%20y='11'%20width='2'%20height='34'/%3E%3Crect%20x='27'%20y='23'%20width='2'%20height='10'/%3E%3Crect%20x='30'%20y='22'%20width='2'%20height='12'/%3E%3Crect%20x='33'%20y='18'%20width='2'%20height='20'/%3E%3Crect%20x='36'%20y='20'%20width='2'%20height='16'/%3E%3Crect%20x='39'%20y='26'%20width='2'%20height='4'/%3E%3Crect%20x='42'%20y='26'%20width='2'%20height='4'/%3E%3Crect%20x='45'%20y='26'%20width='2'%20height='4'/%3E%3Crect%20x='48'%20y='21'%20width='2'%20height='14'/%3E%3Crect%20x='51'%20y='11'%20width='2'%20height='34'/%3E%3Crect%20x='54'%20y='5'%20width='2'%20height='46'/%3E%3Crect%20x='57'%20y='6'%20width='2'%20height='44'/%3E%3Crect%20x='60'%20y='16'%20width='2'%20height='24'/%3E%3Crect%20x='63'%20y='26'%20width='2'%20height='4'/%3E%3Crect%20x='66'%20y='14'%20width='2'%20height='28'/%3E%3Crect%20x='69'%20y='10'%20width='2'%20height='36'/%3E%3Crect%20x='72'%20y='13'%20width='2'%20height='30'/%3E%3Crect%20x='75'%20y='20'%20width='2'%20height='16'/%3E%3Crect%20x='78'%20y='26'%20width='2'%20height='4'/%3E%3Crect%20x='81'%20y='26'%20width='2'%20height='4'/%3E%3Crect%20x='84'%20y='22'%20width='2'%20height='12'/%3E%3Crect%20x='87'%20y='15'%20width='2'%20height='26'/%3E%3Crect%20x='90'%20y='11'%20width='2'%20height='34'/%3E%3Crect%20x='93'%20y='14'%20width='2'%20height='28'/%3E%3Crect%20x='96'%20y='24'%20width='2'%20height='8'/%3E%3Crect%20x='99'%20y='18'%20width='2'%20height='20'/%3E%3Crect%20x='102'%20y='7'%20width='2'%20height='42'/%3E%3Crect%20x='105'%20y='4'%20width='2'%20height='48'/%3E%3Crect%20x='108'%20y='9'%20width='2'%20height='38'/%3E%3Crect%20x='111'%20y='19'%20width='2'%20height='18'/%3E%3Crect%20x='114'%20y='26'%20width='2'%20height='4'/%3E%3Crect%20x='117'%20y='25'%20width='2'%20height='6'/%3E%3Crect%20x='120'%20y='26'%20width='2'%20height='4'/%3E%3Crect%20x='123'%20y='22'%20width='2'%20height='12'/%3E%3Crect%20x='126'%20y='18'%20width='2'%20height='20'/%3E%3Crect%20x='129'%20y='22'%20width='2'%20height='12'/%3E%3Crect%20x='132'%20y='25'%20width='2'%20height='6'/%3E%3Crect%20x='135'%20y='12'%20width='2'%20height='32'/%3E%3Crect%20x='138'%20y='4'%20width='2'%20height='48'/%3E%3Crect%20x='141'%20y='3'%20width='2'%20height='50'/%3E%3Crect%20x='144'%20y='11'%20width='2'%20height='34'/%3E%3Crect%20x='147'%20y='23'%20width='2'%20height='10'/%3E%3Crect%20x='150'%20y='22'%20width='2'%20height='12'/%3E%3Crect%20x='153'%20y='18'%20width='2'%20height='20'/%3E%3Crect%20x='156'%20y='20'%20width='2'%20height='16'/%3E%3Crect%20x='159'%20y='26'%20width='2'%20height='4'/%3E%3Crect%20x='162'%20y='26'%20width='2'%20height='4'/%3E%3Crect%20x='165'%20y='26'%20width='2'%20height='4'/%3E%3Crect%20x='168'%20y='21'%20width='2'%20height='14'/%3E%3Crect%20x='171'%20y='11'%20width='2'%20height='34'/%3E%3Crect%20x='174'%20y='5'%20width='2'%20height='46'/%3E%3Crect%20x='177'%20y='6'%20width='2'%20height='44'/%3E%3Crect%20x='180'%20y='16'%20width='2'%20height='24'/%3E%3Crect%20x='183'%20y='26'%20width='2'%20height='4'/%3E%3Crect%20x='186'%20y='14'%20width='2'%20height='28'/%3E%3Crect%20x='189'%20y='10'%20width='2'%20height='36'/%3E%3Crect%20x='192'%20y='13'%20width='2'%20height='30'/%3E%3Crect%20x='195'%20y='20'%20width='2'%20height='16'/%3E%3Crect%20x='198'%20y='26'%20width='2'%20height='4'/%3E%3Crect%20x='201'%20y='26'%20width='2'%20height='4'/%3E%3Crect%20x='204'%20y='22'%20width='2'%20height='12'/%3E%3Crect%20x='207'%20y='15'%20width='2'%20height='26'/%3E%3Crect%20x='210'%20y='11'%20width='2'%20height='34'/%3E%3Crect%20x='213'%20y='14'%20width='2'%20height='28'/%3E%3Crect%20x='216'%20y='24'%20width='2'%20height='8'/%3E%3Crect%20x='219'%20y='18'%20width='2'%20height='20'/%3E%3Crect%20x='222'%20y='7'%20width='2'%20height='42'/%3E%3Crect%20x='225'%20y='4'%20width='2'%20height='48'/%3E%3Crect%20x='228'%20y='9'%20width='2'%20height='38'/%3E%3Crect%20x='231'%20y='19'%20width='2'%20height='18'/%3E%3Crect%20x='234'%20y='26'%20width='2'%20height='4'/%3E%3Crect%20x='237'%20y='25'%20width='2'%20height='6'/%3E%3C/g%3E%3C/svg%3E\")}.dcon__litmask{position:absolute;left:0;top:8px;bottom:14px;width:var(--dcon-ph);overflow:hidden}.dcon__litmask .dcon__trace{top:0;bottom:0}.dcon__trace.dcon__trace--lit{background-image:url(\"data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20240%2056'%3E%3Cg%20fill='%23323dfe'%20fill-opacity='0.95'%3E%3Crect%20x='0'%20y='26'%20width='2'%20height='4'/%3E%3Crect%20x='3'%20y='22'%20width='2'%20height='12'/%3E%3Crect%20x='6'%20y='18'%20width='2'%20height='20'/%3E%3Crect%20x='9'%20y='22'%20width='2'%20height='12'/%3E%3Crect%20x='12'%20y='25'%20width='2'%20height='6'/%3E%3Crect%20x='15'%20y='12'%20width='2'%20height='32'/%3E%3Crect%20x='18'%20y='4'%20width='2'%20height='48'/%3E%3Crect%20x='21'%20y='3'%20width='2'%20height='50'/%3E%3Crect%20x='24'%20y='11'%20width='2'%20height='34'/%3E%3Crect%20x='27'%20y='23'%20width='2'%20height='10'/%3E%3Crect%20x='30'%20y='22'%20width='2'%20height='12'/%3E%3Crect%20x='33'%20y='18'%20width='2'%20height='20'/%3E%3Crect%20x='36'%20y='20'%20width='2'%20height='16'/%3E%3Crect%20x='39'%20y='26'%20width='2'%20height='4'/%3E%3Crect%20x='42'%20y='26'%20width='2'%20height='4'/%3E%3Crect%20x='45'%20y='26'%20width='2'%20height='4'/%3E%3Crect%20x='48'%20y='21'%20width='2'%20height='14'/%3E%3Crect%20x='51'%20y='11'%20width='2'%20height='34'/%3E%3Crect%20x='54'%20y='5'%20width='2'%20height='46'/%3E%3Crect%20x='57'%20y='6'%20width='2'%20height='44'/%3E%3Crect%20x='60'%20y='16'%20width='2'%20height='24'/%3E%3Crect%20x='63'%20y='26'%20width='2'%20height='4'/%3E%3Crect%20x='66'%20y='14'%20width='2'%20height='28'/%3E%3Crect%20x='69'%20y='10'%20width='2'%20height='36'/%3E%3Crect%20x='72'%20y='13'%20width='2'%20height='30'/%3E%3Crect%20x='75'%20y='20'%20width='2'%20height='16'/%3E%3Crect%20x='78'%20y='26'%20width='2'%20height='4'/%3E%3Crect%20x='81'%20y='26'%20width='2'%20height='4'/%3E%3Crect%20x='84'%20y='22'%20width='2'%20height='12'/%3E%3Crect%20x='87'%20y='15'%20width='2'%20height='26'/%3E%3Crect%20x='90'%20y='11'%20width='2'%20height='34'/%3E%3Crect%20x='93'%20y='14'%20width='2'%20height='28'/%3E%3Crect%20x='96'%20y='24'%20width='2'%20height='8'/%3E%3Crect%20x='99'%20y='18'%20width='2'%20height='20'/%3E%3Crect%20x='102'%20y='7'%20width='2'%20height='42'/%3E%3Crect%20x='105'%20y='4'%20width='2'%20height='48'/%3E%3Crect%20x='108'%20y='9'%20width='2'%20height='38'/%3E%3Crect%20x='111'%20y='19'%20width='2'%20height='18'/%3E%3Crect%20x='114'%20y='26'%20width='2'%20height='4'/%3E%3Crect%20x='117'%20y='25'%20width='2'%20height='6'/%3E%3Crect%20x='120'%20y='26'%20width='2'%20height='4'/%3E%3Crect%20x='123'%20y='22'%20width='2'%20height='12'/%3E%3Crect%20x='126'%20y='18'%20width='2'%20height='20'/%3E%3Crect%20x='129'%20y='22'%20width='2'%20height='12'/%3E%3Crect%20x='132'%20y='25'%20width='2'%20height='6'/%3E%3Crect%20x='135'%20y='12'%20width='2'%20height='32'/%3E%3Crect%20x='138'%20y='4'%20width='2'%20height='48'/%3E%3Crect%20x='141'%20y='3'%20width='2'%20height='50'/%3E%3Crect%20x='144'%20y='11'%20width='2'%20height='34'/%3E%3Crect%20x='147'%20y='23'%20width='2'%20height='10'/%3E%3Crect%20x='150'%20y='22'%20width='2'%20height='12'/%3E%3Crect%20x='153'%20y='18'%20width='2'%20height='20'/%3E%3Crect%20x='156'%20y='20'%20width='2'%20height='16'/%3E%3Crect%20x='159'%20y='26'%20width='2'%20height='4'/%3E%3Crect%20x='162'%20y='26'%20width='2'%20height='4'/%3E%3Crect%20x='165'%20y='26'%20width='2'%20height='4'/%3E%3Crect%20x='168'%20y='21'%20width='2'%20height='14'/%3E%3Crect%20x='171'%20y='11'%20width='2'%20height='34'/%3E%3Crect%20x='174'%20y='5'%20width='2'%20height='46'/%3E%3Crect%20x='177'%20y='6'%20width='2'%20height='44'/%3E%3Crect%20x='180'%20y='16'%20width='2'%20height='24'/%3E%3Crect%20x='183'%20y='26'%20width='2'%20height='4'/%3E%3Crect%20x='186'%20y='14'%20width='2'%20height='28'/%3E%3Crect%20x='189'%20y='10'%20width='2'%20height='36'/%3E%3Crect%20x='192'%20y='13'%20width='2'%20height='30'/%3E%3Crect%20x='195'%20y='20'%20width='2'%20height='16'/%3E%3Crect%20x='198'%20y='26'%20width='2'%20height='4'/%3E%3Crect%20x='201'%20y='26'%20width='2'%20height='4'/%3E%3Crect%20x='204'%20y='22'%20width='2'%20height='12'/%3E%3Crect%20x='207'%20y='15'%20width='2'%20height='26'/%3E%3Crect%20x='210'%20y='11'%20width='2'%20height='34'/%3E%3Crect%20x='213'%20y='14'%20width='2'%20height='28'/%3E%3Crect%20x='216'%20y='24'%20width='2'%20height='8'/%3E%3Crect%20x='219'%20y='18'%20width='2'%20height='20'/%3E%3Crect%20x='222'%20y='7'%20width='2'%20height='42'/%3E%3Crect%20x='225'%20y='4'%20width='2'%20height='48'/%3E%3Crect%20x='228'%20y='9'%20width='2'%20height='38'/%3E%3Crect%20x='231'%20y='19'%20width='2'%20height='18'/%3E%3Crect%20x='234'%20y='26'%20width='2'%20height='4'/%3E%3Crect%20x='237'%20y='25'%20width='2'%20height='6'/%3E%3C/g%3E%3C/svg%3E\")}.dcon__playhead{position:absolute;left:var(--dcon-ph);top:4px;bottom:14px;width:1px;background:var(--plivo-blue)}.dcon__playhead::before{content:'';position:absolute;top:-2px;left:-2px;width:5px;height:5px;border-radius:1px;background:inherit}.dcon__foot{display:flex;justify-content:space-between;align-items:center;height:24px;padding:0 10px;border-top:1px solid rgba(0, 0, 0, 0.1);font-size:10px;letter-spacing:0.08em;color:rgba(0, 0, 0, 0.55);font-variant-numeric:tabular-nums}.dark .dcon__foot{border-color:rgba(255, 255, 255, 0.12);color:rgba(255, 255, 255, 0.6)}.dcon__foot-v{color:rgba(0, 0, 0, 0.6)}.dark .dcon__foot-v{color:rgba(255, 255, 255, 0.65)}@keyframes dcon-scroll{to{transform:translateX(-240px)}}@keyframes dcon-ping{0%{opacity:0.8;transform:scale(1)}75%,100%{opacity:0;transform:scale(2.2)}}@media (prefers-reduced-motion: reduce){.dcon__trace{animation:none}.dcon__led::after{display:none}}#content-container>span[class*=\"h-[64rem]\"]{display:none!important}*{scrollbar-width:thin;scrollbar-color:rgba(120, 124, 140, 0.35) transparent}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:rgba(120, 124, 140, 0.32);border-radius:9999px}::-webkit-scrollbar-thumb:hover{background:rgba(120, 124, 140, 0.55)}::-webkit-scrollbar-corner{background:transparent}.dark *{scrollbar-color:rgba(180, 186, 204, 0.24) transparent}.dark ::-webkit-scrollbar-thumb{background:rgba(180, 186, 204, 0.22)}.dark ::-webkit-scrollbar-thumb:hover{background:rgba(180, 186, 204, 0.4)}#integrately-widget{width:40rem!important;margin:2rem auto!important;max-width:100%!important}:root{--sipflow-surface: #f8f8fa;--sipflow-node: #ffffff;--sipflow-border: #e3e4e8;--sipflow-border-strong: #c8cace;--sipflow-text: #09090b;--sipflow-muted: #67676f;--sipflow-accent-text: var(--plivo-blue-text)}.dark{--sipflow-surface: #111317;--sipflow-node: #0a0c0f;--sipflow-border: #272b38;--sipflow-border-strong: #40444f;--sipflow-text: #f4f4f5;--sipflow-muted: #a0a0a7}.sipflow{margin:1.75rem 0;border:1px solid var(--sipflow-border);background:var(--sipflow-surface);overflow:hidden;container-type:inline-size}.sipflow__head{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:0.5rem 0.75rem;border-bottom:1px solid var(--sipflow-border);font-family:var(--plivo-font-mono);font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:0.12em;color:var(--sipflow-muted)}.sipflow__head-right{display:inline-flex;align-items:center;gap:0.4rem}.sipflow__led{width:5px;height:5px;flex:none;background:var(--plivo-blue);border-radius:1px!important}.sipflow__body{list-style:none!important;margin:0!important;padding:1.25rem 0.75rem!important;display:flex;flex-direction:column}.sipflow .sipflow__body>li{display:contents;margin:0!important;padding:0!important;list-style:none!important}.sipflow__body>li::marker{content:''}.sipflow__node{flex:none;width:100%;max-width:26rem;margin:0 auto;display:flex;align-items:center;justify-content:center;gap:0.75rem;min-width:0;padding:0.85rem 1rem;background:var(--sipflow-node);border:1px solid var(--sipflow-border-strong)}.sipflow__node-body{display:flex;flex-direction:column;align-items:center;text-align:center;gap:0.2rem;min-width:0}.sipflow__title{font-family:var(--plivo-font-mono);font-size:13px;font-weight:500;text-transform:uppercase;letter-spacing:0.08em;color:var(--sipflow-text)}.sipflow__sub{font-size:12px;line-height:1.5;color:var(--sipflow-muted)}.sipflow__chips{display:flex;flex-wrap:wrap;justify-content:center;gap:0.3rem;margin-top:0.4rem}.sipflow__chip{padding:0.15rem 0.4rem;font-family:var(--plivo-font-mono);font-size:10px;letter-spacing:0.06em;color:var(--sipflow-muted);border:1px solid var(--sipflow-border)}.sipflow__link{flex:none;position:relative;display:flex;flex-direction:column;align-items:center;padding:0.4rem 0}.sipflow__rail{flex:none;width:1px;height:2.25rem;background:var(--sipflow-border-strong)}.sipflow__arrow{flex:none;width:6px;height:6px;margin:-5px 0 0 0;border-right:1px solid var(--sipflow-border-strong);border-bottom:1px solid var(--sipflow-border-strong);border-radius:0!important;transform:rotate(45deg)}.sipflow__arrow--back{margin:0 0 -5px 0;transform:rotate(225deg)}.sipflow__edge-label{position:absolute;top:50%;left:50%;margin-left:0.6rem;transform:translateY(-50%);white-space:nowrap;font-family:var(--plivo-font-mono);font-size:10px;font-weight:500;text-transform:uppercase;letter-spacing:0.1em;color:var(--sipflow-accent-text)}.sipflow__link--bi .sipflow__rail{height:3rem}.sipflow__link--bi .sipflow__edge-label{transform:translateY(-150%)}.sipflow__edge-label--return{color:var(--sipflow-muted)}.sipflow__link--bi .sipflow__edge-label--return{transform:translateY(50%)}@container (min-width: 38rem){.sipflow:not(.sipflow--vertical) .sipflow__body{flex-direction:row;align-items:stretch;padding:1.5rem 1rem!important}.sipflow:not(.sipflow--vertical) .sipflow__node{flex:1 1 0;width:auto;max-width:none;margin:0}.sipflow:not(.sipflow--vertical) .sipflow__link{flex:0 0 5.5rem;flex-direction:row;align-items:center;padding:0 0.35rem}.sipflow:not(.sipflow--vertical) .sipflow__rail,.sipflow:not(.sipflow--vertical) .sipflow__link--bi .sipflow__rail{flex:1;width:auto;height:1px}.sipflow:not(.sipflow--vertical) .sipflow__arrow{margin:0 0 0 -5px;transform:rotate(-45deg)}.sipflow:not(.sipflow--vertical) .sipflow__arrow--back{margin:0 -5px 0 0;transform:rotate(135deg)}.sipflow:not(.sipflow--vertical) .sipflow__edge-label,.sipflow:not(.sipflow--vertical) .sipflow__link--bi .sipflow__edge-label{top:auto;bottom:calc(50% + 0.5rem);left:50%;margin-left:0;transform:translateX(-50%)}.sipflow:not(.sipflow--vertical) .sipflow__edge-label--return,.sipflow:not(.sipflow--vertical) .sipflow__link--bi .sipflow__edge-label--return{top:calc(50% + 0.5rem);bottom:auto;transform:translateX(-50%)}}.notice-box,.alert{margin:1.25rem 0;padding:0.75rem 1rem;border:1px solid color-mix(in srgb, var(--plivo-ink) 28%, transparent);border-left:2px solid var(--plivo-blue);background:color-mix(in srgb, var(--plivo-ink) 4%, transparent);font-size:0.875rem;line-height:1.6}.notice-box strong:first-child,.alert strong:first-child{color:var(--plivo-blue-text)}#sidebar a.nav-anchor{margin-bottom:1px!important}.mdx-content hr{margin-top:1.75rem!important;margin-bottom:1.75rem!important}.mdx-content h2{margin-top:2rem!important;margin-bottom:0.75rem!important}.mdx-content h3{margin-top:1.75rem!important;margin-bottom:0.625rem!important}.mdx-content .code-block{margin-top:1rem!important;margin-bottom:1.25rem!important}.mdx-content li{margin-top:0.25rem!important;margin-bottom:0.25rem!important}.mdx-content ol,.mdx-content ul{margin-bottom:1rem!important}"}],"page":{"pagePath":"messaging/use-cases/send-an-sms/send-an-sms","slug":"/messaging/use-cases/send-an-sms/send-an-sms","pageMetadata":{"title":"Send SMS Text Messages","sidebarTitle":"Send SMS","description":"Send outbound SMS text messages to any phone number using Plivo","href":"/messaging/use-cases/send-an-sms/send-an-sms"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Send outbound SMS text messages to any phone number using Plivo\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Frame,Heading,Note,OptimizedImage,Tab,Tabs}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);return _jsxs(Tabs,{children:[_jsxs(Tab,{title:`Node`,id:`node`,\"data-child-tab-ids\":`[\"using-api\"]`,\"data-child-heading-ids\":`[\"overview\",\"how-it-works\",\"prerequisites\",\"create-the-send-sms-application\",\"test\"]`,children:[_jsx(Heading,{level:`2`,id:`overview`,children:`Overview`}),_jsx(_components.p,{children:`This guide shows how to send an SMS text message to any phone number. Businesses send text messages to notify customers about recent information, send alerts, and provide delivery status updates, among other use cases.`}),_jsx(_components.p,{children:`You can start sending SMS messages either by using our PHLO visual workflow builder or our APIs. Follow the instructions in one of the tabs below.`}),_jsx(Tabs,{children:_jsxs(Tab,{title:`Using API`,id:`using-api`,\"data-child-heading-ids\":`[\"how-it-works\",\"prerequisites\",\"create-the-send-sms-application\",\"test\"]`,children:[_jsx(_components.p,{children:`Here’s how to use Plivo APIs to send outbound SMS text messages.`}),_jsx(Heading,{level:`2`,id:`how-it-works`,children:`How it works`}),_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/plivo/sqGJ0ONkT5kTuesy/images/send-sms-api.jpg?fit=max\u0026auto=format\u0026n=sqGJ0ONkT5kTuesy\u0026q=85\u0026s=6695185c1771e4583e7c0a45112c8cbf`,alt:`Send SMS`,\"data-og-width\":`1446`,width:`1446`,\"data-og-height\":`774`,height:`774`,\"data-path\":`images/send-sms-api.jpg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/plivo/sqGJ0ONkT5kTuesy/images/send-sms-api.jpg?w=280\u0026fit=max\u0026auto=format\u0026n=sqGJ0ONkT5kTuesy\u0026q=85\u0026s=f44d0504d5f86167acd28670b4409de7 280w, https://mintcdn.com/plivo/sqGJ0ONkT5kTuesy/images/send-sms-api.jpg?w=560\u0026fit=max\u0026auto=format\u0026n=sqGJ0ONkT5kTuesy\u0026q=85\u0026s=2eb26fa58f5757ffa726b9862c6af528 560w, https://mintcdn.com/plivo/sqGJ0ONkT5kTuesy/images/send-sms-api.jpg?w=840\u0026fit=max\u0026auto=format\u0026n=sqGJ0ONkT5kTuesy\u0026q=85\u0026s=a3142152f0f760ee183ff7ab2f081f49 840w, https://mintcdn.com/plivo/sqGJ0ONkT5kTuesy/images/send-sms-api.jpg?w=1100\u0026fit=max\u0026auto=format\u0026n=sqGJ0ONkT5kTuesy\u0026q=85\u0026s=dd9800fc4fcaaf08d994b082038f49e9 1100w, https://mintcdn.com/plivo/sqGJ0ONkT5kTuesy/images/send-sms-api.jpg?w=1650\u0026fit=max\u0026auto=format\u0026n=sqGJ0ONkT5kTuesy\u0026q=85\u0026s=b9033f5ae74df3d4355edabc217f9671 1650w, https://mintcdn.com/plivo/sqGJ0ONkT5kTuesy/images/send-sms-api.jpg?w=2500\u0026fit=max\u0026auto=format\u0026n=sqGJ0ONkT5kTuesy\u0026q=85\u0026s=f0ef8d3d5b9c13b9f7fc7cc02ab4a666 2500w`})}),_jsx(Heading,{level:`2`,id:`prerequisites`,children:`Prerequisites`}),_jsxs(_components.p,{children:[`To get started, you need a Plivo account — `,_jsx(_components.a,{href:`https://cx.plivo.com/signup`,children:`sign up`}),` with your work email address if you don’t have one already. If this is your first time using Plivo APIs, follow our instructions to set up a Node.js development environment.`]}),_jsx(Heading,{level:`2`,id:`create-the-send-sms-application`,children:`Create the send SMS application`}),_jsxs(_components.p,{children:[`Create a file called `,_jsx(_components.code,{children:`send_sms.js`}),` and paste into it this code.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`14`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`14`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`var`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` plivo`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` require`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'plivo'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` main`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'use strict'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` var`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` plivo`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cauth_id>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cauth_token>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`messages`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`create`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` src:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"\u003csender_id>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` dst:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"\u003cdestination_number>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` text:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Hello, from Node.js!\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ).`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`then`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`})();`})}),`\n`]})})}),_jsxs(_components.p,{children:[`Replace the auth placeholders with your authentication credentials from the `,_jsx(_components.a,{href:`https://cx.plivo.com/home`,children:`Plivo console`}),`. Replace the phone number placeholders with actual phone numbers in `,_jsx(_components.a,{href:`https://en.wikipedia.org/wiki/E.164`,children:`E.164 format`}),` (for example, +12025551234). In countries other than the US and Canada you can use a `,_jsx(_components.a,{href:`/messaging/concepts/sender-id-usage/`,children:`sender ID`}),` for the message source. You must have a Plivo phone number to send messages to the US or Canada; you can buy a Plivo number from Phone Numbers > `,_jsx(_components.a,{href:`https://cx.plivo.com/phone-numbers`,children:`Buy Numbers`}),` on the Plivo console or via the `,_jsx(_components.a,{href:`/numbers/phone-numbers#buy-a-phone-number`,children:`Numbers API`}),`.`]}),_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(`strong`,{children:`Note:`}),`\nWe recommend that you store your credentials in the `,_jsx(_components.code,{children:`auth_id`}),` and `,_jsx(_components.code,{children:`auth_token`}),` environment variables to avoid the possibility of accidentally committing them to source control. If you do this, you can initialize the client with no arguments and Plivo will automatically fetch the values from the environment variables. You can use `,_jsx(_components.code,{children:`process.env`}),` to store environment variables and fetch them when initializing the client.`]})}),_jsx(Heading,{level:`2`,id:`test`,children:`Test`}),_jsx(_components.p,{children:`Save the file and run it.`}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`node`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` send_sms.js`})]}),`\n`]})})})]})})]}),_jsxs(Tab,{title:`Ruby`,id:`ruby`,\"data-child-tab-ids\":`[\"using-api-2\"]`,\"data-child-heading-ids\":`[\"overview-2\",\"how-it-works-2\",\"prerequisites-2\",\"create-the-send-sms-application-2\",\"test-2\"]`,children:[_jsx(Heading,{level:`2`,id:`overview-2`,children:`Overview`}),_jsx(_components.p,{children:`This guide shows how to send an SMS text message to any phone number. Businesses send text messages to notify customers about recent information, send alerts, and provide delivery status updates, among other use cases.`}),_jsx(_components.p,{children:`You can start sending SMS messages either by using our PHLO visual workflow builder or our APIs. Follow the instructions in one of the tabs below.`}),_jsx(Tabs,{children:_jsxs(Tab,{title:`Using API`,id:`using-api-2`,\"data-child-heading-ids\":`[\"how-it-works-2\",\"prerequisites-2\",\"create-the-send-sms-application-2\",\"test-2\"]`,children:[_jsx(_components.p,{children:`Here’s how to use Plivo APIs to send outbound SMS text messages.`}),_jsx(Heading,{level:`2`,id:`how-it-works-2`,children:`How it works`}),_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/plivo/sqGJ0ONkT5kTuesy/images/send-sms-api.jpg?fit=max\u0026auto=format\u0026n=sqGJ0ONkT5kTuesy\u0026q=85\u0026s=6695185c1771e4583e7c0a45112c8cbf`,alt:`Send SMS`,\"data-og-width\":`1446`,width:`1446`,\"data-og-height\":`774`,height:`774`,\"data-path\":`images/send-sms-api.jpg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/plivo/sqGJ0ONkT5kTuesy/images/send-sms-api.jpg?w=280\u0026fit=max\u0026auto=format\u0026n=sqGJ0ONkT5kTuesy\u0026q=85\u0026s=f44d0504d5f86167acd28670b4409de7 280w, https://mintcdn.com/plivo/sqGJ0ONkT5kTuesy/images/send-sms-api.jpg?w=560\u0026fit=max\u0026auto=format\u0026n=sqGJ0ONkT5kTuesy\u0026q=85\u0026s=2eb26fa58f5757ffa726b9862c6af528 560w, https://mintcdn.com/plivo/sqGJ0ONkT5kTuesy/images/send-sms-api.jpg?w=840\u0026fit=max\u0026auto=format\u0026n=sqGJ0ONkT5kTuesy\u0026q=85\u0026s=a3142152f0f760ee183ff7ab2f081f49 840w, https://mintcdn.com/plivo/sqGJ0ONkT5kTuesy/images/send-sms-api.jpg?w=1100\u0026fit=max\u0026auto=format\u0026n=sqGJ0ONkT5kTuesy\u0026q=85\u0026s=dd9800fc4fcaaf08d994b082038f49e9 1100w, https://mintcdn.com/plivo/sqGJ0ONkT5kTuesy/images/send-sms-api.jpg?w=1650\u0026fit=max\u0026auto=format\u0026n=sqGJ0ONkT5kTuesy\u0026q=85\u0026s=b9033f5ae74df3d4355edabc217f9671 1650w, https://mintcdn.com/plivo/sqGJ0ONkT5kTuesy/images/send-sms-api.jpg?w=2500\u0026fit=max\u0026auto=format\u0026n=sqGJ0ONkT5kTuesy\u0026q=85\u0026s=f0ef8d3d5b9c13b9f7fc7cc02ab4a666 2500w`})}),_jsx(Heading,{level:`2`,id:`prerequisites-2`,children:`Prerequisites`}),_jsxs(_components.p,{children:[`To get started, you need a Plivo account — `,_jsx(_components.a,{href:`https://cx.plivo.com/signup`,children:`sign up`}),` with your work email address if you don’t have one already. If this is your first time using Plivo APIs, follow our instructions to set up a Ruby development environment.`]}),_jsx(Heading,{level:`2`,id:`create-the-send-sms-application-2`,children:`Create the send SMS application`}),_jsxs(_components.p,{children:[`Create a file called `,_jsx(_components.code,{children:`send_sms.rb`}),` and paste into it this code.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`10`,language:`ruby`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`ruby`,children:_jsxs(_components.code,{language:`ruby`,numberOfLines:`10`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`require`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"plivo\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`include`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` Plivo`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`api`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` RestClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`new`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cauth_id>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cauth_token>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` api.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`messages`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`create`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` src:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003csender_id>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` dst:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cdestination_number>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` text:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Hello, from Ruby!\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` )`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` puts`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` response`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`Replace the auth placeholders with your authentication credentials from the `,_jsx(_components.a,{href:`https://cx.plivo.com/home`,children:`Plivo console`}),`. Replace the phone number placeholders with actual phone numbers in `,_jsx(_components.a,{href:`https://en.wikipedia.org/wiki/E.164`,children:`E.164 format`}),`] (for example, +12025551234). In countries other than the US and Canada you can use a `,_jsx(_components.a,{href:`/messaging/concepts/sender-id-usage/`,children:`sender ID`}),` for the message source. You must have a Plivo phone number to send messages to the US or Canada; you can buy a Plivo number from Phone Numbers > `,_jsx(_components.a,{href:`https://cx.plivo.com/phone-numbers`,children:`Buy Numbers`}),` on the Plivo console or via the `,_jsx(_components.a,{href:`/numbers/phone-numbers#buy-a-phone-number`,children:`Numbers API`}),`.`]}),_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(`strong`,{children:`Note:`}),`\nWe recommend that you store your credentials in the `,_jsx(_components.code,{children:`auth_id`}),` and `,_jsx(_components.code,{children:`auth_token`}),` environment variables to avoid the possibility of accidentally committing them to source control. If you do this, you can initialize the client with no arguments and Plivo will automatically fetch the values from the environment variables. You can use `,_jsx(_components.code,{children:`ENV`}),` to store environment variables and fetch them when initializing the client.`]})}),_jsx(Heading,{level:`2`,id:`test-2`,children:`Test`}),_jsx(_components.p,{children:`Save the file and run it.`}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`ruby`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` send_sms.rb`})]}),`\n`]})})})]})})]}),_jsxs(Tab,{title:`Python`,id:`python`,\"data-child-tab-ids\":`[\"using-api-3\"]`,\"data-child-heading-ids\":`[\"overview-3\",\"how-it-works-3\",\"prerequisites-3\",\"create-the-send-sms-application-3\",\"test-3\"]`,children:[_jsx(Heading,{level:`2`,id:`overview-3`,children:`Overview`}),_jsx(_components.p,{children:`This guide shows how to send an SMS text message to any phone number. Businesses send text messages to notify customers about recent information, send alerts, and provide delivery status updates, among other use cases.`}),_jsx(_components.p,{children:`You can start sending SMS messages either by using our PHLO visual workflow builder or our APIs. Follow the instructions in one of the tabs below.`}),_jsx(Tabs,{children:_jsxs(Tab,{title:`Using API`,id:`using-api-3`,\"data-child-heading-ids\":`[\"how-it-works-3\",\"prerequisites-3\",\"create-the-send-sms-application-3\",\"test-3\"]`,children:[_jsx(_components.p,{children:`Here’s how to use Plivo APIs to send outbound SMS text messages.`}),_jsx(Heading,{level:`2`,id:`how-it-works-3`,children:`How it works`}),_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/plivo/sqGJ0ONkT5kTuesy/images/send-sms-api.jpg?fit=max\u0026auto=format\u0026n=sqGJ0ONkT5kTuesy\u0026q=85\u0026s=6695185c1771e4583e7c0a45112c8cbf`,alt:`Send SMS`,\"data-og-width\":`1446`,width:`1446`,\"data-og-height\":`774`,height:`774`,\"data-path\":`images/send-sms-api.jpg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/plivo/sqGJ0ONkT5kTuesy/images/send-sms-api.jpg?w=280\u0026fit=max\u0026auto=format\u0026n=sqGJ0ONkT5kTuesy\u0026q=85\u0026s=f44d0504d5f86167acd28670b4409de7 280w, https://mintcdn.com/plivo/sqGJ0ONkT5kTuesy/images/send-sms-api.jpg?w=560\u0026fit=max\u0026auto=format\u0026n=sqGJ0ONkT5kTuesy\u0026q=85\u0026s=2eb26fa58f5757ffa726b9862c6af528 560w, https://mintcdn.com/plivo/sqGJ0ONkT5kTuesy/images/send-sms-api.jpg?w=840\u0026fit=max\u0026auto=format\u0026n=sqGJ0ONkT5kTuesy\u0026q=85\u0026s=a3142152f0f760ee183ff7ab2f081f49 840w, https://mintcdn.com/plivo/sqGJ0ONkT5kTuesy/images/send-sms-api.jpg?w=1100\u0026fit=max\u0026auto=format\u0026n=sqGJ0ONkT5kTuesy\u0026q=85\u0026s=dd9800fc4fcaaf08d994b082038f49e9 1100w, https://mintcdn.com/plivo/sqGJ0ONkT5kTuesy/images/send-sms-api.jpg?w=1650\u0026fit=max\u0026auto=format\u0026n=sqGJ0ONkT5kTuesy\u0026q=85\u0026s=b9033f5ae74df3d4355edabc217f9671 1650w, https://mintcdn.com/plivo/sqGJ0ONkT5kTuesy/images/send-sms-api.jpg?w=2500\u0026fit=max\u0026auto=format\u0026n=sqGJ0ONkT5kTuesy\u0026q=85\u0026s=f0ef8d3d5b9c13b9f7fc7cc02ab4a666 2500w`})}),_jsx(Heading,{level:`2`,id:`prerequisites-3`,children:`Prerequisites`}),_jsxs(_components.p,{children:[`To get started, you need a Plivo account — `,_jsx(_components.a,{href:`https://cx.plivo.com/signup`,children:`sign up`}),` with your work email address if you don’t have one already. If this is your first time using Plivo APIs, follow our instructions to set up a Python development environment.`]}),_jsx(Heading,{level:`2`,id:`create-the-send-sms-application-3`,children:`Create the send SMS application`}),_jsxs(_components.p,{children:[`Create a file called `,_jsx(_components.code,{children:`send_sms.py`}),` and paste into it this code.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` plivo`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`client `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` plivo.RestClient(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'\u003cauth_id>'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'\u003cauth_token>'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` client.messages.create(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` src`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'\u003csender_id>'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` dst`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'\u003cdestination_number>'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` text`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Hello, from Python!'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(response)`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`Replace the auth placeholders with your authentication credentials from the `,_jsx(_components.a,{href:`https://cx.plivo.com/home`,children:`Plivo console`}),`. Replace the phone number placeholders with actual phone numbers in `,_jsx(_components.a,{href:`https://en.wikipedia.org/wiki/E.164`,children:`E.164 format`}),` (for example, +12025551234). In countries other than the US and Canada you can use a `,_jsx(_components.a,{href:`/messaging/concepts/sender-id-usage/`,children:`sender ID`}),` for the message source. You must have a Plivo phone number to send messages to the US or Canada; you can buy a Plivo number from Phone Numbers > `,_jsx(_components.a,{href:`https://cx.plivo.com/phone-numbers`,children:`Buy Numbers`}),` on the Plivo console or via the `,_jsx(_components.a,{href:`/numbers/phone-numbers#buy-a-phone-number`,children:`Numbers API`}),`.`]}),_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(`strong`,{children:`Note:`}),`\nWe recommend that you store your credentials in the `,_jsx(_components.code,{children:`auth_id`}),` and `,_jsx(_components.code,{children:`auth_token`}),` environment variables to avoid the possibility of accidentally committing them to source control. If you do this, you can initialize the client with no arguments and Plivo will automatically fetch the values from the environment variables. You can use `,_jsx(_components.code,{children:`os module(os.environ)`}),` to store environment variables and fetch them when initializing the client.`]})}),_jsx(Heading,{level:`2`,id:`test-3`,children:`Test`}),_jsx(_components.p,{children:`Save the file and run it.`}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`$`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` python`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` send_sms.py`})]}),`\n`]})})})]})})]}),_jsxs(Tab,{title:`PHP`,id:`php`,\"data-child-tab-ids\":`[\"using-api-4\"]`,\"data-child-heading-ids\":`[\"overview-4\",\"how-it-works-4\",\"prerequisites-4\",\"create-the-send-sms-application-4\",\"test-4\"]`,children:[_jsx(Heading,{level:`2`,id:`overview-4`,children:`Overview`}),_jsx(_components.p,{children:`This guide shows how to send an SMS text message to any phone number. Businesses send text messages to notify customers about recent information, send alerts, and provide delivery status updates, among other use cases.`}),_jsx(_components.p,{children:`You can start sending SMS messages either by using our PHLO visual workflow builder or our APIs. Follow the instructions in one of the tabs below.`}),_jsx(Tabs,{children:_jsxs(Tab,{title:`Using API`,id:`using-api-4`,\"data-child-heading-ids\":`[\"how-it-works-4\",\"prerequisites-4\",\"create-the-send-sms-application-4\",\"test-4\"]`,children:[_jsx(_components.p,{children:`Here’s how to use Plivo APIs to send outbound SMS text messages.`}),_jsx(Heading,{level:`2`,id:`how-it-works-4`,children:`How it works`}),_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/plivo/sqGJ0ONkT5kTuesy/images/send-sms-api.jpg?fit=max\u0026auto=format\u0026n=sqGJ0ONkT5kTuesy\u0026q=85\u0026s=6695185c1771e4583e7c0a45112c8cbf`,alt:`Send SMS`,\"data-og-width\":`1446`,width:`1446`,\"data-og-height\":`774`,height:`774`,\"data-path\":`images/send-sms-api.jpg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/plivo/sqGJ0ONkT5kTuesy/images/send-sms-api.jpg?w=280\u0026fit=max\u0026auto=format\u0026n=sqGJ0ONkT5kTuesy\u0026q=85\u0026s=f44d0504d5f86167acd28670b4409de7 280w, https://mintcdn.com/plivo/sqGJ0ONkT5kTuesy/images/send-sms-api.jpg?w=560\u0026fit=max\u0026auto=format\u0026n=sqGJ0ONkT5kTuesy\u0026q=85\u0026s=2eb26fa58f5757ffa726b9862c6af528 560w, https://mintcdn.com/plivo/sqGJ0ONkT5kTuesy/images/send-sms-api.jpg?w=840\u0026fit=max\u0026auto=format\u0026n=sqGJ0ONkT5kTuesy\u0026q=85\u0026s=a3142152f0f760ee183ff7ab2f081f49 840w, https://mintcdn.com/plivo/sqGJ0ONkT5kTuesy/images/send-sms-api.jpg?w=1100\u0026fit=max\u0026auto=format\u0026n=sqGJ0ONkT5kTuesy\u0026q=85\u0026s=dd9800fc4fcaaf08d994b082038f49e9 1100w, https://mintcdn.com/plivo/sqGJ0ONkT5kTuesy/images/send-sms-api.jpg?w=1650\u0026fit=max\u0026auto=format\u0026n=sqGJ0ONkT5kTuesy\u0026q=85\u0026s=b9033f5ae74df3d4355edabc217f9671 1650w, https://mintcdn.com/plivo/sqGJ0ONkT5kTuesy/images/send-sms-api.jpg?w=2500\u0026fit=max\u0026auto=format\u0026n=sqGJ0ONkT5kTuesy\u0026q=85\u0026s=f0ef8d3d5b9c13b9f7fc7cc02ab4a666 2500w`})}),_jsx(Heading,{level:`2`,id:`prerequisites-4`,children:`Prerequisites`}),_jsxs(_components.p,{children:[`To get started, you need a Plivo account — `,_jsx(_components.a,{href:`https://cx.plivo.com/signup`,children:`sign up`}),` with your work email address if you don’t have one already. If this is your first time using Plivo APIs, follow our instructions to set up a PHP development environment.`]}),_jsx(Heading,{level:`2`,id:`create-the-send-sms-application-4`,children:`Create the send SMS application`}),_jsxs(_components.p,{children:[`Create a file called `,_jsx(_components.code,{children:`SendSMS.php`}),` and paste into it this code.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`13`,language:`php`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`php`,children:_jsxs(_components.code,{language:`php`,numberOfLines:`13`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c?`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`php`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`require`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'vendor/autoload.php'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`use`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` Plivo\\\\`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`RestClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$client`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` RestClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cauth_id>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cauth_token>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` $client`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`messages`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`create`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [ `})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"src\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"\u003csender_id>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"dst\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"\u003cdestination_number>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"text\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Hello, from PHP!\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print_r`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?>`})}),`\n`]})})}),_jsxs(_components.p,{children:[`Replace the auth placeholders with your authentication credentials from the `,_jsx(_components.a,{href:`https://cx.plivo.com/home`,children:`Plivo console`}),`. Replace the phone number placeholders with actual phone numbers in `,_jsx(_components.a,{href:`https://en.wikipedia.org/wiki/E.164`,children:`E.164 format`}),` (for example, +12025551234). In countries other than the US and Canada you can use a `,_jsx(_components.a,{href:`/messaging/concepts/sender-id-usage/`,children:`sender ID`}),` for the message source. You must have a Plivo phone number to send messages to the US or Canada; you can buy a Plivo number from Phone Numbers > `,_jsx(_components.a,{href:`https://cx.plivo.com/phone-numbers`,children:`Buy Numbers`}),` on the Plivo console or via the `,_jsx(_components.a,{href:`/numbers/phone-numbers#buy-a-phone-number`,children:`Numbers API`}),`.`]}),_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(`strong`,{children:`Note:`}),`\nWe recommend that you store your credentials in the `,_jsx(_components.code,{children:`auth_id`}),` and `,_jsx(_components.code,{children:`auth_token`}),` environment variables to avoid the possibility of accidentally committing them to source control. If you do this, you can initialize the client with no arguments and Plivo will automatically fetch the values from the environment variables. You can use `,_jsx(_components.code,{children:`ENV`}),` to store environment variables and fetch them when initializing the client.`]})}),_jsx(Heading,{level:`2`,id:`test-4`,children:`Test`}),_jsx(_components.p,{children:`Save the file and run it.`}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`php`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` SendSMS.php`})]}),`\n`]})})})]})})]}),_jsxs(Tab,{title:`.NET`,id:`net`,\"data-child-tab-ids\":`[\"using-api-5\"]`,\"data-child-heading-ids\":`[\"overview-5\",\"how-it-works-5\",\"prerequisites-5\",\"create-the-send-sms-application-5\",\"test-5\"]`,children:[_jsx(Heading,{level:`2`,id:`overview-5`,children:`Overview`}),_jsx(_components.p,{children:`This guide shows how to send an SMS text message to any phone number. Businesses send text messages to notify customers about recent information, send alerts, and provide delivery status updates, among other use cases.`}),_jsx(_components.p,{children:`You can start sending SMS messages either by using our PHLO visual workflow builder or our APIs. Follow the instructions in one of the tabs below.`}),_jsx(Tabs,{children:_jsxs(Tab,{title:`Using API`,id:`using-api-5`,\"data-child-heading-ids\":`[\"how-it-works-5\",\"prerequisites-5\",\"create-the-send-sms-application-5\",\"test-5\"]`,children:[_jsx(_components.p,{children:`Here’s how to use Plivo APIs to send outbound SMS text messages.`}),_jsx(Heading,{level:`2`,id:`how-it-works-5`,children:`How it works`}),_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/plivo/sqGJ0ONkT5kTuesy/images/send-sms-api.jpg?fit=max\u0026auto=format\u0026n=sqGJ0ONkT5kTuesy\u0026q=85\u0026s=6695185c1771e4583e7c0a45112c8cbf`,alt:`Send SMS`,\"data-og-width\":`1446`,width:`1446`,\"data-og-height\":`774`,height:`774`,\"data-path\":`images/send-sms-api.jpg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/plivo/sqGJ0ONkT5kTuesy/images/send-sms-api.jpg?w=280\u0026fit=max\u0026auto=format\u0026n=sqGJ0ONkT5kTuesy\u0026q=85\u0026s=f44d0504d5f86167acd28670b4409de7 280w, https://mintcdn.com/plivo/sqGJ0ONkT5kTuesy/images/send-sms-api.jpg?w=560\u0026fit=max\u0026auto=format\u0026n=sqGJ0ONkT5kTuesy\u0026q=85\u0026s=2eb26fa58f5757ffa726b9862c6af528 560w, https://mintcdn.com/plivo/sqGJ0ONkT5kTuesy/images/send-sms-api.jpg?w=840\u0026fit=max\u0026auto=format\u0026n=sqGJ0ONkT5kTuesy\u0026q=85\u0026s=a3142152f0f760ee183ff7ab2f081f49 840w, https://mintcdn.com/plivo/sqGJ0ONkT5kTuesy/images/send-sms-api.jpg?w=1100\u0026fit=max\u0026auto=format\u0026n=sqGJ0ONkT5kTuesy\u0026q=85\u0026s=dd9800fc4fcaaf08d994b082038f49e9 1100w, https://mintcdn.com/plivo/sqGJ0ONkT5kTuesy/images/send-sms-api.jpg?w=1650\u0026fit=max\u0026auto=format\u0026n=sqGJ0ONkT5kTuesy\u0026q=85\u0026s=b9033f5ae74df3d4355edabc217f9671 1650w, https://mintcdn.com/plivo/sqGJ0ONkT5kTuesy/images/send-sms-api.jpg?w=2500\u0026fit=max\u0026auto=format\u0026n=sqGJ0ONkT5kTuesy\u0026q=85\u0026s=f0ef8d3d5b9c13b9f7fc7cc02ab4a666 2500w`})}),_jsx(Heading,{level:`2`,id:`prerequisites-5`,children:`Prerequisites`}),_jsxs(_components.p,{children:[`To get started, you need a Plivo account — `,_jsx(_components.a,{href:`https://cx.plivo.com/signup`,children:`sign up`}),` with your work email address if you don’t have one already. If this is your first time using Plivo APIs, follow our instructions to set up a .NET development environment.`]}),_jsx(Heading,{level:`2`,id:`create-the-send-sms-application-5`,children:`Create the send SMS application`}),_jsxs(_components.p,{children:[`In Visual Studio, in the CS project, open the file `,_jsx(_components.code,{children:`Program.cs`}),` and paste into it this code.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`20`,language:`csharp`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`csharp`,children:_jsxs(_components.code,{language:`csharp`,numberOfLines:`20`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`using`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` System`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`using`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` System`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`Collections`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`Generic`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`using`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Plivo`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`namespace`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` PlivoExamples`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` internal`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` class`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Program`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` public`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` static`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` void`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Main`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[] `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`args`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` var`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` api`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` PlivoApi`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cauth_id>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cauth_token>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` var`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` api`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Message`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Create`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` src`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003csender_id>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` dst`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cdestination_number>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` text`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Hello, from .NET!\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` );`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`WriteLine`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsxs(_components.p,{children:[`Replace the auth placeholders with your authentication credentials from the `,_jsx(_components.a,{href:`https://cx.plivo.com/home`,children:`Plivo console`}),`. Replace the phone number placeholders with actual phone numbers in `,_jsx(_components.a,{href:`https://en.wikipedia.org/wiki/E.164`,children:`E.164 format`}),`(for example, +12025551234). In countries other than the US and Canada you can use a `,_jsx(_components.a,{href:`/messaging/concepts/sender-id-usage/`,children:`sender ID`}),` for the message source. You must have a Plivo phone number to send messages to the US or Canada; you can buy a Plivo number from Phone Numbers > `,_jsx(_components.a,{href:`https://cx.plivo.com/phone-numbers`,children:`Buy Numbers`}),` on the Plivo console or via the `,_jsx(_components.a,{href:`/numbers/phone-numbers#buy-a-phone-number`,children:`Numbers API`}),`.`]}),_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(`strong`,{children:`Note:`}),`\nWe recommend that you store your credentials in the `,_jsx(_components.code,{children:`auth_id`}),` and `,_jsx(_components.code,{children:`auth_token`}),` environment variables to avoid the possibility of accidentally committing them to source control. If you do this, you can initialize the client with no arguments and Plivo will automatically fetch the values from the environment variables. You can use the `,_jsx(`a`,{href:`https://docs.microsoft.com/en-us/dotnet/api/system.environment.setenvironmentvariable?view=netcore-3.1`,children:`Environment.SetEnvironmentVariable`}),` method to store environment variables and `,_jsx(`a`,{href:`https://docs.microsoft.com/en-us/dotnet/api/system.environment.getenvironmentvariable?view=netcore-3.1`,children:`Environment.GetEnvironmentVariable`}),` to fetch them when initializing the client.`]})}),_jsx(Heading,{level:`2`,id:`test-5`,children:`Test`}),_jsx(_components.p,{children:`Save the file and run it.`})]})})]}),_jsxs(Tab,{title:`Java`,id:`java`,\"data-child-tab-ids\":`[\"using-api-6\"]`,\"data-child-heading-ids\":`[\"overview-6\",\"how-it-works-6\",\"prerequisites-6\",\"create-the-send-sms-application-6\",\"test-6\"]`,children:[_jsx(Heading,{level:`2`,id:`overview-6`,children:`Overview`}),_jsx(_components.p,{children:`This guide shows how to send an SMS text message to any phone number. Businesses send text messages to notify customers about recent information, send alerts, and provide delivery status updates, among other use cases.`}),_jsx(_components.p,{children:`You can start sending SMS messages either by using our PHLO visual workflow builder or our APIs. Follow the instructions in one of the tabs below.`}),_jsx(Tabs,{children:_jsxs(Tab,{title:`Using API`,id:`using-api-6`,\"data-child-heading-ids\":`[\"how-it-works-6\",\"prerequisites-6\",\"create-the-send-sms-application-6\",\"test-6\"]`,children:[_jsx(_components.p,{children:`Here’s how to use Plivo APIs to send outbound SMS text messages.`}),_jsx(Heading,{level:`2`,id:`how-it-works-6`,children:`How it works`}),_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/plivo/sqGJ0ONkT5kTuesy/images/send-sms-api.jpg?fit=max\u0026auto=format\u0026n=sqGJ0ONkT5kTuesy\u0026q=85\u0026s=6695185c1771e4583e7c0a45112c8cbf`,alt:`Send SMS`,\"data-og-width\":`1446`,width:`1446`,\"data-og-height\":`774`,height:`774`,\"data-path\":`images/send-sms-api.jpg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/plivo/sqGJ0ONkT5kTuesy/images/send-sms-api.jpg?w=280\u0026fit=max\u0026auto=format\u0026n=sqGJ0ONkT5kTuesy\u0026q=85\u0026s=f44d0504d5f86167acd28670b4409de7 280w, https://mintcdn.com/plivo/sqGJ0ONkT5kTuesy/images/send-sms-api.jpg?w=560\u0026fit=max\u0026auto=format\u0026n=sqGJ0ONkT5kTuesy\u0026q=85\u0026s=2eb26fa58f5757ffa726b9862c6af528 560w, https://mintcdn.com/plivo/sqGJ0ONkT5kTuesy/images/send-sms-api.jpg?w=840\u0026fit=max\u0026auto=format\u0026n=sqGJ0ONkT5kTuesy\u0026q=85\u0026s=a3142152f0f760ee183ff7ab2f081f49 840w, https://mintcdn.com/plivo/sqGJ0ONkT5kTuesy/images/send-sms-api.jpg?w=1100\u0026fit=max\u0026auto=format\u0026n=sqGJ0ONkT5kTuesy\u0026q=85\u0026s=dd9800fc4fcaaf08d994b082038f49e9 1100w, https://mintcdn.com/plivo/sqGJ0ONkT5kTuesy/images/send-sms-api.jpg?w=1650\u0026fit=max\u0026auto=format\u0026n=sqGJ0ONkT5kTuesy\u0026q=85\u0026s=b9033f5ae74df3d4355edabc217f9671 1650w, https://mintcdn.com/plivo/sqGJ0ONkT5kTuesy/images/send-sms-api.jpg?w=2500\u0026fit=max\u0026auto=format\u0026n=sqGJ0ONkT5kTuesy\u0026q=85\u0026s=f0ef8d3d5b9c13b9f7fc7cc02ab4a666 2500w`})}),_jsx(Heading,{level:`2`,id:`prerequisites-6`,children:`Prerequisites`}),_jsxs(_components.p,{children:[`To get started, you need a Plivo account — `,_jsx(_components.a,{href:`https://cx.plivo.com/signup`,children:`sign up`}),` with your work email address if you don’t have one already. If this is your first time using Plivo APIs, follow our instructions to set up a Java development environment.`]}),_jsx(Heading,{level:`2`,id:`create-the-send-sms-application-6`,children:`Create the send SMS application`}),_jsxs(_components.p,{children:[`Create a Java class called `,_jsx(_components.code,{children:`SendSMS`}),` and paste into it this code.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`20`,language:`java`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`java`,children:_jsxs(_components.code,{language:`java`,numberOfLines:`20`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` java.io.IOException;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` java.net.URL;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` java.util.Collections;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` com.plivo.api.Plivo;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` com.plivo.api.exceptions.PlivoRestException;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` com.plivo.api.models.message.Message;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` com.plivo.api.models.message.MessageCreateResponse;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`class`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` SendSMS`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` public`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` static`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:` void`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` main`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:`String`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [] `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`args`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Plivo`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`init`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cauth_id>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cauth_token>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:` MessageCreateResponse`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Message`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`creator`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003csender_id>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cdestination_number>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Hello, from Java!\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`create`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` System`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`out`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`println`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(response);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsxs(_components.p,{children:[`Replace the auth placeholders with your authentication credentials from the `,_jsx(_components.a,{href:`https://cx.plivo.com/home`,children:`Plivo console`}),`. Replace the phone number placeholders with actual phone numbers in `,_jsx(_components.a,{href:`https://en.wikipedia.org/wiki/E.164`,children:`E.164 format`}),` (for example, +12025551234). In countries other than the US and Canada you can use a `,_jsx(_components.a,{href:`/messaging/concepts/sender-id-usage/`,children:`sender ID`}),` for the message source. You must have a Plivo phone number to send messages to the US or Canada; you can buy a Plivo number from Phone Numbers > `,_jsx(_components.a,{href:`https://cx.plivo.com/phone-numbers`,children:`Buy Numbers`}),` on the Plivo console or via the `,_jsx(_components.a,{href:`/numbers/phone-numbers#buy-a-phone-number`,children:`Numbers API`}),`.`]}),_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(`strong`,{children:`Note:`}),`\nWe recommend that you store your credentials in the `,_jsx(_components.code,{children:`auth_id`}),` and `,_jsx(_components.code,{children:`auth_token`}),` environment variables to avoid the possibility of accidentally committing them to source control. If you do this, you can initialize the client with no arguments and Plivo will automatically fetch the values from the environment variables. You can use `,_jsx(_components.code,{children:`\u003ca rel=\"nofollow\" href=\"https://docs.oracle.com/javase/tutorial/essential/environment/env.html\">System.getenv()\u003c/a>`}),` to store and retrieve environment variables when initializing the client.`]})}),_jsx(Heading,{level:`2`,id:`test-6`,children:`Test`})]})})]}),_jsxs(Tab,{title:`Go`,id:`go`,\"data-child-tab-ids\":`[\"using-api-7\"]`,\"data-child-heading-ids\":`[\"overview-7\",\"how-it-works-7\",\"prerequisites-7\",\"create-the-send-sms-application-7\",\"test-7\"]`,children:[_jsx(Heading,{level:`2`,id:`overview-7`,children:`Overview`}),_jsx(_components.p,{children:`This guide shows how to send an SMS text message to any phone number. Businesses send text messages to notify customers about recent information, send alerts, and provide delivery status updates, among other use cases.`}),_jsx(_components.p,{children:`You can start sending SMS messages either by using our PHLO visual workflow builder or our APIs. Follow the instructions in one of the tabs below.`}),_jsx(Tabs,{children:_jsxs(Tab,{title:`Using API`,id:`using-api-7`,\"data-child-heading-ids\":`[\"how-it-works-7\",\"prerequisites-7\",\"create-the-send-sms-application-7\",\"test-7\"]`,children:[_jsx(_components.p,{children:`Here’s how to use Plivo APIs to send outbound SMS text messages.`}),_jsx(Heading,{level:`2`,id:`how-it-works-7`,children:`How it works`}),_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/plivo/sqGJ0ONkT5kTuesy/images/send-sms-api.jpg?fit=max\u0026auto=format\u0026n=sqGJ0ONkT5kTuesy\u0026q=85\u0026s=6695185c1771e4583e7c0a45112c8cbf`,alt:`Send SMS`,\"data-og-width\":`1446`,width:`1446`,\"data-og-height\":`774`,height:`774`,\"data-path\":`images/send-sms-api.jpg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/plivo/sqGJ0ONkT5kTuesy/images/send-sms-api.jpg?w=280\u0026fit=max\u0026auto=format\u0026n=sqGJ0ONkT5kTuesy\u0026q=85\u0026s=f44d0504d5f86167acd28670b4409de7 280w, https://mintcdn.com/plivo/sqGJ0ONkT5kTuesy/images/send-sms-api.jpg?w=560\u0026fit=max\u0026auto=format\u0026n=sqGJ0ONkT5kTuesy\u0026q=85\u0026s=2eb26fa58f5757ffa726b9862c6af528 560w, https://mintcdn.com/plivo/sqGJ0ONkT5kTuesy/images/send-sms-api.jpg?w=840\u0026fit=max\u0026auto=format\u0026n=sqGJ0ONkT5kTuesy\u0026q=85\u0026s=a3142152f0f760ee183ff7ab2f081f49 840w, https://mintcdn.com/plivo/sqGJ0ONkT5kTuesy/images/send-sms-api.jpg?w=1100\u0026fit=max\u0026auto=format\u0026n=sqGJ0ONkT5kTuesy\u0026q=85\u0026s=dd9800fc4fcaaf08d994b082038f49e9 1100w, https://mintcdn.com/plivo/sqGJ0ONkT5kTuesy/images/send-sms-api.jpg?w=1650\u0026fit=max\u0026auto=format\u0026n=sqGJ0ONkT5kTuesy\u0026q=85\u0026s=b9033f5ae74df3d4355edabc217f9671 1650w, https://mintcdn.com/plivo/sqGJ0ONkT5kTuesy/images/send-sms-api.jpg?w=2500\u0026fit=max\u0026auto=format\u0026n=sqGJ0ONkT5kTuesy\u0026q=85\u0026s=f0ef8d3d5b9c13b9f7fc7cc02ab4a666 2500w`})}),_jsx(Heading,{level:`2`,id:`prerequisites-7`,children:`Prerequisites`}),_jsxs(_components.p,{children:[`To get started, you need a Plivo account — `,_jsx(_components.a,{href:`https://cx.plivo.com/signup`,children:`sign up`}),` with your work email address if you don’t have one already. If this is your first time using Plivo APIs, follow our instructions to set up a Go development environment.`]}),_jsx(Heading,{level:`2`,id:`create-the-send-sms-application-7`,children:`Create the send SMS application`}),_jsxs(_components.p,{children:[`Create a file called `,_jsx(_components.code,{children:`SendSMS.go`}),` and paste into it this code.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`24`,language:`go`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`go`,children:_jsxs(_components.code,{language:`go`,numberOfLines:`24`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`package`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` main`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#CE9178`},children:`fmt`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#CE9178`},children:`github.com/plivo/plivo-go/v7`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`func`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` main`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`\tclient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`err`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` plivo`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`NewClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cauth_id>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cauth_token>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`plivo`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`ClientOptions`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{})`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\tif`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` err`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` !=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` nil`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`\t\t\tfmt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`err`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`())`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\t\t\treturn`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\t\t}`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`\tresponse`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`err`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Messages`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Create`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`\t\tplivo`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`MessageCreateParams`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`\t\t\tSrc`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003csender_id>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`\t\t\tDst`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cdestination_number>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`\t\t\tText`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Hello, from Go!\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\t\t},`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\t)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\tif`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` err`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` !=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` nil`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`\t\t\tfmt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`err`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`())`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\t\t\treturn`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\t\t}`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`\tfmt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Printf`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Response: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#9CDCFE`},children:`%#v`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsxs(_components.p,{children:[`Replace the auth placeholders with your authentication credentials from the `,_jsx(_components.a,{href:`https://cx.plivo.com/home`,children:`Plivo console`}),`. Replace the phone number placeholders with actual phone numbers in `,_jsx(_components.a,{href:`https://en.wikipedia.org/wiki/E.164`,children:`E.164 format`}),` (for example, +12025551234). In countries other than the US and Canada you can use a `,_jsx(_components.a,{href:`/messaging/concepts/sender-id-usage/`,children:`sender ID`}),` for the message source. You must have a Plivo phone number to send messages to the US or Canada; you can buy a Plivo number from Phone Numbers > `,_jsx(_components.a,{href:`https://cx.plivo.com/phone-numbers`,children:`Buy Numbers`}),` on the Plivo console or via the `,_jsx(_components.a,{href:`/numbers/phone-numbers#buy-a-phone-number`,children:`Numbers API`}),`.`]}),_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(`strong`,{children:`Note:`}),`\nWe recommend that you store your credentials in the `,_jsx(_components.code,{children:`auth_id`}),` and `,_jsx(_components.code,{children:`auth_token`}),` environment variables to avoid the possibility of accidentally committing them to source control. If you do this, you can initialize the client with no arguments and Plivo will automatically fetch the values from the environment variables. You can use `,_jsx(_components.code,{children:`os.Setenv`}),` and `,_jsx(_components.code,{children:`os.Getenv`}),` functions to store environment variables and fetch them when initializing the client.`]})}),_jsx(Heading,{level:`2`,id:`test-7`,children:`Test`}),_jsx(_components.p,{children:`Save the file and run it.`}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`go`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` run`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` SendSMS.go`})]}),`\n`]})})})]})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Send SMS Text Messages","sidebarTitle":"Send SMS","description":"Send outbound SMS text messages to any phone number using Plivo","href":"/messaging/use-cases/send-an-sms/send-an-sms"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Overview","slug":"overview","depth":2,"children":[],"tabId":"node"},{"title":"How it works","slug":"how-it-works","depth":2,"children":[],"tabId":"using-api"},{"title":"Prerequisites","slug":"prerequisites","depth":2,"children":[],"tabId":"using-api"},{"title":"Create the send SMS application","slug":"create-the-send-sms-application","depth":2,"children":[],"tabId":"using-api"},{"title":"Test","slug":"test","depth":2,"children":[],"tabId":"using-api"},{"title":"Overview","slug":"overview-2","depth":2,"children":[],"tabId":"ruby"},{"title":"How it works","slug":"how-it-works-2","depth":2,"children":[],"tabId":"using-api-2"},{"title":"Prerequisites","slug":"prerequisites-2","depth":2,"children":[],"tabId":"using-api-2"},{"title":"Create the send SMS application","slug":"create-the-send-sms-application-2","depth":2,"children":[],"tabId":"using-api-2"},{"title":"Test","slug":"test-2","depth":2,"children":[],"tabId":"using-api-2"},{"title":"Overview","slug":"overview-3","depth":2,"children":[],"tabId":"python"},{"title":"How it works","slug":"how-it-works-3","depth":2,"children":[],"tabId":"using-api-3"},{"title":"Prerequisites","slug":"prerequisites-3","depth":2,"children":[],"tabId":"using-api-3"},{"title":"Create the send SMS application","slug":"create-the-send-sms-application-3","depth":2,"children":[],"tabId":"using-api-3"},{"title":"Test","slug":"test-3","depth":2,"children":[],"tabId":"using-api-3"},{"title":"Overview","slug":"overview-4","depth":2,"children":[],"tabId":"php"},{"title":"How it works","slug":"how-it-works-4","depth":2,"children":[],"tabId":"using-api-4"},{"title":"Prerequisites","slug":"prerequisites-4","depth":2,"children":[],"tabId":"using-api-4"},{"title":"Create the send SMS application","slug":"create-the-send-sms-application-4","depth":2,"children":[],"tabId":"using-api-4"},{"title":"Test","slug":"test-4","depth":2,"children":[],"tabId":"using-api-4"},{"title":"Overview","slug":"overview-5","depth":2,"children":[],"tabId":"net"},{"title":"How it works","slug":"how-it-works-5","depth":2,"children":[],"tabId":"using-api-5"},{"title":"Prerequisites","slug":"prerequisites-5","depth":2,"children":[],"tabId":"using-api-5"},{"title":"Create the send SMS application","slug":"create-the-send-sms-application-5","depth":2,"children":[],"tabId":"using-api-5"},{"title":"Test","slug":"test-5","depth":2,"children":[],"tabId":"using-api-5"},{"title":"Overview","slug":"overview-6","depth":2,"children":[],"tabId":"java"},{"title":"How it works","slug":"how-it-works-6","depth":2,"children":[],"tabId":"using-api-6"},{"title":"Prerequisites","slug":"prerequisites-6","depth":2,"children":[],"tabId":"using-api-6"},{"title":"Create the send SMS application","slug":"create-the-send-sms-application-6","depth":2,"children":[],"tabId":"using-api-6"},{"title":"Test","slug":"test-6","depth":2,"children":[],"tabId":"using-api-6"},{"title":"Overview","slug":"overview-7","depth":2,"children":[],"tabId":"go"},{"title":"How it works","slug":"how-it-works-7","depth":2,"children":[],"tabId":"using-api-7"},{"title":"Prerequisites","slug":"prerequisites-7","depth":2,"children":[],"tabId":"using-api-7"},{"title":"Create the send SMS application","slug":"create-the-send-sms-application-7","depth":2,"children":[],"tabId":"using-api-7"},{"title":"Test","slug":"test-7","depth":2,"children":[],"tabId":"using-api-7"}],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/plivo/65a712f3b49f9843/hubspot.js"],"subdomain":"plivo","siteName":"Plivo","title":"Send SMS Text Messages - Plivo","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-07-17T22:52:13.274Z","originalFileLocation":"messaging/use-cases/send-an-sms/send-an-sms.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Send outbound SMS text messages to any phone number using Plivo\">\u003cmeta data-mint-head name=\"application-name\" content=\"Plivo\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/plivo/jE_tEXMmXghIL4xh/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/plivo/jE_tEXMmXghIL4xh/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/plivo/jE_tEXMmXghIL4xh/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/plivo/jE_tEXMmXghIL4xh/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/plivo/jE_tEXMmXghIL4xh/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/plivo/jE_tEXMmXghIL4xh/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/plivo/jE_tEXMmXghIL4xh/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/plivo/jE_tEXMmXghIL4xh/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/plivo/jE_tEXMmXghIL4xh/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Send SMS Text Messages - Plivo\">\u003cmeta data-mint-head property=\"og:description\" content=\"Send outbound SMS text messages to any phone number using Plivo\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Plivo\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://plivo.com/docs/messaging/use-cases/send-an-sms/send-an-sms\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://plivo.mintlify.app/_mintlify/api/og/v2?division=SMS%2FMMS\u0026amp;title=Send+SMS+Text+Messages\u0026amp;description=Send+outbound+SMS+text+messages+to+any+phone+number+using+Plivo\u0026amp;theme=0904848171be9743c76b0ea8\u0026amp;signature=ec0c7baf50267e6140c3c06e1cd6d28b25489153f4e6660efbafbde1c3ef8536\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Send SMS Text Messages - Plivo\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Send outbound SMS text messages to any phone number using Plivo\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://plivo.mintlify.app/_mintlify/api/og/v2?division=SMS%2FMMS\u0026amp;title=Send+SMS+Text+Messages\u0026amp;description=Send+outbound+SMS+text+messages+to+any+phone+number+using+Plivo\u0026amp;theme=0904848171be9743c76b0ea8\u0026amp;signature=ec0c7baf50267e6140c3c06e1cd6d28b25489153f4e6660efbafbde1c3ef8536\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/plivo/jE_tEXMmXghIL4xh/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Plivo\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#323dfe\">\u003clink data-mint-head rel=\"canonical\" href=\"https://plivo.com/docs/messaging/use-cases/send-an-sms/send-an-sms\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/messaging/use-cases/send-an-sms/send-an-sms.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://plivo.com/#organization\",\"name\":\"Plivo\",\"url\":\"https://plivo.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/plivo/nlRVupwxTfmW2fPy/logo/newlogodark.svg?fit=max\u0026auto=format\u0026n=nlRVupwxTfmW2fPy\u0026q=85\u0026s=60816eb957f6b8962ef15eddde76449a\"}},{\"@type\":\"WebSite\",\"@id\":\"https://plivo.com/docs#website\",\"name\":\"Plivo\",\"url\":\"https://plivo.com/docs\",\"publisher\":{\"@id\":\"https://plivo.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://plivo.com/docs/messaging/use-cases/send-an-sms/send-an-sms#webpage\",\"url\":\"https://plivo.com/docs/messaging/use-cases/send-an-sms/send-an-sms\",\"name\":\"Send SMS Text Messages\",\"description\":\"Send outbound SMS text messages to any phone number using Plivo\",\"dateModified\":\"2026-07-17T22:52:13.274Z\",\"isPartOf\":{\"@id\":\"https://plivo.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://plivo.com/docs/messaging/use-cases/send-an-sms/send-an-sms#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://plivo.com/docs/messaging/use-cases/send-an-sms/send-an-sms#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Plivo\",\"item\":\"https://plivo.com/docs\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Send SMS Text Messages\",\"item\":\"https://plivo.com/docs/messaging/use-cases/send-an-sms/send-an-sms\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://plivo.com/docs/messaging/use-cases/send-an-sms/send-an-sms#article\",\"headline\":\"Send SMS Text Messages\",\"name\":\"Send SMS Text Messages\",\"description\":\"Send outbound SMS text messages to any phone number using Plivo\",\"url\":\"https://plivo.com/docs/messaging/use-cases/send-an-sms/send-an-sms\",\"mainEntityOfPage\":{\"@id\":\"https://plivo.com/docs/messaging/use-cases/send-an-sms/send-an-sms#webpage\"},\"dateModified\":\"2026-07-17T22:52:13.274Z\",\"publisher\":{\"@id\":\"https://plivo.com/#organization\"},\"isPartOf\":{\"@id\":\"https://plivo.com/docs#website\"}}]}\u003c/script>","siteName":"Plivo","nav":{"global":null,"tabs":[{"tab":"Home","pages":[{"title":"Home","href":"/home"}]},{"tab":"SIP Trunking","pages":[{"title":"SIP Trunking","href":"/voice-agents/sip-trunking/overview"}]},{"tab":"Audio Streaming","pages":[{"title":"Audio Streaming","href":"/voice-agents/audio-streaming/overview"}]},{"tab":"Programmable APIs","anchors":[{"anchor":"Voice API","icon":"phone","pages":[{"title":"Voice API","href":"/voice/quickstart/quickstart"}]},{"anchor":"Messaging API","icon":"message-square-code","groups":[{"group":"Getting Started","pages":[{"title":"SMS Availability \u0026 Coverage","href":"/messaging/sms-availability"},{"title":"Messaging API Quickstart","href":"/messaging/quickstart/quickstart"}]},{"group":"Concepts","pages":[{"group":"Core Concepts","pages":[{"title":"Overview","href":"/messaging/concepts/overview"},{"title":"Supported Features","sidebarTitle":"Features","href":"/messaging/concepts/features"},{"title":"Terminology","href":"/messaging/concepts/terminology"},{"title":"Encoding and Concatenation","href":"/messaging/concepts/encoding-and-concatenation"},{"title":"Powerpack","href":"/messaging/concepts/powerpack"}]},{"group":"Callbacks \u0026 Webhooks","pages":[{"title":"SMS Callbacks","href":"/messaging/concepts/callbacks"},{"title":"10DLC Callbacks","sidebarTitle":"10DLC Callbacks (beta)","href":"/messaging/concepts/callbacks/10dlc-callbacks"},{"title":"Validating Requests and Responses","sidebarTitle":"Signature Validation","href":"/messaging/concepts/signature-validation"}]},{"group":"Compliance (US)","pages":[{"title":"US and Canada Messaging","sidebarTitle":"US/CA Messaging","href":"/messaging/concepts/us-ca-messaging"},{"title":"Best Practices for A2P Messaging in the US","sidebarTitle":"US Messaging Best Practices","href":"/messaging/concepts/us-messaging-best-practices"},{"title":"DND Service","href":"/messaging/concepts/dnd-service"},{"title":"Toll-Free Registration Guidelines","sidebarTitle":"Toll-Free Registration","href":"/messaging/concepts/toll-free-registration-guidelines"},{"title":"10DLC Registration Guidelines","sidebarTitle":"10DLC Registration Guidelines","href":"/messaging/a2p-10dlc/registration-guidelines"}]},{"group":"Compliance (India)","pages":[{"title":"Sender ID","sidebarTitle":"Sender IDs and Usage","href":"/messaging/concepts/sender-id-usage"}]},{"group":"Security","pages":[{"title":"Messaging Geo Permissions","sidebarTitle":"Geo Permissions","href":"/messaging/concepts/geo-permissions"},{"title":"Firewall \u0026 Network Configuration","sidebarTitle":"Firewall \u0026 Network","href":"/messaging/concepts/firewall-network-configuration"},{"title":"Destination Number Validation","href":"/messaging/concepts/destination-number-validation"}]},{"group":"Features","pages":[{"title":"Reporting","href":"/messaging/concepts/reporting"},{"title":"Conversion Feedback","href":"/messaging/concepts/conversion-feedback"},{"title":"SMS Data Redaction","href":"/messaging/concepts/sms-data-redaction"}]}]},{"group":"API Reference","pages":[{"title":"API Overview","href":"/messaging/api/overview"},{"title":"Messages","href":"/messaging/api/messages"},{"group":"10DLC","pages":[{"title":"10DLC","href":"/messaging/api/10dlc/overview"},{"title":"Profile","href":"/messaging/api/10dlc/profile"},{"title":"Brand","href":"/messaging/api/10dlc/brand"},{"title":"Campaign","href":"/messaging/api/10dlc/campaign"},{"title":"Number Linking","href":"/messaging/api/10dlc/number-linking"}]},{"title":"Toll-free Verification","href":"/messaging/api/toll-free-verification"},{"title":"Media","href":"/messaging/api/media"},{"title":"Powerpack","href":"/messaging/api/powerpack"},{"title":"Number Pool","href":"/messaging/api/numberpool"}]},{"group":"XML Reference","pages":[{"title":"Overview","description":"Control SMS messages synchronously using Plivo XML","href":"/messaging/xml/overview"}]},{"group":"Tutorials","pages":[{"group":"SMS/MMS","pages":[{"title":"Send SMS Text Messages","sidebarTitle":"Send SMS","href":"/messaging/use-cases/send-an-sms/send-an-sms"},{"title":"Send MMS Messages","sidebarTitle":"Send MMS","description":"Send outbound MMS messages with images, audio, or video via Plivo","href":"/messaging/use-cases/send-an-mms/send-an-mms"},{"title":"Receive SMS Messages","sidebarTitle":"Receive SMS","href":"/messaging/use-cases/receive-sms/receive-sms"},{"title":"Receive MMS Messages","sidebarTitle":"Receive MMS","href":"/messaging/use-cases/receive-mms/receive-mms"},{"title":"Reply to Incoming SMS","href":"/messaging/use-cases/reply-to-incoming-sms/reply-to-incoming-sms"},{"title":"Forward Incoming SMS Messages","sidebarTitle":"Forward Incoming SMS","href":"/messaging/use-cases/forward-incoming-sms/forward-incoming-sms"},{"title":"Delivery Reports","href":"/messaging/use-cases/delivery-reports/delivery-reports"},{"title":"Two-Factor Authentication","href":"/messaging/use-cases/2-factor-authentication/2-factor-authentication"},{"title":"Send SMS Alerts","href":"/messaging/use-cases/sms-alert/sms-alert"},{"title":"Send SMS Notifications","href":"/messaging/use-cases/sms-notification/sms-notification"},{"title":"Send Bulk SMS","href":"/messaging/use-cases/sms-marketing/sms-marketing"},{"title":"Conduct SMS Survey","href":"/messaging/use-cases/sms-survey/sms-survey"},{"title":"Write an SMS Autoresponder","sidebarTitle":"SMS Autoresponder","href":"/messaging/use-cases/sms-autoresponder/sms-autoresponder"},{"title":"Write an MMS Autoresponder","sidebarTitle":"MMS Autoresponder","href":"/messaging/use-cases/mms-autoresponder/mms-autoresponder"},{"title":"Forward SMS Messages to Email","sidebarTitle":"Forward SMS to Email","href":"/messaging/use-cases/forward-sms-to-email/forward-sms-to-email"}]}]},{"group":"Migration Guides","pages":[{"title":"Technical Guide: Migrating from Twilio to Plivo","sidebarTitle":"Twilio to Plivo","href":"/messaging/migrate/twilio"},{"title":"Technical Guide: Migrating from Zipwhip to Plivo","sidebarTitle":"Zipwhip to Plivo","href":"/messaging/migrate/zipwhip"},{"title":"From Legacy to 4.x","href":"/messaging/migrate/sdk/legacy-to-active-sdk/from-legacy-to-latest"}]},{"group":"Troubleshooting","pages":[{"title":"Error Codes","sidebarTitle":"Error codes","href":"/messaging/troubleshooting/error-codes"}]}]},{"anchor":"SIP Trunking","icon":"utility-pole","pages":[{"title":"SIP Trunking","href":"/sip-trunking"}]},{"anchor":"Verify API","icon":"badge-check","pages":[{"title":"Verify API","href":"/programmable-api/verify/availability"}]},{"anchor":"Phone Numbers API","icon":"file-digit","pages":[{"title":"Phone Numbers API","href":"/numbers"}]},{"anchor":"WhatsApp API","icon":"message-circle","pages":[{"title":"WhatsApp API","href":"/messaging/concepts/whatsapp/prerequisites"}]},{"anchor":"Account API","icon":"building-2","pages":[{"title":"Account API","href":"/account/concepts/subaccounts"}]},{"anchor":"Number Masking","icon":"shield-half","pages":[{"title":"Number Masking","href":"/number-masking/concepts/overview"}]},{"anchor":"Lookup API","icon":"search","pages":[{"title":"Lookup API","href":"/lookup/overview"}]},{"anchor":"CLI","icon":"terminal","pages":[{"title":"CLI","href":"/cli/overview"}]},{"anchor":"Integrations","icon":"blocks","pages":[{"title":"Integrations","href":"/integrations/overview"}]}]},{"tab":"FAQ","pages":[{"title":"FAQ","href":"/faq/messaging/messaging-api"}]}]},"basePath":"","title":"Send SMS Text Messages - Plivo","buildId":"dpl_9yaRmq8qi7yyMZn9oEWmKEdYMvGZ","deploymentId":"dpl_9yaRmq8qi7yyMZn9oEWmKEdYMvGZ","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-DcbodgP9.js","DynamicMarkdown-BBrVIqs3.js","zoom-image-lightbox-BB8grMv9.js","lightbox-handle-r17bVUz3.js"]}