> ## Documentation Index
> Fetch the complete documentation index at: https://docs.heymilo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 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.



## OpenAPI

````yaml https://api.heymilo.ai/openapi.json post /api/v2/design-templates
openapi: 3.1.0
info:
  title: HeyMilo Public API
  description: >-
    External developer-facing API for HeyMilo. Create interviewers with agentic
    workflows, ingest candidates, retrieve interview results, and manage
    workspace resources.
  version: 2.0.0
servers:
  - url: https://api.heymilo.ai
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: Interviewers
    description: >-
      Create, read, update, and manage interviewers. An interviewer (posting)
      combines job details with an AI agent configuration and agentic workflow.
  - name: Candidates
    description: >-
      Ingest candidates into an interviewer's workflow (sync or async, single or
      bulk) and list candidates with their progress.
  - name: Interviews
    description: >-
      Retrieve full interview results (scorecard, transcript, resume evaluation)
      and manage per-interview metadata.
  - name: Webhooks
    description: >-
      Register, list, and manage webhook endpoints that receive real-time event
      notifications.
  - name: Voices
    description: Browse the workspace voice registry for AI interviewer voices.
  - name: Phone Numbers
    description: List provisioned phone numbers for SMS and voice agents.
  - name: Sender Emails
    description: Manage sender email addresses used for candidate communications.
  - name: Email Templates
    description: >-
      Create, update, delete and view the email templates used for candidate
      outreach. A template is sent once it is mapped into an email template
      group set on an interviewer.
  - name: Email Template Groups
    description: >-
      Create, update, delete and view email template groups, which map each
      email type to a template and pick the sender address. Set a group on an
      interviewer with ``email_template_group_id``.
  - name: Design Templates
    description: >-
      Create, update, delete and view the design templates that style each
      candidate-facing page. A template is used once it is mapped into a design
      template group.
  - name: Design Template Groups
    description: >-
      Create, update, delete and view design template groups, which pick a
      template for each candidate-facing page. Set a group on an interviewer
      with ``design_template_group_id``, or make it the workspace default.
  - name: Interview Templates
    description: >-
      Create, update, delete and view interview templates, reusable agent
      configurations (workflow, questions, criteria, agent settings) saved as a
      snapshot of an interviewer. Create interviewers from one with
      ``interview_template_id``.
  - name: Domains
    description: Manage custom domains for white-labelled interview URLs.
  - name: Questions
    description: >-
      Create, read, update, delete, and reorder questions and criteria for an
      interviewer's workflow. Covers all modalities: voice, sms, form,
      resume_eligibility, resume_scoring, and voice_tags.
  - name: Workspaces
    description: >-
      List the workspaces accessible to the authenticated caller. API-key
      callers receive a single entry; OAuth callers receive every workspace they
      are a member of.
  - name: Teams
    description: >-
      Create, update, delete and list workspace teams, and manage which teams an
      interviewer belongs to. Interviewers can also be assigned at creation time
      via ``team_ids`` on the create-interviewer request. Requires the Teams
      feature to be enabled for the workspace.
paths:
  /api/v2/design-templates:
    post:
      tags:
        - Design Templates
      summary: Create a design template
      description: >-
        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.
      operationId: createDesignTemplate
      parameters:
        - name: X-API-KEY
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Api-Key
        - name: Authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
        - name: X-Workspace-Id
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Workspace-Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              oneOf:
                - $ref: '#/components/schemas/CreateWelcomePageTemplateRequest'
                - $ref: '#/components/schemas/CreateStatusPageTemplateRequest'
                - $ref: >-
                    #/components/schemas/CreateInterviewCompletePageTemplateRequest
                - $ref: '#/components/schemas/CreateInterviewPageTemplateRequest'
              discriminator:
                propertyName: template_type
                mapping:
                  welcome_page: '#/components/schemas/CreateWelcomePageTemplateRequest'
                  status_page: '#/components/schemas/CreateStatusPageTemplateRequest'
                  interview_complete_page: >-
                    #/components/schemas/CreateInterviewCompletePageTemplateRequest
                  interview_page: '#/components/schemas/CreateInterviewPageTemplateRequest'
              title: Body
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SingleResponse_DesignTemplateResponse_'
        '401':
          description: Invalid or missing API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIErrorResponse'
        '403':
          description: >-
            Design templates are not included in the workspace's plan, or
            hide_powered_by_heymilo was set without the white-label entitlement.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIErrorResponse'
        '404':
          description: Design template not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIErrorResponse'
        '422':
          description: design_config does not fit the template's page type.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIErrorResponse'
        '429':
          description: Rate limit exceeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIErrorResponse'
