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

# Get the deployment's theme without signing in

> The deployment's own brand, for a page shown before anyone has signed in. It takes no credential, is the same for every caller, and never carries an organization's branding.

Returns the **deployment's** theme, and takes no credential. It exists for the pages that are drawn before a credential can exist, such as a sign-in screen: those cannot call [Get the resolved theme](/api-reference/branding/get-theme), which answers with one organization's brand and needs a session or an API key to know which.

No organization is involved. The response is the platform default with the deployment's own settings applied, it is identical for every caller, and there is no parameter by which to ask for an organization's branding. A credential sent with the request is not read.

Because it is the same for everyone, the response is cacheable: it carries `Cache-Control: public, max-age=300` and an `ETag`. Send the `ETag` back in `If-None-Match` to revalidate; an unchanged theme returns `304` with no body. The route is rate limited by client address.

<ParamField query="format" type="string" default="css">
  `css`, `json` or `librechat`. Any other value returns `400`.
</ParamField>

## Response

The three encodings are the ones [Get the resolved theme](/api-reference/branding/get-theme) returns, and are described there. With `format=css` the body is `text/css`; with `json` or `librechat` it is JSON.

<ResponseField name="version" type="integer">
  With `format=librechat`: the definition's version. `1`.
</ResponseField>

<ResponseField name="name" type="string">
  With `format=librechat`: the product name.
</ResponseField>

<ResponseField name="modes" type="object">
  With `format=librechat`: a `light` and a `dark` entry, each with `colors` (`rgb-*` keys to `R G B`
  triplets) and `appearance`. The example shows four of the colour keys in each mode; a response
  carries them all.
</ResponseField>

<RequestExample>
  ```bash cURL theme={"theme":{"light":"github-light","dark":"github-dark"}}
  curl --request GET "$MITHUNAI_URL/mithunai/api/v1/branding/public-theme?format=librechat"
  ```

  ```python Python theme={"theme":{"light":"github-light","dark":"github-dark"}}
  import os, requests

  response = requests.get(
      f"{os.environ['MITHUNAI_URL']}/mithunai/api/v1/branding/public-theme",
      params={"format": "librechat"},
      timeout=60,
  )
  response.raise_for_status()
  print(response.json())
  ```

  ```javascript JavaScript theme={"theme":{"light":"github-light","dark":"github-dark"}}
  const params = new URLSearchParams({ format: 'librechat' })
  const response = await fetch(
    `${process.env.MITHUNAI_URL}/mithunai/api/v1/branding/public-theme?${params}`,
  )
  console.log(await response.json())
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={"theme":{"light":"github-light","dark":"github-dark"}}
  {
    "version": 1,
    "name": "MITHUNAI",
    "modes": {
      "light": {
        "colors": {
          "rgb-text-primary": "19 19 18",
          "rgb-surface-primary": "255 255 255",
          "rgb-border-light": "222 214 199",
          "rgb-accent-primary": "184 62 14"
        },
        "appearance": {
          "controlRadius": "12px",
          "surfaceRadius": "18px",
          "controlHeight": "2.5rem",
          "fontFamily": "Inter, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif"
        }
      },
      "dark": {
        "colors": {
          "rgb-text-primary": "250 248 242",
          "rgb-surface-primary": "28 28 30",
          "rgb-border-light": "56 56 58",
          "rgb-accent-primary": "237 115 59"
        },
        "appearance": {
          "controlRadius": "12px",
          "surfaceRadius": "18px",
          "controlHeight": "2.5rem",
          "fontFamily": "Inter, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif"
        }
      }
    }
  }
  ```

  ```text 304 theme={"theme":{"light":"github-light","dark":"github-dark"}}
  (empty body)
  ```

  ```json 400 theme={"theme":{"light":"github-light","dark":"github-dark"}}
  { "code": "validation_error", "message": "format must be one of css, json, librechat." }
  ```
</ResponseExample>


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