---
title: "Generate color for a template discovery"
method: POST
path: "/templates/discovery/color"
tags: ["Templates"]
---

# Generate color for a template discovery

`POST /templates/discovery/color`

Endpoint to generate color for a template discovery.

## Request body

- object
  - `productIdea` string
  - `productName` string
  - `industry` string
  - `brandVoice` string
  - `colorDescription` string

## Response `200`

Successful operation

- object
  - `primaryColor` object
    - `name` string
    - `hexCode` string
  - `secondaryColor` object
    - `name` string
    - `hexCode` string

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `500` — Internal server error

## Changes

> 9 revisions in range; 1 could not be searched.

- **2024-06-12** `375f1da3cbc3` — 2 warning, 1 info
  - removed the optional property `primaryColor` from the response with the `200` status
  - removed the optional property `secondaryColor` from the response with the `200` status
  - added the optional property `message` to the response with the `200` status
- **2024-06-02** `40e1c48fe92f` — 1 warning, 2 info
  - removed the optional property `message` from the response with the `200` status
  - added the optional property `primaryColor` to the response with the `200` status
  - added the optional property `secondaryColor` to the response with the `200` status
- **2024-06-01** `5de797b1d2ed` — 2 warning, 1 info
  - removed the optional property `primaryColor` from the response with the `200` status
  - removed the optional property `secondaryColor` from the response with the `200` status
  - added the optional property `message` to the response with the `200` status

[Change history](https://skmtc.dev/domeplatform/apis/trydome-api/changes/templates/discovery/color/post.md)

---

[API](https://skmtc.dev/domeplatform/apis/trydome-api.md) · [All operations](https://skmtc.dev/domeplatform/apis/trydome-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/domeplatform/trydome-api/revisions/ed2a8d341371/schema)
