Mutation
mutation CreateEmailPreviewUrl($input: CreateEmailPreviewUrlInput!) {
createEmailPreviewUrl(input: $input) {
emailPreviewUrl {
previewUrl
expiresAt {
unixTimestamp
iso8601
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"emailId": "id",
"customerId": "id"
}
}Response
{
"data": {
"createEmailPreviewUrl": {
"emailPreviewUrl": {
"previewUrl": "string",
"expiresAt": {
"unixTimestamp": "string",
"iso8601": "string"
}
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
createEmailPreviewUrl
Generates a short-lived URL that can be used to preview the rendered HTML of an email. Useful for displaying email content in external tools or dashboards.
MUTATION
createEmailPreviewUrl(input: CreateEmailPreviewUrlInput!): CreateEmailPreviewUrlOutput!Arguments
input
required
Returns
emailPreviewUrl
error
Mutation
mutation CreateEmailPreviewUrl($input: CreateEmailPreviewUrlInput!) {
createEmailPreviewUrl(input: $input) {
emailPreviewUrl {
previewUrl
expiresAt {
unixTimestamp
iso8601
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"emailId": "id",
"customerId": "id"
}
}Response
{
"data": {
"createEmailPreviewUrl": {
"emailPreviewUrl": {
"previewUrl": "string",
"expiresAt": {
"unixTimestamp": "string",
"iso8601": "string"
}
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

