> For the complete documentation index, see [llms.txt](https://cardknox.gitbook.io/sola-dev-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cardknox.gitbook.io/sola-dev-docs/api-reference/messaging-api/send-sms.md). Agents can also search and read this documentation through its [MCP server](https://cardknox.gitbook.io/sola-dev-docs/~gitbook/mcp).

# Send SMS

## Send SMS

> Use this endpoint to send an SMS message using a named template. Provide the template name, recipient phone number, and any template variables so the messaging service can render and deliver the message as part of your application notification workflow.<br>

```json
{"openapi":"3.0.3","info":{"title":"Sola Payments - Send SMS APIs","version":"1.0.0"},"tags":[{"name":"Send SMS"}],"servers":[{"url":"https://us-west-2.messaging.cardknox.com","description":"Default API host"}],"paths":{"/v1/SendSms":{"post":{"summary":"Send SMS","description":"Use this endpoint to send an SMS message using a named template. Provide the template name, recipient phone number, and any template variables so the messaging service can render and deliver the message as part of your application notification workflow.\n","operationId":"API_090_SendSms","tags":["Send SMS"],"deprecated":false,"parameters":[{"in":"header","name":"Authorization","required":true,"schema":{"type":"string"},"description":"This endpoint is authenticated using your Sola API key. Include the key in the `Authorization` header.\n"}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","additionalProperties":false,"properties":{"TemplateName":{"type":"string","description":"Name of SMS template. Valid values from SmsTemplate enum.","enum":["a01_sampletestsms_33d4139a2af3","a02_merchantreceipt_42960d2c97fc","a03_sendpaymentrequest_92a24e383d9f10fb","a04_multipaymentmerchantreceipt_917f5966f58ff216"]},"To":{"type":"string","description":"Destination phone number that will receive the SMS message."},"Template":{"type":"object","description":"JSON object with template variable names and values. Structure depends on template.","additionalProperties":true,"properties":{"FirstName":{"type":"string","description":"Template variable for recipient first name.","X-required-conditional":true,"X-condition-logic":"Required when the selected SMS template uses the FirstName placeholder."},"Amount":{"type":"string","description":"Template variable for transaction amount.","X-required-conditional":true,"X-condition-logic":"Required when the selected SMS template uses the Amount placeholder."},"RefNum":{"type":"string","description":"Template variable for transaction or request reference number.","X-required-conditional":true,"X-condition-logic":"Required when the selected SMS template uses the RefNum placeholder."}}}},"required":["TemplateName","To"]}},"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"TemplateName":{"type":"string","description":"Name of SMS template. Valid values from SmsTemplate enum.","enum":["a01_sampletestsms_33d4139a2af3","a02_merchantreceipt_42960d2c97fc","a03_sendpaymentrequest_92a24e383d9f10fb","a04_multipaymentmerchantreceipt_917f5966f58ff216"]},"To":{"type":"string","description":"Destination phone number that will receive the SMS message."},"Template":{"type":"object","description":"JSON object with template variable names and values. Structure depends on template.","additionalProperties":true,"properties":{"FirstName":{"type":"string","description":"Template variable for recipient first name.","X-required-conditional":true,"X-condition-logic":"Required when the selected SMS template uses the FirstName placeholder."},"Amount":{"type":"string","description":"Template variable for transaction amount.","X-required-conditional":true,"X-condition-logic":"Required when the selected SMS template uses the Amount placeholder."},"RefNum":{"type":"string","description":"Template variable for transaction or request reference number.","X-required-conditional":true,"X-condition-logic":"Required when the selected SMS template uses the RefNum placeholder."}}}},"required":["TemplateName","To"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"Refnum":{"type":"string","description":"Reference number for the request."},"Status":{"type":"string","description":"Success or Error.","enum":["Success","Error"]},"Error":{"type":"string","description":"Error message if Status is Error."}}}}}}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cardknox.gitbook.io/sola-dev-docs/api-reference/messaging-api/send-sms.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
