Send Test Email
curl --request POST \
--url https://api.talqing.com/v1/email/test-sends \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"body": "<string>",
"from_email": "<string>",
"integration_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"subject": "<string>",
"body_format": "text",
"from_name": "<string>",
"reply_to": "<string>",
"vars": {}
}
'import requests
url = "https://api.talqing.com/v1/email/test-sends"
payload = {
"body": "<string>",
"from_email": "<string>",
"integration_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"subject": "<string>",
"body_format": "text",
"from_name": "<string>",
"reply_to": "<string>",
"vars": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
body: JSON.stringify('<string>'),
from_email: '<string>',
integration_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
subject: '<string>',
body_format: 'text',
from_name: '<string>',
reply_to: '<string>',
vars: {}
})
};
fetch('https://api.talqing.com/v1/email/test-sends', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.talqing.com/v1/email/test-sends",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'body' => '<string>',
'from_email' => '<string>',
'integration_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'subject' => '<string>',
'body_format' => 'text',
'from_name' => '<string>',
'reply_to' => '<string>',
'vars' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.talqing.com/v1/email/test-sends"
payload := strings.NewReader("{\n \"body\": \"<string>\",\n \"from_email\": \"<string>\",\n \"integration_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"subject\": \"<string>\",\n \"body_format\": \"text\",\n \"from_name\": \"<string>\",\n \"reply_to\": \"<string>\",\n \"vars\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.talqing.com/v1/email/test-sends")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"body\": \"<string>\",\n \"from_email\": \"<string>\",\n \"integration_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"subject\": \"<string>\",\n \"body_format\": \"text\",\n \"from_name\": \"<string>\",\n \"reply_to\": \"<string>\",\n \"vars\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.talqing.com/v1/email/test-sends")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"body\": \"<string>\",\n \"from_email\": \"<string>\",\n \"integration_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"subject\": \"<string>\",\n \"body_format\": \"text\",\n \"from_name\": \"<string>\",\n \"reply_to\": \"<string>\",\n \"vars\": {}\n}"
response = http.request(request)
puts response.read_body{
"provider_message_id": "<string>",
"to": "<string>"
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>",
"code": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>",
"code": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>",
"code": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>",
"code": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>",
"code": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>",
"code": "<string>"
}
}email
Send Test Email
Fill a template from vars and email it to yourself (the signed-in user) only.
POST
/
v1
/
email
/
test-sends
Send Test Email
curl --request POST \
--url https://api.talqing.com/v1/email/test-sends \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"body": "<string>",
"from_email": "<string>",
"integration_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"subject": "<string>",
"body_format": "text",
"from_name": "<string>",
"reply_to": "<string>",
"vars": {}
}
'import requests
url = "https://api.talqing.com/v1/email/test-sends"
payload = {
"body": "<string>",
"from_email": "<string>",
"integration_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"subject": "<string>",
"body_format": "text",
"from_name": "<string>",
"reply_to": "<string>",
"vars": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
body: JSON.stringify('<string>'),
from_email: '<string>',
integration_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
subject: '<string>',
body_format: 'text',
from_name: '<string>',
reply_to: '<string>',
vars: {}
})
};
fetch('https://api.talqing.com/v1/email/test-sends', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.talqing.com/v1/email/test-sends",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'body' => '<string>',
'from_email' => '<string>',
'integration_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'subject' => '<string>',
'body_format' => 'text',
'from_name' => '<string>',
'reply_to' => '<string>',
'vars' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.talqing.com/v1/email/test-sends"
payload := strings.NewReader("{\n \"body\": \"<string>\",\n \"from_email\": \"<string>\",\n \"integration_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"subject\": \"<string>\",\n \"body_format\": \"text\",\n \"from_name\": \"<string>\",\n \"reply_to\": \"<string>\",\n \"vars\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.talqing.com/v1/email/test-sends")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"body\": \"<string>\",\n \"from_email\": \"<string>\",\n \"integration_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"subject\": \"<string>\",\n \"body_format\": \"text\",\n \"from_name\": \"<string>\",\n \"reply_to\": \"<string>\",\n \"vars\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.talqing.com/v1/email/test-sends")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"body\": \"<string>\",\n \"from_email\": \"<string>\",\n \"integration_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"subject\": \"<string>\",\n \"body_format\": \"text\",\n \"from_name\": \"<string>\",\n \"reply_to\": \"<string>\",\n \"vars\": {}\n}"
response = http.request(request)
puts response.read_body{
"provider_message_id": "<string>",
"to": "<string>"
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>",
"code": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>",
"code": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>",
"code": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>",
"code": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>",
"code": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>",
"code": "<string>"
}
}Authorizations
BearerAuthSessionCookie
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
One email to yourself, filled from vars the way a template batch fills a row.
Minimum string length:
1Required string length:
1 - 998Available options:
text, html Maximum string length:
200One row's cells.
Show child attributes
Show child attributes