components:
  schemas:
    CreateWelcomePageTemplateRequest:
      properties:
        template_type:
          type: string
          const: welcome_page
          title: Template Type
        name:
          type: string
          maxLength: 200
          minLength: 1
          title: Name
          description: Human-readable template name.
          examples:
            - Acme welcome page
        design_config:
          $ref: '#/components/schemas/WelcomePageDesignConfig'
      additionalProperties: false
      type: object
      required:
        - template_type
        - name
      title: CreateWelcomePageTemplateRequest
      description: Create a template for the welcome page.
    CreateStatusPageTemplateRequest:
      properties:
        template_type:
          type: string
          const: status_page
          title: Template Type
        name:
          type: string
          maxLength: 200
          minLength: 1
          title: Name
          description: Human-readable template name.
          examples:
            - Acme welcome page
        design_config:
          $ref: '#/components/schemas/StatusPageDesignConfig'
      additionalProperties: false
      type: object
      required:
        - template_type
        - name
      title: CreateStatusPageTemplateRequest
      description: Create a template for the status page.
    CreateInterviewCompletePageTemplateRequest:
      properties:
        template_type:
          type: string
          const: interview_complete_page
          title: Template Type
        name:
          type: string
          maxLength: 200
          minLength: 1
          title: Name
          description: Human-readable template name.
          examples:
            - Acme welcome page
        design_config:
          $ref: '#/components/schemas/InterviewCompletePageDesignConfig'
      additionalProperties: false
      type: object
      required:
        - template_type
        - name
      title: CreateInterviewCompletePageTemplateRequest
      description: Create a template for the interview-complete page.
    CreateInterviewPageTemplateRequest:
      properties:
        template_type:
          type: string
          const: interview_page
          title: Template Type
        name:
          type: string
          maxLength: 200
          minLength: 1
          title: Name
          description: Human-readable template name.
          examples:
            - Acme welcome page
        design_config:
          $ref: '#/components/schemas/InterviewPageDesignConfig'
      additionalProperties: false
      type: object
      required:
        - template_type
        - name
      title: CreateInterviewPageTemplateRequest
      description: Create a template for the live interview page.
    SingleResponse_DesignTemplateResponse_:
      properties:
        data:
          $ref: '#/components/schemas/DesignTemplateResponse'
        meta:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Meta
          description: Optional metadata. Shape varies by endpoint.
      type: object
      required:
        - data
      title: SingleResponse[DesignTemplateResponse]
    APIErrorResponse:
      properties:
        error:
          $ref: '#/components/schemas/APIError'
      type: object
      required:
        - error
      title: APIErrorResponse
    WelcomePageDesignConfig:
      properties:
        background_color:
          anyOf:
            - type: string
            - type: 'null'
          title: Background Color
          examples:
            - '#FAF8F4'
        primary_color:
          anyOf:
            - type: string
            - type: 'null'
          title: Primary Color
          examples:
            - '#003EDB'
        font_family:
          anyOf:
            - type: string
              maxLength: 200
            - type: 'null'
          title: Font Family
          examples:
            - Inter, sans-serif
        header_text:
          anyOf:
            - type: string
              maxLength: 200
            - type: 'null'
          title: Header Text
          description: Page heading.
        name:
          anyOf:
            - type: string
              maxLength: 200
            - type: 'null'
          title: Name
          description: Company name shown to candidates instead of the workspace's.
        image_url:
          anyOf:
            - type: string
              maxLength: 2048
            - type: 'null'
          title: Image Url
          description: Logo image (https).
        show_logo:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Show Logo
        show_progress:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Show Progress
        privacy_policy_url:
          anyOf:
            - type: string
              maxLength: 2048
            - type: 'null'
          title: Privacy Policy Url
        terms_and_conditions_url:
          anyOf:
            - type: string
              maxLength: 2048
            - type: 'null'
          title: Terms And Conditions Url
        support_url:
          anyOf:
            - type: string
              maxLength: 2048
            - type: 'null'
          title: Support Url
        show_privacy_policy:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Show Privacy Policy
        show_terms_and_conditions:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Show Terms And Conditions
        show_support_url:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Show Support Url
        hide_powered_by_heymilo:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Hide Powered By Heymilo
          description: >-
            Hide the 'Powered by HeyMilo' mark. Setting it to true requires the
            white-label entitlement.
      additionalProperties: false
      type: object
      title: WelcomePageDesignConfig
      description: The page a candidate lands on from a shared interviewer link.
    StatusPageDesignConfig:
      properties:
        background_color:
          anyOf:
            - type: string
            - type: 'null'
          title: Background Color
          examples:
            - '#FAF8F4'
        primary_color:
          anyOf:
            - type: string
            - type: 'null'
          title: Primary Color
          examples:
            - '#003EDB'
        font_family:
          anyOf:
            - type: string
              maxLength: 200
            - type: 'null'
          title: Font Family
          examples:
            - Inter, sans-serif
        header_text:
          anyOf:
            - type: string
              maxLength: 200
            - type: 'null'
          title: Header Text
          description: Page heading.
        sub_text:
          anyOf:
            - type: string
              maxLength: 2000
            - type: 'null'
          title: Sub Text
        resume_title:
          anyOf:
            - type: string
              maxLength: 200
            - type: 'null'
          title: Resume Title
        resume_description:
          anyOf:
            - type: string
              maxLength: 2000
            - type: 'null'
          title: Resume Description
        resume_button_text:
          anyOf:
            - type: string
              maxLength: 100
            - type: 'null'
          title: Resume Button Text
        web_interview_title:
          anyOf:
            - type: string
              maxLength: 200
            - type: 'null'
          title: Web Interview Title
        web_interview_description:
          anyOf:
            - type: string
              maxLength: 2000
            - type: 'null'
          title: Web Interview Description
        web_interview_button_text:
          anyOf:
            - type: string
              maxLength: 100
            - type: 'null'
          title: Web Interview Button Text
        form_title:
          anyOf:
            - type: string
              maxLength: 200
            - type: 'null'
          title: Form Title
        form_description:
          anyOf:
            - type: string
              maxLength: 2000
            - type: 'null'
          title: Form Description
        form_button_text:
          anyOf:
            - type: string
              maxLength: 100
            - type: 'null'
          title: Form Button Text
        conversational_sms_title:
          anyOf:
            - type: string
              maxLength: 200
            - type: 'null'
          title: Conversational Sms Title
        conversational_sms_description:
          anyOf:
            - type: string
              maxLength: 2000
            - type: 'null'
          title: Conversational Sms Description
        llm_assessment_title:
          anyOf:
            - type: string
              maxLength: 200
            - type: 'null'
          title: Llm Assessment Title
        llm_assessment_description:
          anyOf:
            - type: string
              maxLength: 2000
            - type: 'null'
          title: Llm Assessment Description
        llm_assessment_button_text:
          anyOf:
            - type: string
              maxLength: 100
            - type: 'null'
          title: Llm Assessment Button Text
      additionalProperties: false
      type: object
      title: StatusPageDesignConfig
      description: The page that lists a candidate's steps and their progress.
    InterviewCompletePageDesignConfig:
      properties:
        background_color:
          anyOf:
            - type: string
            - type: 'null'
          title: Background Color
          examples:
            - '#FAF8F4'
        primary_color:
          anyOf:
            - type: string
            - type: 'null'
          title: Primary Color
          examples:
            - '#003EDB'
        font_family:
          anyOf:
            - type: string
              maxLength: 200
            - type: 'null'
          title: Font Family
          examples:
            - Inter, sans-serif
        header_text:
          anyOf:
            - type: string
              maxLength: 200
            - type: 'null'
          title: Header Text
          description: Page heading.
        sub_text:
          anyOf:
            - type: string
              maxLength: 2000
            - type: 'null'
          title: Sub Text
        support_url:
          anyOf:
            - type: string
              maxLength: 2048
            - type: 'null'
          title: Support Url
        button_text:
          anyOf:
            - type: string
              maxLength: 100
            - type: 'null'
          title: Button Text
        button_redirect_url:
          anyOf:
            - type: string
              maxLength: 2048
            - type: 'null'
          title: Button Redirect Url
          description: Where the page's button sends the candidate (https).
      additionalProperties: false
      type: object
      title: InterviewCompletePageDesignConfig
      description: The page shown after the candidate finishes the interview.
    InterviewPageDesignConfig:
      properties:
        background_color:
          anyOf:
            - type: string
            - type: 'null'
          title: Background Color
          examples:
            - '#FAF8F4'
        primary_color:
          anyOf:
            - type: string
            - type: 'null'
          title: Primary Color
          examples:
            - '#003EDB'
        font_family:
          anyOf:
            - type: string
              maxLength: 200
            - type: 'null'
          title: Font Family
          examples:
            - Inter, sans-serif
        header_text:
          anyOf:
            - type: string
              maxLength: 200
            - type: 'null'
          title: Header Text
          description: Page heading.
        avatar_image_url:
          anyOf:
            - type: string
              maxLength: 2048
            - type: 'null'
          title: Avatar Image Url
          description: Interviewer avatar (https).
        backdrop_image_url:
          anyOf:
            - type: string
              maxLength: 2048
            - type: 'null'
          title: Backdrop Image Url
          description: Background image (https).
      additionalProperties: false
      type: object
      title: InterviewPageDesignConfig
      description: The live interview screen.
    DesignTemplateResponse:
      properties:
        object:
          type: string
          const: design_template
          title: Object
          description: Object type identifier.
          default: design_template
        id:
          type: string
          title: Id
          description: Unique design template identifier.
          examples:
            - E00CF3AFCF58
        name:
          type: string
          title: Name
          description: Human-readable template name.
          examples:
            - Dark Mode Welcome Page
        template_type:
          type: string
          title: Template Type
          description: >-
            Page type this template applies to: 'welcome_page', 'status_page',
            'interview_complete_page', 'interview_page'.
          examples:
            - welcome_page
        design_config:
          additionalProperties: true
          type: object
          title: Design Config
          description: >-
            Design configuration object. Shape varies by template_type. Common
            fields: background_color, primary_color, font_family, header_text,
            show_logo, image_url.
          examples:
            - background_color: '#ffffff'
              font_family: Inter, sans-serif
              header_text: Welcome to Your Interview
              primary_color: '#007bff'
              show_logo: true
        created_at:
          type: number
          title: Created At
          description: Unix timestamp when the template was created.
          examples:
            - 1739612400
        updated_at:
          type: number
          title: Updated At
          description: Unix timestamp when the template was last updated.
          examples:
            - 1739617200
      type: object
      required:
        - id
        - name
        - template_type
        - design_config
        - created_at
        - updated_at
      title: DesignTemplateResponse
      description: >-
        A design template controlling the visual appearance of candidate-facing
        pages.


        Design templates define colors, fonts, images, and text for pages

        such as the welcome page, interview page, status page, and

        interview-complete page.
    APIError:
      properties:
        type:
          type: string
          title: Type
          description: Error category
          examples:
            - invalid_request_error
        code:
          type: string
          title: Code
          description: Machine-readable error code
          examples:
            - validation_error
        message:
          type: string
          title: Message
          description: Human-readable summary
          examples:
            - The request body failed validation
        param:
          anyOf:
            - type: string
            - type: 'null'
          title: Param
          description: Top-level parameter that caused the error
        doc_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Doc Url
          description: Link to relevant documentation
        errors:
          items:
            $ref: '#/components/schemas/APIErrorDetail'
          type: array
          title: Errors
          description: Detailed per-field validation errors
      type: object
      required:
        - type
        - code
        - message
      title: APIError
    APIErrorDetail:
      properties:
        code:
          type: string
          title: Code
          description: Machine-readable error code
          examples:
            - invalid_param
        message:
          type: string
          title: Message
          description: Human-readable explanation
          examples:
            - title must be between 3 and 200 characters
        param:
          anyOf:
            - type: string
            - type: 'null'
          title: Param
          description: Parameter that caused the error
          examples:
            - title
      type: object
      required:
        - code
        - message
      title: APIErrorDetail
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY
      description: API key for authentication. Pass your key in the X-API-KEY header.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.