Skip to content

Authentication

The Color API uses Bearer token authentication. Include your API key in the Authorization header of each request.

  1. Sign up at color.koval.dev/auth/signup
  2. Email m@koval.dev from the address you signed up with, and we’ll send you a key

A self-serve dashboard for creating and revoking keys is on its way.

Include the API key in the Authorization header:

Terminal window
curl "https://color.koval.dev/v1/convert?value=%23ff0000" \
-H "Authorization: Bearer your_api_key_here"
{
"input": "#ff0000",
"formats": {
"hex": "#FF0000",
"rgb": { "r": 255, "g": 0, "b": 0 }
}
}
  • Never expose your API key in client-side code
  • Store keys securely in environment variables
  • Rotate keys periodically: email m@koval.dev for a new key and we’ll revoke the old one

Coming soon: GitHub OAuth sign-in for easier authentication.