Query
query PreviewSmsTemplate($type: String!, $recipientType: String!, $body: String!) {
previewSmsTemplate(type: $type, recipientType: $recipientType, body: $body) {
text
charCount
availableFields {
token
name
label
kind
group
allowedIn
}
}
}Variables
{
"type": "string",
"recipientType": "string",
"body": "string"
}Response
{
"data": {
"previewSmsTemplate": {
"text": "string",
"charCount": 1,
"availableFields": [
{
"token": "string",
"name": "string",
"label": "string",
"kind": "string",
"group": "string",
"allowedIn": [
"string"
]
}
]
}
}
}Queries
previewSmsTemplate
QUERY
previewSmsTemplate(type: String!, recipientType: String!, body: String!): SmsTemplatePreview!Arguments
type
String!
required
recipientType
String!
required
body
String!
required
Returns
text
String!
charCount
Int!
availableFields
Query
query PreviewSmsTemplate($type: String!, $recipientType: String!, $body: String!) {
previewSmsTemplate(type: $type, recipientType: $recipientType, body: $body) {
text
charCount
availableFields {
token
name
label
kind
group
allowedIn
}
}
}Variables
{
"type": "string",
"recipientType": "string",
"body": "string"
}Response
{
"data": {
"previewSmsTemplate": {
"text": "string",
"charCount": 1,
"availableFields": [
{
"token": "string",
"name": "string",
"label": "string",
"kind": "string",
"group": "string",
"allowedIn": [
"string"
]
}
]
}
}
}