Browse Gallery
Read-only access to a curated catalog of starter email templates. Browse, filter, and pull a starter's HTML to use as the basis of your own custom template.
Endpoint
GET /templates/gallery
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
limit | number | 20 | Items per page (min: 1, max: 100) |
after | string | — | Cursor — return items after this id (exclusive). |
before | string | — | Cursor — return items before this id (exclusive). |
search | string | — | Search by template name |
template_types | string | — | Comma-separated list of type IDs (see List Categories). |
template_seasons | string | — | Comma-separated list of season IDs. |
template_features | string | — | Comma-separated list of feature IDs. |
template_industries | string | — | Comma-separated list of industry IDs. |
Results are returned newest first. See Pagination for cursor details.
Response
The list response excludes the (heavy) html field — fetch a single gallery item via Get Template to retrieve its HTML.
{
"object": "list",
"has_more": true,
"data": [
{
"id": "01957e3a-4b5c-7d8e-9f0a-1b2c3d4e5f6a",
"name": "Modern Welcome Email",
"has_amp": false,
"created_at": "2026-01-15T10:00:00.000Z"
}
]
}
| Field | Type | Description |
|---|---|---|
id | string | Gallery template ID — use this with Get Template. |
name | string | Template name |
has_amp | boolean | Whether the template includes AMP-for-email markup |
created_at | string | ISO 8601 timestamp |
Examples
Browse all
- cURL
- JavaScript
- Python
- C#
- PHP
curl "https://api.arsel.sa/v1/templates/gallery?limit=20" \
-H "Authorization: Bearer be_your_api_key"
const response = await fetch(
"https://api.arsel.sa/v1/templates/gallery?limit=20",
{ headers: { Authorization: "Bearer be_your_api_key" } },
);
const { data, has_more } = await response.json();
for (const t of data) {
console.log(`${t.id}: ${t.name}`);
}
import requests
response = requests.get(
"https://api.arsel.sa/v1/templates/gallery",
headers={"Authorization": "Bearer be_your_api_key"},
params={"limit": 20},
)
result = response.json()
for t in result["data"]:
print(f"{t['id']}: {t['name']}")
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", "Bearer be_your_api_key");
var response = await client.GetAsync("https://api.arsel.sa/v1/templates/gallery?limit=20");
Console.WriteLine(await response.Content.ReadAsStringAsync());
<?php
$ch = curl_init("https://api.arsel.sa/v1/templates/gallery?limit=20");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: Bearer be_your_api_key"
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
echo $response;
curl_close($ch);
Filter by type and industry
curl "https://api.arsel.sa/v1/templates/gallery?template_types=01957e3a-4b5c-7d8e-9f0a-1b2c3d4e5f6a,01957e3a-4b5c-7d8e-9f0a-1b2c3d4e5f6b&template_industries=01957e3a-4b5c-7d8e-9f0a-1b2c3d4e5f6f" \
-H "Authorization: Bearer be_your_api_key"
Use List Categories to discover the available IDs.
Pick a starter and save your own version
// 1. Browse the gallery
const list = await (
await fetch("https://api.arsel.sa/v1/templates/gallery?search=welcome", {
headers: { Authorization: "Bearer be_your_api_key" },
})
).json();
const starterId = list.data[0].id;
// 2. Fetch the starter's full HTML
const starter = await (
await fetch(`https://api.arsel.sa/v1/templates/gallery/${starterId}`, {
headers: { Authorization: "Bearer be_your_api_key" },
})
).json();
// 3. Customize the HTML, then save it as your own template
const customized = starter.html.replace(
"{{brand}}",
"Acme",
);
const saved = await (
await fetch("https://api.arsel.sa/v1/templates", {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: "Bearer be_your_api_key",
},
body: JSON.stringify({
name: "Acme Welcome",
html: customized,
}),
})
).json();
console.log(`Created ${saved.id} from gallery starter ${starterId}`);