Create a design template
curl --request POST \
--url https://api.heymilo.ai/api/v2/design-templates \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"template_type": "welcome_page",
"name": "Acme welcome page",
"design_config": {
"background_color": "#FAF8F4",
"primary_color": "#003EDB",
"font_family": "Inter, sans-serif",
"header_text": "<string>",
"name": "<string>",
"image_url": "<string>",
"show_logo": true,
"show_progress": true,
"privacy_policy_url": "<string>",
"terms_and_conditions_url": "<string>",
"support_url": "<string>",
"show_privacy_policy": true,
"show_terms_and_conditions": true,
"show_support_url": true,
"hide_powered_by_heymilo": true
}
}
'import requests
url = "https://api.heymilo.ai/api/v2/design-templates"
payload = {
"template_type": "welcome_page",
"name": "Acme welcome page",
"design_config": {
"background_color": "#FAF8F4",
"primary_color": "#003EDB",
"font_family": "Inter, sans-serif",
"header_text": "<string>",
"name": "<string>",
"image_url": "<string>",
"show_logo": True,
"show_progress": True,
"privacy_policy_url": "<string>",
"terms_and_conditions_url": "<string>",
"support_url": "<string>",
"show_privacy_policy": True,
"show_terms_and_conditions": True,
"show_support_url": True,
"hide_powered_by_heymilo": True
}
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
template_type: 'welcome_page',
name: 'Acme welcome page',
design_config: {
background_color: '#FAF8F4',
primary_color: '#003EDB',
font_family: 'Inter, sans-serif',
header_text: '<string>',
name: '<string>',
image_url: '<string>',
show_logo: true,
show_progress: true,
privacy_policy_url: '<string>',
terms_and_conditions_url: '<string>',
support_url: '<string>',
show_privacy_policy: true,
show_terms_and_conditions: true,
show_support_url: true,
hide_powered_by_heymilo: true
}
})
};
fetch('https://api.heymilo.ai/api/v2/design-templates', 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.heymilo.ai/api/v2/design-templates",
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([
'template_type' => 'welcome_page',
'name' => 'Acme welcome page',
'design_config' => [
'background_color' => '#FAF8F4',
'primary_color' => '#003EDB',
'font_family' => 'Inter, sans-serif',
'header_text' => '<string>',
'name' => '<string>',
'image_url' => '<string>',
'show_logo' => true,
'show_progress' => true,
'privacy_policy_url' => '<string>',
'terms_and_conditions_url' => '<string>',
'support_url' => '<string>',
'show_privacy_policy' => true,
'show_terms_and_conditions' => true,
'show_support_url' => true,
'hide_powered_by_heymilo' => true
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>"
],
]);
$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.heymilo.ai/api/v2/design-templates"
payload := strings.NewReader("{\n \"template_type\": \"welcome_page\",\n \"name\": \"Acme welcome page\",\n \"design_config\": {\n \"background_color\": \"#FAF8F4\",\n \"primary_color\": \"#003EDB\",\n \"font_family\": \"Inter, sans-serif\",\n \"header_text\": \"<string>\",\n \"name\": \"<string>\",\n \"image_url\": \"<string>\",\n \"show_logo\": true,\n \"show_progress\": true,\n \"privacy_policy_url\": \"<string>\",\n \"terms_and_conditions_url\": \"<string>\",\n \"support_url\": \"<string>\",\n \"show_privacy_policy\": true,\n \"show_terms_and_conditions\": true,\n \"show_support_url\": true,\n \"hide_powered_by_heymilo\": true\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<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.heymilo.ai/api/v2/design-templates")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"template_type\": \"welcome_page\",\n \"name\": \"Acme welcome page\",\n \"design_config\": {\n \"background_color\": \"#FAF8F4\",\n \"primary_color\": \"#003EDB\",\n \"font_family\": \"Inter, sans-serif\",\n \"header_text\": \"<string>\",\n \"name\": \"<string>\",\n \"image_url\": \"<string>\",\n \"show_logo\": true,\n \"show_progress\": true,\n \"privacy_policy_url\": \"<string>\",\n \"terms_and_conditions_url\": \"<string>\",\n \"support_url\": \"<string>\",\n \"show_privacy_policy\": true,\n \"show_terms_and_conditions\": true,\n \"show_support_url\": true,\n \"hide_powered_by_heymilo\": true\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.heymilo.ai/api/v2/design-templates")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"template_type\": \"welcome_page\",\n \"name\": \"Acme welcome page\",\n \"design_config\": {\n \"background_color\": \"#FAF8F4\",\n \"primary_color\": \"#003EDB\",\n \"font_family\": \"Inter, sans-serif\",\n \"header_text\": \"<string>\",\n \"name\": \"<string>\",\n \"image_url\": \"<string>\",\n \"show_logo\": true,\n \"show_progress\": true,\n \"privacy_policy_url\": \"<string>\",\n \"terms_and_conditions_url\": \"<string>\",\n \"support_url\": \"<string>\",\n \"show_privacy_policy\": true,\n \"show_terms_and_conditions\": true,\n \"show_support_url\": true,\n \"hide_powered_by_heymilo\": true\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "E00CF3AFCF58",
"name": "Dark Mode Welcome Page",
"template_type": "welcome_page",
"design_config": {
"background_color": "#ffffff",
"font_family": "Inter, sans-serif",
"header_text": "Welcome to Your Interview",
"primary_color": "#007bff",
"show_logo": true
},
"created_at": 1739612400,
"updated_at": 1739617200,
"object": "design_template"
},
"meta": {}
}{
"error": {
"type": "invalid_request_error",
"code": "validation_error",
"message": "The request body failed validation",
"param": "<string>",
"doc_url": "<string>",
"errors": [
{
"code": "invalid_param",
"message": "title must be between 3 and 200 characters",
"param": "title"
}
]
}
}{
"error": {
"type": "invalid_request_error",
"code": "validation_error",
"message": "The request body failed validation",
"param": "<string>",
"doc_url": "<string>",
"errors": [
{
"code": "invalid_param",
"message": "title must be between 3 and 200 characters",
"param": "title"
}
]
}
}{
"error": {
"type": "invalid_request_error",
"code": "validation_error",
"message": "The request body failed validation",
"param": "<string>",
"doc_url": "<string>",
"errors": [
{
"code": "invalid_param",
"message": "title must be between 3 and 200 characters",
"param": "title"
}
]
}
}{
"error": {
"type": "invalid_request_error",
"code": "validation_error",
"message": "The request body failed validation",
"param": "<string>",
"doc_url": "<string>",
"errors": [
{
"code": "invalid_param",
"message": "title must be between 3 and 200 characters",
"param": "title"
}
]
}
}{
"error": {
"type": "invalid_request_error",
"code": "validation_error",
"message": "The request body failed validation",
"param": "<string>",
"doc_url": "<string>",
"errors": [
{
"code": "invalid_param",
"message": "title must be between 3 and 200 characters",
"param": "title"
}
]
}
}Create a design template
Create a template that styles one candidate-facing page: welcome_page, status_page, interview_complete_page or interview_page. The design_config keys depend on template_type. A template is only used once it is mapped into a design template group and that group is set on an interviewer (design_template_group_id) or is the workspace default.
design_config only accepts the keys for the template’s page type. URL and image fields must be https:// URLs (or an empty string to unset), colors must be hex, and hide_powered_by_heymilo: true needs the white-label entitlement.
POST
/
api
/
v2
/
design-templates
Create a design template
curl --request POST \
--url https://api.heymilo.ai/api/v2/design-templates \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"template_type": "welcome_page",
"name": "Acme welcome page",
"design_config": {
"background_color": "#FAF8F4",
"primary_color": "#003EDB",
"font_family": "Inter, sans-serif",
"header_text": "<string>",
"name": "<string>",
"image_url": "<string>",
"show_logo": true,
"show_progress": true,
"privacy_policy_url": "<string>",
"terms_and_conditions_url": "<string>",
"support_url": "<string>",
"show_privacy_policy": true,
"show_terms_and_conditions": true,
"show_support_url": true,
"hide_powered_by_heymilo": true
}
}
'import requests
url = "https://api.heymilo.ai/api/v2/design-templates"
payload = {
"template_type": "welcome_page",
"name": "Acme welcome page",
"design_config": {
"background_color": "#FAF8F4",
"primary_color": "#003EDB",
"font_family": "Inter, sans-serif",
"header_text": "<string>",
"name": "<string>",
"image_url": "<string>",
"show_logo": True,
"show_progress": True,
"privacy_policy_url": "<string>",
"terms_and_conditions_url": "<string>",
"support_url": "<string>",
"show_privacy_policy": True,
"show_terms_and_conditions": True,
"show_support_url": True,
"hide_powered_by_heymilo": True
}
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
template_type: 'welcome_page',
name: 'Acme welcome page',
design_config: {
background_color: '#FAF8F4',
primary_color: '#003EDB',
font_family: 'Inter, sans-serif',
header_text: '<string>',
name: '<string>',
image_url: '<string>',
show_logo: true,
show_progress: true,
privacy_policy_url: '<string>',
terms_and_conditions_url: '<string>',
support_url: '<string>',
show_privacy_policy: true,
show_terms_and_conditions: true,
show_support_url: true,
hide_powered_by_heymilo: true
}
})
};
fetch('https://api.heymilo.ai/api/v2/design-templates', 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.heymilo.ai/api/v2/design-templates",
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([
'template_type' => 'welcome_page',
'name' => 'Acme welcome page',
'design_config' => [
'background_color' => '#FAF8F4',
'primary_color' => '#003EDB',
'font_family' => 'Inter, sans-serif',
'header_text' => '<string>',
'name' => '<string>',
'image_url' => '<string>',
'show_logo' => true,
'show_progress' => true,
'privacy_policy_url' => '<string>',
'terms_and_conditions_url' => '<string>',
'support_url' => '<string>',
'show_privacy_policy' => true,
'show_terms_and_conditions' => true,
'show_support_url' => true,
'hide_powered_by_heymilo' => true
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>"
],
]);
$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.heymilo.ai/api/v2/design-templates"
payload := strings.NewReader("{\n \"template_type\": \"welcome_page\",\n \"name\": \"Acme welcome page\",\n \"design_config\": {\n \"background_color\": \"#FAF8F4\",\n \"primary_color\": \"#003EDB\",\n \"font_family\": \"Inter, sans-serif\",\n \"header_text\": \"<string>\",\n \"name\": \"<string>\",\n \"image_url\": \"<string>\",\n \"show_logo\": true,\n \"show_progress\": true,\n \"privacy_policy_url\": \"<string>\",\n \"terms_and_conditions_url\": \"<string>\",\n \"support_url\": \"<string>\",\n \"show_privacy_policy\": true,\n \"show_terms_and_conditions\": true,\n \"show_support_url\": true,\n \"hide_powered_by_heymilo\": true\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<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.heymilo.ai/api/v2/design-templates")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"template_type\": \"welcome_page\",\n \"name\": \"Acme welcome page\",\n \"design_config\": {\n \"background_color\": \"#FAF8F4\",\n \"primary_color\": \"#003EDB\",\n \"font_family\": \"Inter, sans-serif\",\n \"header_text\": \"<string>\",\n \"name\": \"<string>\",\n \"image_url\": \"<string>\",\n \"show_logo\": true,\n \"show_progress\": true,\n \"privacy_policy_url\": \"<string>\",\n \"terms_and_conditions_url\": \"<string>\",\n \"support_url\": \"<string>\",\n \"show_privacy_policy\": true,\n \"show_terms_and_conditions\": true,\n \"show_support_url\": true,\n \"hide_powered_by_heymilo\": true\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.heymilo.ai/api/v2/design-templates")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"template_type\": \"welcome_page\",\n \"name\": \"Acme welcome page\",\n \"design_config\": {\n \"background_color\": \"#FAF8F4\",\n \"primary_color\": \"#003EDB\",\n \"font_family\": \"Inter, sans-serif\",\n \"header_text\": \"<string>\",\n \"name\": \"<string>\",\n \"image_url\": \"<string>\",\n \"show_logo\": true,\n \"show_progress\": true,\n \"privacy_policy_url\": \"<string>\",\n \"terms_and_conditions_url\": \"<string>\",\n \"support_url\": \"<string>\",\n \"show_privacy_policy\": true,\n \"show_terms_and_conditions\": true,\n \"show_support_url\": true,\n \"hide_powered_by_heymilo\": true\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "E00CF3AFCF58",
"name": "Dark Mode Welcome Page",
"template_type": "welcome_page",
"design_config": {
"background_color": "#ffffff",
"font_family": "Inter, sans-serif",
"header_text": "Welcome to Your Interview",
"primary_color": "#007bff",
"show_logo": true
},
"created_at": 1739612400,
"updated_at": 1739617200,
"object": "design_template"
},
"meta": {}
}{
"error": {
"type": "invalid_request_error",
"code": "validation_error",
"message": "The request body failed validation",
"param": "<string>",
"doc_url": "<string>",
"errors": [
{
"code": "invalid_param",
"message": "title must be between 3 and 200 characters",
"param": "title"
}
]
}
}{
"error": {
"type": "invalid_request_error",
"code": "validation_error",
"message": "The request body failed validation",
"param": "<string>",
"doc_url": "<string>",
"errors": [
{
"code": "invalid_param",
"message": "title must be between 3 and 200 characters",
"param": "title"
}
]
}
}{
"error": {
"type": "invalid_request_error",
"code": "validation_error",
"message": "The request body failed validation",
"param": "<string>",
"doc_url": "<string>",
"errors": [
{
"code": "invalid_param",
"message": "title must be between 3 and 200 characters",
"param": "title"
}
]
}
}{
"error": {
"type": "invalid_request_error",
"code": "validation_error",
"message": "The request body failed validation",
"param": "<string>",
"doc_url": "<string>",
"errors": [
{
"code": "invalid_param",
"message": "title must be between 3 and 200 characters",
"param": "title"
}
]
}
}{
"error": {
"type": "invalid_request_error",
"code": "validation_error",
"message": "The request body failed validation",
"param": "<string>",
"doc_url": "<string>",
"errors": [
{
"code": "invalid_param",
"message": "title must be between 3 and 200 characters",
"param": "title"
}
]
}
}Authorizations
Body
application/json
- CreateWelcomePageTemplateRequest
- CreateStatusPageTemplateRequest
- CreateInterviewCompletePageTemplateRequest
- CreateInterviewPageTemplateRequest
Create a template for the welcome page.
Response
Successful Response
Was this page helpful?