> 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-email.md). Agents can also search and read this documentation through its [MCP server](https://cardknox.gitbook.io/sola-dev-docs/~gitbook/mcp).

# Send Email

## Send Email

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

```json
{"openapi":"3.0.3","info":{"title":"Sola Payments - Send Email APIs","version":"1.0.0"},"tags":[{"name":"Send Email"}],"servers":[{"url":"https://us-west-2.messaging.cardknox.com","description":"Default API host"}],"paths":{"/v1/SendEmail":{"post":{"summary":"Send Email","description":"Use this endpoint to send an email using a named template. Provide the template name and the required recipient and template variables so the messaging service can render and deliver the email as part of your application notification workflow.\n","operationId":"API_091_SendEmail","tags":["Send Email"],"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 email template. Valid values from EmailTemplate enum.","enum":["WelcomeToCardknox","Vp3300","PaymentSite","TapToPhoneAndroid","GiftCard","AccountUpdater","DigitalWallet","SendDefaultPaymentRequest","SendCustomPaymentRequest","UpgradePlan","MobileApp","LoginAttemptsFailed","LoginAttemptsSuccess","LoginAttemptsFailedWithKnown","LoginAttemptsSuccessWithKnown","ErrorReport","BypassDuplicateCheckNotification"]},"To":{"type":"string","description":"Destination email address for the primary recipient."},"Cc":{"type":"string","description":"Destination email address for the carbon copy recipient."},"Attachments":{"type":"array","description":"Array of attachment entries. Each has File and FileName.","items":{"type":"object","additionalProperties":false,"properties":{"File":{"type":"string","description":"Attachment file content (e.g. base64)."},"FileName":{"type":"string","description":"Display filename for attachment."}}}},"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.\n\n**Conditional:** Required when the selected email template uses the FirstName placeholder.\n","X-required-conditional":true,"X-condition-logic":"Required when the selected email template uses the FirstName placeholder."},"CompanyName":{"type":"string","description":"Template variable for company name.\n\n**Conditional:** Required when the selected email template uses the CompanyName placeholder.\n","X-required-conditional":true,"X-condition-logic":"Required when the selected email template uses the CompanyName placeholder."},"RefNum":{"type":"string","description":"Template variable for transaction or request reference number.\n\n**Conditional:** Required when the selected email template uses the RefNum placeholder.\n","X-required-conditional":true,"X-condition-logic":"Required when the selected email template uses the RefNum placeholder."}}}},"required":["TemplateName"]}},"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"TemplateName":{"type":"string","description":"Name of email template. Valid values from EmailTemplate enum.","enum":["WelcomeToCardknox","Vp3300","PaymentSite","TapToPhoneAndroid","GiftCard","AccountUpdater","DigitalWallet","SendDefaultPaymentRequest","SendCustomPaymentRequest","UpgradePlan","MobileApp","LoginAttemptsFailed","LoginAttemptsSuccess","LoginAttemptsFailedWithKnown","LoginAttemptsSuccessWithKnown","ErrorReport","BypassDuplicateCheckNotification"]},"To":{"type":"string","description":"Destination email address for the primary recipient."},"Cc":{"type":"string","description":"Destination email address for the carbon copy recipient."},"Attachments":{"type":"array","description":"Array of attachment entries. Each has File and FileName.","items":{"type":"object","additionalProperties":false,"properties":{"File":{"type":"string","description":"Attachment file content (e.g. base64)."},"FileName":{"type":"string","description":"Display filename for attachment."}}}},"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.\n\n**Conditional:** Required when the selected email template uses the FirstName placeholder.\n","X-required-conditional":true,"X-condition-logic":"Required when the selected email template uses the FirstName placeholder."},"CompanyName":{"type":"string","description":"Template variable for company name.\n\n**Conditional:** Required when the selected email template uses the CompanyName placeholder.\n","X-required-conditional":true,"X-condition-logic":"Required when the selected email template uses the CompanyName placeholder."},"RefNum":{"type":"string","description":"Template variable for transaction or request reference number.\n\n**Conditional:** Required when the selected email template uses the RefNum placeholder.\n","X-required-conditional":true,"X-condition-logic":"Required when the selected email template uses the RefNum placeholder."}}}},"required":["TemplateName"]}}}},"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-email.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.
