Email a render to a recipient
curl --request POST \
--url https://api.craftkit.dev/v1/renders/{id}/email \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"to": "client@example.com",
"recipientName": "Jane Doe",
"message": "Please find your invoice attached."
}
'import requests
url = "https://api.craftkit.dev/v1/renders/{id}/email"
payload = {
"to": "client@example.com",
"recipientName": "Jane Doe",
"message": "Please find your invoice attached."
}
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({
to: 'client@example.com',
recipientName: 'Jane Doe',
message: 'Please find your invoice attached.'
})
};
fetch('https://api.craftkit.dev/v1/renders/{id}/email', 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.craftkit.dev/v1/renders/{id}/email",
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([
'to' => 'client@example.com',
'recipientName' => 'Jane Doe',
'message' => 'Please find your invoice attached.'
]),
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.craftkit.dev/v1/renders/{id}/email"
payload := strings.NewReader("{\n \"to\": \"client@example.com\",\n \"recipientName\": \"Jane Doe\",\n \"message\": \"Please find your invoice attached.\"\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.craftkit.dev/v1/renders/{id}/email")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"to\": \"client@example.com\",\n \"recipientName\": \"Jane Doe\",\n \"message\": \"Please find your invoice attached.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.craftkit.dev/v1/renders/{id}/email")
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 \"to\": \"client@example.com\",\n \"recipientName\": \"Jane Doe\",\n \"message\": \"Please find your invoice attached.\"\n}"
response = http.request(request)
puts response.read_body{
"id": "9a8b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d",
"shareToken": "shr_abc123",
"shareUrl": "https://api.craftkit.dev/share/shr_abc123",
"emailMessageId": "re_xxx",
"sentAt": "2026-06-21T10:05:00.000Z"
}{
"error": {
"code": "invalid_request",
"message": "Request body did not match expected shape."
}
}{
"error": {
"code": "unauthorized",
"message": "Missing Bearer token."
}
}{
"error": {
"code": "not_found",
"message": "Render not found."
}
}{
"error": {
"code": "not_ready",
"message": "Render has not succeeded yet — cannot send."
}
}{
"error": {
"code": "email_send_failed",
"message": "Email send failed"
}
}{
"error": {
"code": "email_not_configured",
"message": "Resend is not configured on this Craftkit deployment (set RESEND_API_KEY + EMAIL_FROM)."
}
}Renders
Email a render to a recipient
Create an email-channel share, render the email via Resend, and send it.
Records share_created + email_sent engagement events.
POST
/
v1
/
renders
/
{id}
/
email
Email a render to a recipient
curl --request POST \
--url https://api.craftkit.dev/v1/renders/{id}/email \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"to": "client@example.com",
"recipientName": "Jane Doe",
"message": "Please find your invoice attached."
}
'import requests
url = "https://api.craftkit.dev/v1/renders/{id}/email"
payload = {
"to": "client@example.com",
"recipientName": "Jane Doe",
"message": "Please find your invoice attached."
}
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({
to: 'client@example.com',
recipientName: 'Jane Doe',
message: 'Please find your invoice attached.'
})
};
fetch('https://api.craftkit.dev/v1/renders/{id}/email', 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.craftkit.dev/v1/renders/{id}/email",
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([
'to' => 'client@example.com',
'recipientName' => 'Jane Doe',
'message' => 'Please find your invoice attached.'
]),
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.craftkit.dev/v1/renders/{id}/email"
payload := strings.NewReader("{\n \"to\": \"client@example.com\",\n \"recipientName\": \"Jane Doe\",\n \"message\": \"Please find your invoice attached.\"\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.craftkit.dev/v1/renders/{id}/email")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"to\": \"client@example.com\",\n \"recipientName\": \"Jane Doe\",\n \"message\": \"Please find your invoice attached.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.craftkit.dev/v1/renders/{id}/email")
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 \"to\": \"client@example.com\",\n \"recipientName\": \"Jane Doe\",\n \"message\": \"Please find your invoice attached.\"\n}"
response = http.request(request)
puts response.read_body{
"id": "9a8b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d",
"shareToken": "shr_abc123",
"shareUrl": "https://api.craftkit.dev/share/shr_abc123",
"emailMessageId": "re_xxx",
"sentAt": "2026-06-21T10:05:00.000Z"
}{
"error": {
"code": "invalid_request",
"message": "Request body did not match expected shape."
}
}{
"error": {
"code": "unauthorized",
"message": "Missing Bearer token."
}
}{
"error": {
"code": "not_found",
"message": "Render not found."
}
}{
"error": {
"code": "not_ready",
"message": "Render has not succeeded yet — cannot send."
}
}{
"error": {
"code": "email_send_failed",
"message": "Email send failed"
}
}{
"error": {
"code": "email_not_configured",
"message": "Resend is not configured on this Craftkit deployment (set RESEND_API_KEY + EMAIL_FROM)."
}
}Authorizations
Project API key (ck_live_… or ck_test_…) presented as a bearer token.
For embed partner endpoints this is the partner secret key, which is the
same credential type.
Path Parameters
The render id.
Body
application/json
⌘I