sendNewEmail API. This is useful for proactively reaching out about issues.
For TypeScript, the GraphQL SDK gives you a fully typed client for these operations.
Mutation
Variables
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
Start a new outbound email to a customer, creating a thread for it.
sendNewEmail API. This is useful for proactively reaching out about issues.
mutation sendNewEmail($input: SendNewEmailInput!) {
sendNewEmail(input: $input) {
email {
id
}
error {
message
type
code
}
}
}
{
"input": {
"customerId": "c_01GTC6ZHCMAGR06FMPN9VY5J95",
"threadId": "th_01HD44FHMCDSSWE38N14FSYV6K",
"subject": "Your account has a problem",
"textContent": "The plain text version of your email goes here.",
"markdownContent": "The markdown **version** of your _email_ goes here."
}
}
Was this page helpful?
