Email Components
List Email Components
List reusable email components, including the components pinned as company defaults.
GET
/
api
/
v1
/
email-components
List Email Components
curl --request GET \
--url https://api.sequenzy.com/api/v1/email-components \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sequenzy.com/api/v1/email-components"
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', 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",
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"
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")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sequenzy.com/api/v1/email-components")
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,
"components": [
{
"id": "cmp_123",
"companyId": "comp_123",
"name": "Default Footer",
"description": null,
"blocks": [{ "id": "block_1", "type": "footer", "variant": "full" }],
"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"
}
List Email Components
You can list the company’s reusable email components, newest first. Components are saved block groups you can reuse across emails, plus the components pinned as a company default for a slot.Request
string
Filter by component type:
section or footer.string
Filter by default slot. Currently only
footer.string
Pass
true to return only components pinned as a company default.curl "https://api.sequenzy.com/api/v1/email-components?defaultsOnly=true" \
-H "Authorization: Bearer API_KEY"
Responses
{
"success": true,
"components": [
{
"id": "cmp_123",
"companyId": "comp_123",
"name": "Default Footer",
"description": null,
"blocks": [{ "id": "block_1", "type": "footer", "variant": "full" }],
"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"
}
Related
⌘I
List Email Components
curl --request GET \
--url https://api.sequenzy.com/api/v1/email-components \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sequenzy.com/api/v1/email-components"
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', 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",
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"
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")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sequenzy.com/api/v1/email-components")
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,
"components": [
{
"id": "cmp_123",
"companyId": "comp_123",
"name": "Default Footer",
"description": null,
"blocks": [{ "id": "block_1", "type": "footer", "variant": "full" }],
"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"
}