Add Color

Learn how to save brand colors to your workspace

Overview#

This endpoint allows you to save a new brand color to your workspace. Supports hex, RGB, HSL, and gradient color values.

https://api.orshot.com/v1/brand-assets/colors/add

Request#

await fetch("https://api.orshot.com/v1/brand-assets/colors/add", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    Authorization: "Bearer <ORSHOT_API_KEY>",
  },
  body: JSON.stringify({
    type: "hex",
    value: "#FF5733",
  }),
});

Request Parameters#

ParameterTypeRequiredDescription
valueStringYesThe color value (e.g., #FF5733, rgb(255, 87, 51), or a CSS gradient)
typeStringNoColor type: hex, rgb, hsl, or gradient. Defaults to hex

Supported Color Types#

TypeExample Value
hex#FF5733, #FFF, #FF573380
rgbrgb(255, 87, 51)
hslhsl(11, 100%, 60%)
gradientlinear-gradient(135deg, #667eea 0%, #764ba2 100%)

Notes#

  • Hex colors are validated for correct format (#RGB, #RRGGBB, or #RRGGBBAA)
  • Up to 200 colors can be stored per workspace

Rate Limits#

  • 30 requests per minute per endpoint

All Set? Let's Start Automating

Get Your API Key →
  • Image, PDF and Video Generation via API
  • Canva like editor with AI and smart features
  • No-Code Integrations (Zapier, Make, n8n etc.)
  • Embed Orshot Studio in your app
  • Start Free. No credit card required. Cancel anytime.