artifact-themes

POST /artifact-themes

Changed on

Create an organization theme for artifacts: the Gatana theme with the organization's colors, fonts and logo

Request

  • Base URL
    https://YOUR_ORG_ID.gatana.ai/api/v1
  • URL
    https://YOUR_ORG_ID.gatana.ai/api/v1/artifact-themes
  • Auth
    • HTTP bearer
    • or OAuth 2
      Authorization code: /oauth/authorize
      Token URL: /oauth/token

Request body

namestring required

Name shown in pickers and accepted by agents; unique in the organization, not 'gatana' or 'none'

backgroundColorstring

Page background, as a hex color (#rgb or #rrggbb)

textColorstring

Heading text; body text, lines and soft backgrounds are mixed from it and the background, as a hex color (#rgb or #rrggbb)

accentColorstring

Buttons, links on hover, the eyebrow line and the gradient, as a hex color (#rgb or #rrggbb)

headingFont'inter' | 'fraunces' | 'system-sans' | 'system-serif'
bodyFont'inter' | 'fraunces' | 'system-sans' | 'system-serif'
codeFont'jetbrains-mono' | 'system-mono'

Font of code

logostring

Logo shown at the top of every page, as a base64 data: URL of a PNG, JPEG, WebP or SVG image of at most 256 KB, or an empty string for none

extraCssstring

CSS added after the theme's own rules; the page's own styles still win over it

Response

Successful response

idstring required
namestring required
backgroundColorstring required

Lowercase hex color, #rrggbb

textColorstring required

Lowercase hex color, #rrggbb

accentColorstring required

Lowercase hex color, #rrggbb

headingFont'inter' | 'fraunces' | 'system-sans' | 'system-serif' required
bodyFont'inter' | 'fraunces' | 'system-sans' | 'system-serif' required
codeFont'jetbrains-mono' | 'system-mono' required
logostring required

The logo as a base64 data: URL, or empty when the theme has none

extraCssstring required
createdAtstring required
updatedAtstring required

Changes