Public API

Documentation for MixBlob’s color and palette endpoints.

Use the public API to convert colors, extract palettes, generate gradients, and bring MixBlob’s color workflow into your own products.

Colors: Convert

Convert color values between HEX, RGB, and HSL.

Request

curl -X POST https://api.mixipaint.com/v1/colors/convert \
+  -H "content-type: application/json" \
+  -H "x-api-key: YOUR_API_KEY" \
+  -d '{"value":"#ff9900","to":"hsl"}'

Body

{
  "value": "#ff9900",
  "to": "hsl"
}

Response

{
  "hex": "#ff9900",
  "hsl": "hsl(36,100%,50%)"
}

Errors

  • 400 invalid body or color
  • 401 missing API key

Rate Limits

Basic: 60 req/min (burst 100), 10,000/month. Pro: higher limits.