Email Components
Get Default Email Component
Read the company’s default component for a slot, such as the default email footer.
GET
/
api
/
v1
/
email-components
/
defaults
/
{slot}
Get Default Email Component
curl --request GET \
--url https://api.sequenzy.com/api/v1/email-components/defaults/{slot} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sequenzy.com/api/v1/email-components/defaults/{slot}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sequenzy.com/api/v1/email-components/defaults/{slot}', 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.sequenzy.com/api/v1/email-components/defaults/{slot}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sequenzy.com/api/v1/email-components/defaults/{slot}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sequenzy.com/api/v1/email-components/defaults/{slot}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sequenzy.com/api/v1/email-components/defaults/{slot}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"component": {
"id": "cmp_123",
"companyId": "comp_123",
"name": "Default Footer",
"description": null,
"blocks": [
{
"id": "block_1",
"type": "footer",
"variant": "full",
"showUnsubscribe": true
}
],
"componentType": "footer",
"defaultSlot": "footer",
"version": 3,
"createdAt": "2026-01-10T10:00:00.000Z",
"updatedAt": "2026-08-01T09:30:00.000Z"
}
}
{
"success": false,
"error": "Unsupported slot: header. Supported slots: footer"
}
{
"success": false,
"error": "Invalid API key"
}
{
"success": false,
"error": "No default footer component is set for this company. Emails fall back to the generated footer."
}
Get Default Email Component
You can read the component pinned as your company default for a slot. The defaultfooter component is the footer that new sequence, campaign, and AI-generated emails are built with, so this is what you read before changing the footer everywhere.
When no default is set, the endpoint returns 404 and emails fall back to the footer Sequenzy generates from your company profile.
Request
string
required
Default slot to read. Currently only
footer.curl "https://api.sequenzy.com/api/v1/email-components/defaults/footer" \
-H "Authorization: Bearer API_KEY"
Responses
{
"success": true,
"component": {
"id": "cmp_123",
"companyId": "comp_123",
"name": "Default Footer",
"description": null,
"blocks": [
{
"id": "block_1",
"type": "footer",
"variant": "full",
"showUnsubscribe": true
}
],
"componentType": "footer",
"defaultSlot": "footer",
"version": 3,
"createdAt": "2026-01-10T10:00:00.000Z",
"updatedAt": "2026-08-01T09:30:00.000Z"
}
}
{
"success": false,
"error": "Unsupported slot: header. Supported slots: footer"
}
{
"success": false,
"error": "Invalid API key"
}
{
"success": false,
"error": "No default footer component is set for this company. Emails fall back to the generated footer."
}
Related
⌘I
Get Default Email Component
curl --request GET \
--url https://api.sequenzy.com/api/v1/email-components/defaults/{slot} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sequenzy.com/api/v1/email-components/defaults/{slot}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sequenzy.com/api/v1/email-components/defaults/{slot}', 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.sequenzy.com/api/v1/email-components/defaults/{slot}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sequenzy.com/api/v1/email-components/defaults/{slot}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sequenzy.com/api/v1/email-components/defaults/{slot}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sequenzy.com/api/v1/email-components/defaults/{slot}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"component": {
"id": "cmp_123",
"companyId": "comp_123",
"name": "Default Footer",
"description": null,
"blocks": [
{
"id": "block_1",
"type": "footer",
"variant": "full",
"showUnsubscribe": true
}
],
"componentType": "footer",
"defaultSlot": "footer",
"version": 3,
"createdAt": "2026-01-10T10:00:00.000Z",
"updatedAt": "2026-08-01T09:30:00.000Z"
}
}
{
"success": false,
"error": "Unsupported slot: header. Supported slots: footer"
}
{
"success": false,
"error": "Invalid API key"
}
{
"success": false,
"error": "No default footer component is set for this company. Emails fall back to the generated footer."
}