curl --request POST \
--url https://api.erdo.ai/v1/sending-theme/refresh \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.erdo.ai/v1/sending-theme/refresh"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.erdo.ai/v1/sending-theme/refresh', 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.erdo.ai/v1/sending-theme/refresh",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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.erdo.ai/v1/sending-theme/refresh"
req, _ := http.NewRequest("POST", 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.post("https://api.erdo.ai/v1/sending-theme/refresh")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.erdo.ai/v1/sending-theme/refresh")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"accent": "<string>",
"card_background": "<string>",
"derived_at": "<string>",
"error_reason": "<string>",
"font_family": "<string>",
"found": true,
"logo_url": "<string>",
"page_background": "<string>",
"rationale": "<string>",
"source_slug": "<string>",
"source_title": "<string>",
"source_updated_at": "<string>",
"status": "<string>",
"text": "<string>"
}{
"code": "not_found",
"details": {},
"message": "<string>"
}RefreshSendingThemeAPI derives the theme from the Brand Style record now and
returns it — for the moment right after the record changed. Mirrors erdo_get_sending_theme with refresh: true. Org admins only.
curl --request POST \
--url https://api.erdo.ai/v1/sending-theme/refresh \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.erdo.ai/v1/sending-theme/refresh"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.erdo.ai/v1/sending-theme/refresh', 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.erdo.ai/v1/sending-theme/refresh",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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.erdo.ai/v1/sending-theme/refresh"
req, _ := http.NewRequest("POST", 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.post("https://api.erdo.ai/v1/sending-theme/refresh")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.erdo.ai/v1/sending-theme/refresh")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"accent": "<string>",
"card_background": "<string>",
"derived_at": "<string>",
"error_reason": "<string>",
"font_family": "<string>",
"found": true,
"logo_url": "<string>",
"page_background": "<string>",
"rationale": "<string>",
"source_slug": "<string>",
"source_title": "<string>",
"source_updated_at": "<string>",
"status": "<string>",
"text": "<string>"
}{
"code": "not_found",
"details": {},
"message": "<string>"
}Authorizations
An Erdo API key (erdo_api_...) or scoped token (erdo_token_...).
Response
Success response
dropped and why (a color that did not read, a logo that was not public).
clients that load web fonts; the rest fall back to the system face.
— what every organization looks like before its first branded send.
derived from; SourceUpdatedAt is that record's last change at the time (RFC 3339). A record changed since makes the theme stale, and the next send re-derives it.
use), "no_brand_style" (the organization has no Brand Style record, so mail renders in the default look), or "failed" (a record exists but yielded nothing usable — see error_reason). Empty when not found.

