curl --request POST \
--url https://api.gominerva.com/idv/v1/themes \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"company_name": "<string>",
"colors": {
"primary": "<string>",
"primary_foreground": "<string>",
"background": "<string>",
"foreground": "<string>",
"accent": "<string>"
},
"revision": 123
}
'import requests
url = "https://api.gominerva.com/idv/v1/themes"
payload = {
"name": "<string>",
"company_name": "<string>",
"colors": {
"primary": "<string>",
"primary_foreground": "<string>",
"background": "<string>",
"foreground": "<string>",
"accent": "<string>"
},
"revision": 123
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
company_name: '<string>',
colors: {
primary: '<string>',
primary_foreground: '<string>',
background: '<string>',
foreground: '<string>',
accent: '<string>'
},
revision: 123
})
};
fetch('https://api.gominerva.com/idv/v1/themes', 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.gominerva.com/idv/v1/themes",
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([
'name' => '<string>',
'company_name' => '<string>',
'colors' => [
'primary' => '<string>',
'primary_foreground' => '<string>',
'background' => '<string>',
'foreground' => '<string>',
'accent' => '<string>'
],
'revision' => 123
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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.gominerva.com/idv/v1/themes"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"company_name\": \"<string>\",\n \"colors\": {\n \"primary\": \"<string>\",\n \"primary_foreground\": \"<string>\",\n \"background\": \"<string>\",\n \"foreground\": \"<string>\",\n \"accent\": \"<string>\"\n },\n \"revision\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
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.gominerva.com/idv/v1/themes")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"company_name\": \"<string>\",\n \"colors\": {\n \"primary\": \"<string>\",\n \"primary_foreground\": \"<string>\",\n \"background\": \"<string>\",\n \"foreground\": \"<string>\",\n \"accent\": \"<string>\"\n },\n \"revision\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gominerva.com/idv/v1/themes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"company_name\": \"<string>\",\n \"colors\": {\n \"primary\": \"<string>\",\n \"primary_foreground\": \"<string>\",\n \"background\": \"<string>\",\n \"foreground\": \"<string>\",\n \"accent\": \"<string>\"\n },\n \"revision\": 123\n}"
response = http.request(request)
puts response.read_body{
"data": {
"theme_id": "<string>",
"tenant_id": "<string>",
"workspace_id": "<string>",
"name": "<string>",
"status": "draft",
"is_default": true,
"logo": {
"asset_id": "<string>",
"content_type": "image/png",
"width": 2,
"height": 2
},
"logo_square": {
"asset_id": "<string>",
"content_type": "image/png",
"width": 2,
"height": 2
},
"colors": {
"primary": "<string>",
"primary_foreground": "<string>",
"background": "<string>",
"foreground": "<string>",
"accent": "<string>"
},
"font_family": "",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"revision": 2,
"company_name": "<string>"
}
}{
"error": {
"code": "idv_session_not_found",
"message": "<string>"
}
}{
"error": {
"code": "idv_session_not_found",
"message": "<string>"
}
}{
"error": {
"code": "idv_session_not_found",
"message": "<string>"
}
}Create a theme
Presentation fields are validated as a closed grammar (lowercase-normalized #rrggbb colors, font allowlist Inter/system-ui/Roboto/Open Sans/Lato/Montserrat, company_name at most 80 chars; empty string = unset). The FIRST theme created in a scope auto-becomes the default, even while draft (resolution only APPLIES active defaults). status defaults to draft; “active” creates-and-activates. Logos never ride on this body; see the binary /logo endpoints.
curl --request POST \
--url https://api.gominerva.com/idv/v1/themes \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"company_name": "<string>",
"colors": {
"primary": "<string>",
"primary_foreground": "<string>",
"background": "<string>",
"foreground": "<string>",
"accent": "<string>"
},
"revision": 123
}
'import requests
url = "https://api.gominerva.com/idv/v1/themes"
payload = {
"name": "<string>",
"company_name": "<string>",
"colors": {
"primary": "<string>",
"primary_foreground": "<string>",
"background": "<string>",
"foreground": "<string>",
"accent": "<string>"
},
"revision": 123
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
company_name: '<string>',
colors: {
primary: '<string>',
primary_foreground: '<string>',
background: '<string>',
foreground: '<string>',
accent: '<string>'
},
revision: 123
})
};
fetch('https://api.gominerva.com/idv/v1/themes', 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.gominerva.com/idv/v1/themes",
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([
'name' => '<string>',
'company_name' => '<string>',
'colors' => [
'primary' => '<string>',
'primary_foreground' => '<string>',
'background' => '<string>',
'foreground' => '<string>',
'accent' => '<string>'
],
'revision' => 123
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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.gominerva.com/idv/v1/themes"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"company_name\": \"<string>\",\n \"colors\": {\n \"primary\": \"<string>\",\n \"primary_foreground\": \"<string>\",\n \"background\": \"<string>\",\n \"foreground\": \"<string>\",\n \"accent\": \"<string>\"\n },\n \"revision\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
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.gominerva.com/idv/v1/themes")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"company_name\": \"<string>\",\n \"colors\": {\n \"primary\": \"<string>\",\n \"primary_foreground\": \"<string>\",\n \"background\": \"<string>\",\n \"foreground\": \"<string>\",\n \"accent\": \"<string>\"\n },\n \"revision\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gominerva.com/idv/v1/themes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"company_name\": \"<string>\",\n \"colors\": {\n \"primary\": \"<string>\",\n \"primary_foreground\": \"<string>\",\n \"background\": \"<string>\",\n \"foreground\": \"<string>\",\n \"accent\": \"<string>\"\n },\n \"revision\": 123\n}"
response = http.request(request)
puts response.read_body{
"data": {
"theme_id": "<string>",
"tenant_id": "<string>",
"workspace_id": "<string>",
"name": "<string>",
"status": "draft",
"is_default": true,
"logo": {
"asset_id": "<string>",
"content_type": "image/png",
"width": 2,
"height": 2
},
"logo_square": {
"asset_id": "<string>",
"content_type": "image/png",
"width": 2,
"height": 2
},
"colors": {
"primary": "<string>",
"primary_foreground": "<string>",
"background": "<string>",
"foreground": "<string>",
"accent": "<string>"
},
"font_family": "",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"revision": 2,
"company_name": "<string>"
}
}{
"error": {
"code": "idv_session_not_found",
"message": "<string>"
}
}{
"error": {
"code": "idv_session_not_found",
"message": "<string>"
}
}{
"error": {
"code": "idv_session_not_found",
"message": "<string>"
}
}Authorizations
Authorization: Api-Key <application_api_key> (legacy X-Api-Key also accepted).
Body
1 - 120Empty string = unset.
80Canonical lowercase #rrggbb values only (validated + normalized at write time). Each color is null/omitted when unset.
Show child attributes
Show child attributes
Empty string = unset; otherwise the closed allowlist.
, Inter, system-ui, Roboto, Open Sans, Lato, Montserrat Create only: draft (default) or active; archived is rejected. PUT rejects it.
draft, active Replace only: the CAS expectation (or use If-Match).
Response
Created
Workspace-scoped reusable presentation block (replaces the inline workflow branding). Non-PII but an INJECTION SURFACE into the consumer page and invite email, so every field is a closed grammar; logos are managed uploads only (external URLs and SVG are unsupported by design).
Show child attributes
Show child attributes